Authorizations
The Client ID that owns the API Key for the request
The pass phrase affiliated with the API Key
A HMAC SHA-256 signature using the API Key secret on the string TIMESTAMP, METHOD, REQUEST_PATH, BODY
The timestamp of when the request is being made
Body
A unique identifier assigned by the client. Must meet one of the following constraints:
- 18 characters long using all ASCII characters
- 20 characters long using alphanumeric characters and dash (-)
- 31 characters long using hexadecimal characters (0-9, a-f, lowercase and no preceding 0s)
- A UUID using standard hyphenation and all lowercase (e.g., 36a9d3ee-32b7-460e-979a-121735af4824)
The side of the transaction
BUY
, SELL
"BUY"
The amount in base asset units
The time in force applied to an order. A Good Till Cancel (GTC) or Good Till Time (GTT) can last up to 30 days. An Immediate or Cancel (IOC) attempts to fill as much of the order as possible and/or cancels immediately when no resting orders meet or improve the order's price limit. A Fill or Kill (FOK) is canceled without filling if it does not completely fill immediately. Required for all order types except market orders.
GTC
, IOC
, GTT
, FOK
"GTC"
The name, ID, or UUID of the instrument the order wants to transact
The type of order being submitted
LIMIT
, MARKET
, STOP_LIMIT
, STOP
, TAKE_PROFIT_STOP_LOSS
"LIMIT"
The max or min price limit in quote asset units to buy or sell at (respectively). Only used for limit and stop limit order types.
The market price that activates a stop order
The limit price at which the TP/SL stop leg order will be placed. Only used for TP/SL order type.
The expiration time required for orders with the time in force set to GTT. Must not go beyond 30 days of the current time. Uses ISO-8601 format (e.g., 2023-03-16T23:59:53Z).
The ID or UUID of the portfolio the order belongs to (uses default portfolio if not defined)
Specifies the behavior for self match handling. None disables the functionality, new cancels the newest order, and both cancels both orders.
NONE
, AGGRESSING
, RESTING
, BOTH
, DECREMENT_AND_CANCEL
"AGGRESSING"
Only submit the order if it will rest on the order book
Only submit the order if it will close an existing order
The algorithmic trading strategy to use for the order
TWAP
"TWAP"
Response
Order submitted
A unique identifier assigned by the exchange
43877033468085760
A unique identifier assigned by the client
"ABC123"
The side of the transaction
BUY
, SELL
"BUY"
The unique identifier of the instrument the order wants to transact in
2562519737567269
The UUID of the instrument the order wants to transact in
"359f66d8-4235-47c3-9733-0fbfe2cfaa0a"
The name of the instrument the order wants to transact in
"BTC-PERP"
The unique identifier of the portfolio the order was submitted under
1724343681801273
The UUID of the portfolio the order was submitted under
"b80ec69b-1229-4bcf-a6a8-c506ffd74c20"
The type of the order
LIMIT
, MARKET
, STOP_LIMIT
, STOP
, TAKE_PROFIT_STOP_LOSS
"LIMIT"
The max or min price limit in quote asset units to buy or sell at (respectively). Only used for limit and stop limit order types.
20215.53
The market price that activates a stop order
20015.53
The limit price at which the TP/SL stop leg order will be placed. Only used for TP/SL order type.
20015.53
The amount in base asset units
1.5423
The time in force applied to an order. A Good Till Cancel (GTC) can last up to 30 days. An Immediate or Cancel (IOC) attempts to fill as much of the order as possible and/or cancels immediately when no resting orders meet or improve the order's price limit. A Fill or Kill (FOK) is canceled without filling if it does not completely fill immediately. This will not be populated for assignments
GTC
, IOC
, GTT
, FOK
"GTC"
The expiration time for orders with the time in force set to GTT. Uses ISO-8601 format (e.g., 2023-03-16T23:59:53Z).
"2023-03-16T23:59:53.000Z"
Specifies the behavior for self match handling. None disables the functionality, new cancels the newest order, and both cancels both
NONE
, AGGRESSING
, RESTING
, BOTH
, DECREMENT_AND_CANCEL
"AGGRESSING"
The most recent type of event that happened to the order
NEW
, TRADE
, CANCELED
, REPLACED
, PENDING_CANCEL
, REJECTED
, PENDING_NEW
, EXPIRED
, PENDING_REPLACE
, STOP_TRIGGERED
"TRADE"
"2023-03-16T23:59:53.000Z"
"2023-03-16T23:59:53.000Z"
The type of the order
WORKING
, DONE
"WORKING"
The amount of the order remaining open on the exchange
The traded quantity on the order
The average price that the order has traded at so far
The exchange fee affiliated with the trade (only for trade events)
Indicates that the order was submitted with the post_only
instruction
Indicates that the order was submitted with the close_only
instruction
Specifies the algorithmic trading strategy for the order
TWAP
"TWAP"
A text message that gets populated for canceled orders
"client cancel"