Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Creating API Keys section of our Coinbase App Authentication docs for information on how to generate your Bearer Token.
Body
The trading pair (e.g. 'BTC-USD').
The side of the market that the order is on (e.g. 'BUY', 'SELL').
BUY
, SELL
The configuration of the order (e.g. the order type, size, etc).
The amount of leverage for the order (default is 1.0).
"2.0"
Margin Type for this order (default is CROSS).
- CROSS: Cross margin applies margin to the position of the entire portfolio
- ISOLATED: Isolated margin applies margin to a single position
CROSS
, ISOLATED
(Deprecated) The ID of the portfolio to associate the order with. Only applicable for legacy keys. CDP keys will default to the key's permissioned portfolio.
"11111111-1111-1111-1111-111111111111"
The configuration of the attached order. Only TriggerBracketGtc is eligible. Size field must be omitted as the size of the attached order is the same as that of the parent order.
Response
A successful response.
Currency amount of the applied commission (so not the rate that was used on input)
List of potential failure reasons were this order to be submitted
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
10
The amount of the first Asset in the Trading Pair. For example, on the BTC-USD Order Book, BTC is the Base Asset.
0.001
Indicates whether tradable_balance should be set to the maximum amount.
The amount of leverage for the order (default is 1.0).
"2.0"
Expected PNL of an order. This value is an estimate and does not take into account fees and slippage.
Breakdown of commission charges for the order