List Trigger Orders
Gets cancelled, pending or executed trigger orders for the provided subaccount and products.
Request
Request Parameters
Note: max_update_time
It's the time that the trigger order last changed state. For example, if a trigger order is placed & pending, the update time = time of placement. If the trigger order is cancelled, then the update time = time of cancellation.
Signing
See more details and and examples in our signing page.
The solidity typed data struct that needs to be signed is:
sender
: a bytes32
sent as a hex string; includes the address and the subaccount identifier
recvTime
: the time in milliseconds (a recv_time
) after which the transaction should be ignored by the trigger service. cannot be more than 100 seconds from the time it is received by the server.
Note: for signing you should always use the data type specified in the solidity struct which might be different from the type sent in the request e.g: recvTime
should be an uint64
for Signing but should be sent as a string
in the final payload.
Response
Success
Note: trigger orders can have the following statuses:
pending: initial state. trigger criteria has not been met nor has it been cancelled.
triggered: trigger criteria was met, and order was submitted for execution.
cancelled: trigger order was cancelled due to any of the following: user requested via cancel trigger order, order expired, account becomes unhealthy if order is triggered.
Failure
Last updated