Place Order
Last updated
Last updated
A max of 100 pending trigger orders per subaccount
product_id
number
Yes
order
object
Yes
signature
string
Yes
trigger
object
Yes
Trigger criteria could be any of: {"price_above":"{PRICE}"}
, {"price_below":"{PRICE}"}
, {"last_price_above":"{PRICE}"}
,{"last_price_below":"{PRICE}"}
digest
string
No
Hex string representing a hash of the order.
spot_leverage
boolean
No
Indicates whether leverage should be used; when set to false
, placing the order fails if the transaction causes a borrow on the subaccount. Defaults to true
.
id
number
No
An optional id that when provided is returned as part of Fill
and OrderUpdate
stream events when the order is triggered / executed
To compute a nonce for a trigger order with a random integer of 1000
, and a discard time 50 ms from now, we can do the following:
Success
Failure
Id of spot / perp product for which to place order. Use query to retrieve all valid product ids.
Order object, see section for details on each order field.
Hex string representing hash of the signed order. See section for more details.
Note: The first most significant bit must be set, this is used to identify a trigger order from a regular one. See for more details.