curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/orders/historical/{order_id} \
--header 'Authorization: Bearer <token>'{
"order": {
"order_id": "0000-000000-000000",
"product_id": "BTC-USD",
"user_id": "2222-000000-000000",
"order_configuration": {
"market_market_ioc": {
"quote_size": "10.00",
"base_size": "0.001"
},
"market_market_fok": {
"quote_size": "10.00",
"base_size": "0.001"
},
"sor_limit_ioc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"limit_limit_gtc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
},
"limit_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"post_only": false
},
"limit_limit_fok": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"twap_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"start_time": "2021-05-31T07:59:59.000Z",
"end_time": "2021-05-31T09:59:59.000Z",
"limit_price": "10000.00",
"number_buckets": "5",
"bucket_size": "2.00",
"bucket_duration": "300s"
},
"stop_limit_stop_limit_gtc": {
"base_size": "0.001",
"limit_price": "10000.00",
"stop_price": "20000.00",
"stop_direction": "20000.00"
},
"stop_limit_stop_limit_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"stop_direction": "20000.00"
},
"trigger_bracket_gtc": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00"
},
"trigger_bracket_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z"
},
"scaled_limit_gtc": {
"orders": [
{
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
}
],
"quote_size": "<string>",
"base_size": "<string>",
"num_orders": 123,
"min_price": "<string>",
"max_price": "<string>",
"price_distribution": "FLAT",
"size_distribution": "UNKNOWN_DISTRIBUTION",
"size_diff": "<string>",
"size_ratio": "<string>"
}
},
"side": "",
"client_order_id": "11111-000000-000000",
"status": "PENDING",
"created_time": "2021-05-31T09:59:59.000Z",
"completion_percentage": "50",
"average_filled_price": "50",
"number_of_fills": "2",
"pending_cancel": true,
"size_in_quote": false,
"total_fees": "5.00",
"size_inclusive_of_fees": false,
"total_value_after_fees": "<string>",
"time_in_force": "UNKNOWN_TIME_IN_FORCE",
"filled_size": "0.001",
"fee": "<string>",
"filled_value": "10000",
"trigger_status": "UNKNOWN_TRIGGER_STATUS",
"order_type": "UNKNOWN_ORDER_TYPE",
"reject_reason": "REJECT_REASON_UNSPECIFIED",
"settled": true,
"product_type": "UNKNOWN_PRODUCT_TYPE",
"reject_message": "<string>",
"cancel_message": "<string>",
"order_placement_source": "UNKNOWN_PLACEMENT_SOURCE",
"outstanding_hold_amount": "<string>",
"is_liquidation": true,
"last_fill_time": "<string>",
"edit_history": [
{
"price": "19000.00",
"size": "0.001",
"replace_accept_timestamp": "<string>"
}
],
"leverage": "<string>",
"margin_type": "",
"retail_portfolio_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"originating_order_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"attached_order_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"attached_order_configuration": {
"market_market_ioc": {
"quote_size": "10.00",
"base_size": "0.001"
},
"market_market_fok": {
"quote_size": "10.00",
"base_size": "0.001"
},
"sor_limit_ioc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"limit_limit_gtc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
},
"limit_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"post_only": false
},
"limit_limit_fok": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"twap_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"start_time": "2021-05-31T07:59:59.000Z",
"end_time": "2021-05-31T09:59:59.000Z",
"limit_price": "10000.00",
"number_buckets": "5",
"bucket_size": "2.00",
"bucket_duration": "300s"
},
"stop_limit_stop_limit_gtc": {
"base_size": "0.001",
"limit_price": "10000.00",
"stop_price": "20000.00",
"stop_direction": "20000.00"
},
"stop_limit_stop_limit_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"stop_direction": "20000.00"
},
"trigger_bracket_gtc": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00"
},
"trigger_bracket_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z"
},
"scaled_limit_gtc": {
"orders": [
{
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
}
],
"quote_size": "<string>",
"base_size": "<string>",
"num_orders": 123,
"min_price": "<string>",
"max_price": "<string>",
"price_distribution": "FLAT",
"size_distribution": "UNKNOWN_DISTRIBUTION",
"size_diff": "<string>",
"size_ratio": "<string>"
}
},
"current_pending_replace": {
"price": "19000.00",
"size": "0.001",
"replace_accept_timestamp": "<string>"
},
"commission_detail_total": {
"total_commission": "<string>",
"gst_commission": "<string>",
"withholding_commission": "<string>",
"client_commission": "<string>",
"venue_commission": "<string>",
"regulatory_commission": "<string>",
"clearing_commission": "<string>"
},
"workable_size": "3",
"workable_size_completion_pct": "50",
"product_details": {
"equity_details": {
"base_cbrn": "<string>",
"ticker": "<string>",
"quote_id": "<string>"
}
},
"cost_basis_method": "COST_BASIS_METHOD_UNSPECIFIED",
"displayed_order_config": "UNKNOWN_DISPLAYED_ORDER_CONFIG",
"equity_trading_session": "UNKNOWN_EQUITY_TRADING_SESSION"
}
}Get a single order by order ID.
curl --request GET \
--url https://api.coinbase.com/api/v3/brokerage/orders/historical/{order_id} \
--header 'Authorization: Bearer <token>'{
"order": {
"order_id": "0000-000000-000000",
"product_id": "BTC-USD",
"user_id": "2222-000000-000000",
"order_configuration": {
"market_market_ioc": {
"quote_size": "10.00",
"base_size": "0.001"
},
"market_market_fok": {
"quote_size": "10.00",
"base_size": "0.001"
},
"sor_limit_ioc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"limit_limit_gtc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
},
"limit_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"post_only": false
},
"limit_limit_fok": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"twap_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"start_time": "2021-05-31T07:59:59.000Z",
"end_time": "2021-05-31T09:59:59.000Z",
"limit_price": "10000.00",
"number_buckets": "5",
"bucket_size": "2.00",
"bucket_duration": "300s"
},
"stop_limit_stop_limit_gtc": {
"base_size": "0.001",
"limit_price": "10000.00",
"stop_price": "20000.00",
"stop_direction": "20000.00"
},
"stop_limit_stop_limit_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"stop_direction": "20000.00"
},
"trigger_bracket_gtc": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00"
},
"trigger_bracket_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z"
},
"scaled_limit_gtc": {
"orders": [
{
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
}
],
"quote_size": "<string>",
"base_size": "<string>",
"num_orders": 123,
"min_price": "<string>",
"max_price": "<string>",
"price_distribution": "FLAT",
"size_distribution": "UNKNOWN_DISTRIBUTION",
"size_diff": "<string>",
"size_ratio": "<string>"
}
},
"side": "",
"client_order_id": "11111-000000-000000",
"status": "PENDING",
"created_time": "2021-05-31T09:59:59.000Z",
"completion_percentage": "50",
"average_filled_price": "50",
"number_of_fills": "2",
"pending_cancel": true,
"size_in_quote": false,
"total_fees": "5.00",
"size_inclusive_of_fees": false,
"total_value_after_fees": "<string>",
"time_in_force": "UNKNOWN_TIME_IN_FORCE",
"filled_size": "0.001",
"fee": "<string>",
"filled_value": "10000",
"trigger_status": "UNKNOWN_TRIGGER_STATUS",
"order_type": "UNKNOWN_ORDER_TYPE",
"reject_reason": "REJECT_REASON_UNSPECIFIED",
"settled": true,
"product_type": "UNKNOWN_PRODUCT_TYPE",
"reject_message": "<string>",
"cancel_message": "<string>",
"order_placement_source": "UNKNOWN_PLACEMENT_SOURCE",
"outstanding_hold_amount": "<string>",
"is_liquidation": true,
"last_fill_time": "<string>",
"edit_history": [
{
"price": "19000.00",
"size": "0.001",
"replace_accept_timestamp": "<string>"
}
],
"leverage": "<string>",
"margin_type": "",
"retail_portfolio_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"originating_order_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"attached_order_id": "b87a2d3f-8a1e-49b3-a4ea-402d8c389aca",
"attached_order_configuration": {
"market_market_ioc": {
"quote_size": "10.00",
"base_size": "0.001"
},
"market_market_fok": {
"quote_size": "10.00",
"base_size": "0.001"
},
"sor_limit_ioc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"limit_limit_gtc": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
},
"limit_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"post_only": false
},
"limit_limit_fok": {
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00"
},
"twap_limit_gtd": {
"quote_size": "10.00",
"base_size": "0.001",
"start_time": "2021-05-31T07:59:59.000Z",
"end_time": "2021-05-31T09:59:59.000Z",
"limit_price": "10000.00",
"number_buckets": "5",
"bucket_size": "2.00",
"bucket_duration": "300s"
},
"stop_limit_stop_limit_gtc": {
"base_size": "0.001",
"limit_price": "10000.00",
"stop_price": "20000.00",
"stop_direction": "20000.00"
},
"stop_limit_stop_limit_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z",
"stop_direction": "20000.00"
},
"trigger_bracket_gtc": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00"
},
"trigger_bracket_gtd": {
"base_size": 0.001,
"limit_price": "10000.00",
"stop_trigger_price": "20000.00",
"end_time": "2021-05-31T09:59:59.000Z"
},
"scaled_limit_gtc": {
"orders": [
{
"quote_size": "10.00",
"base_size": "0.001",
"limit_price": "10000.00",
"post_only": false
}
],
"quote_size": "<string>",
"base_size": "<string>",
"num_orders": 123,
"min_price": "<string>",
"max_price": "<string>",
"price_distribution": "FLAT",
"size_distribution": "UNKNOWN_DISTRIBUTION",
"size_diff": "<string>",
"size_ratio": "<string>"
}
},
"current_pending_replace": {
"price": "19000.00",
"size": "0.001",
"replace_accept_timestamp": "<string>"
},
"commission_detail_total": {
"total_commission": "<string>",
"gst_commission": "<string>",
"withholding_commission": "<string>",
"client_commission": "<string>",
"venue_commission": "<string>",
"regulatory_commission": "<string>",
"clearing_commission": "<string>"
},
"workable_size": "3",
"workable_size_completion_pct": "50",
"product_details": {
"equity_details": {
"base_cbrn": "<string>",
"ticker": "<string>",
"quote_id": "<string>"
}
},
"cost_basis_method": "COST_BASIS_METHOD_UNSPECIFIED",
"displayed_order_config": "UNKNOWN_DISPLAYED_ORDER_CONFIG",
"equity_trading_session": "UNKNOWN_EQUITY_TRADING_SESSION"
}
}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.
The ID of the order.
(Deprecated) Client Order ID to fetch the order with.
(Deprecated) Native currency to fetch order with. Default is USD.
A successful response.
The retrieved order.
Show child attributes
The ID of the order.
"0000-000000-000000"
The trading pair (e.g. 'BTC-USD').
"BTC-USD"
The id of the User owning this Order
"2222-000000-000000"
The configuration of the order (e.g. the order type, size, etc).
Show child attributes
Buy or sell a specified quantity of an Asset at the current best available market price. Read more on Market Orders
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Buy or sell a specified quantity of an Asset at the current best available market price. The Order will only post to the Order Book if it is to immediately and completely Fill. Read more on Market Orders
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it will immediately Fill; any remaining quantity is canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it is to immediately and completely Fill. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
A time-weighted average price (TWAP) order type that calculates the average price of a product to programmatically execute an order over a specified duration.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Time at which the order should begin executing.
"2021-05-31T07:59:59.000Z"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The number of smaller buckets/suborders over which the entire order will be broken into. Each suborder will be executed over a duration calculated based on the end_time
"5"
The size of each suborder. bucket_size multiplied by number_buckets should match the size of the entire twap order)
"2.00"
The duration over which each sub order was executed
"300s"
Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until canceled. Read more on Stop-Limit Orders.
Show child attributes
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The specified price that will trigger the placement of the Order.
"20000.00"
The direction of the stop limit Order. If Up, then the Order will trigger when the last trade price goes above the stop_price. If Down, then the Order will trigger when the last trade price goes below the stop_price.
STOP_DIRECTION_STOP_UP, STOP_DIRECTION_STOP_DOWN "20000.00"
Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order. Read more on Stop-Limit Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The specified price that will trigger the placement of the Order.
"20000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
The direction of the stop limit Order. If Up, then the Order will trigger when the last trade price goes above the stop_price. If Down, then the Order will trigger when the last trade price goes below the stop_price.
STOP_DIRECTION_STOP_UP, STOP_DIRECTION_STOP_DOWN "20000.00"
A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until canceled. Read more on Bracket Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The price level (in quote currency) where the position will be exited. When triggered, a stop limit order is automatically placed with a limit price 5% higher for BUYS and 5% lower for SELLS.
"20000.00"
A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. Read more on Bracket Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The price level (in quote currency) where the position will be exited. When triggered, a stop limit order is automatically placed with a limit price 5% higher for BUYS and 5% lower for SELLS.
"20000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
A scaled order enables users to divide a large order into multiple smaller limit orders, which are placed incrementally across a user-defined price range. Read more on Limit Orders.
Show child attributes
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
FLAT, LINEAR_INCREASING, LINEAR_DECREASING Size distribution across the child orders.
UNKNOWN_DISTRIBUTION, INCREASING, DECREASING, EVENLY_SPLIT The side of the market that the order is on (e.g. 'BUY', 'SELL').
BUY, SELL The unique ID provided for the order (used for identification purposes).
"11111-000000-000000"
The current state of the order
PENDING, OPEN, FILLED, CANCELLED, EXPIRED, FAILED, UNKNOWN_ORDER_STATUS, QUEUED, CANCEL_QUEUED, EDIT_QUEUED Timestamp for when the order was created
"2021-05-31T09:59:59.000Z"
The percent of total order amount that has been filled
"50"
The average of all prices of fills for this order
"50"
Number of fills that have been posted for this order
"2"
Whether a cancel request has been initiated for the order, and not yet completed
true
Whether the order was placed with quote currency
false
The total fees for the order
"5.00"
Whether the order size includes fees
false
derived field: filled_value + total_fees for buy orders and filled_value - total_fees for sell orders.
The client specified window for which the order can remain active
UNKNOWN_TIME_IN_FORCE, GOOD_UNTIL_DATE_TIME, GOOD_UNTIL_CANCELLED, IMMEDIATE_OR_CANCEL, FILL_OR_KILL The portion (in base currency) of total order amount that has been filled
"0.001"
(Deprecated) Commission amount
The portion (in quote current) of total order amount that has been filled
"10000"
The trigger status of the order, with respect to stop price.
UNKNOWN_TRIGGER_STATUS, INVALID_ORDER_TYPE, STOP_PENDING, STOP_TRIGGERED Type of the order
UNKNOWN_ORDER_TYPE, MARKET, LIMIT, STOP, STOP_LIMIT, BRACKET, TWAP, ROLL_OPEN, ROLL_CLOSE, LIQUIDATION, SCALED Reason the order was rejected.
REJECT_REASON_UNSPECIFIED, HOLD_FAILURE, TOO_MANY_OPEN_ORDERS, REJECT_REASON_INSUFFICIENT_FUNDS, RATE_LIMIT_EXCEEDED True if the order is fully filled, false otherwise.
The type of order, i.e. Spot or Future
UNKNOWN_PRODUCT_TYPE, SPOT, FUTURE Message stating why the order was rejected.
Message stating why the order was canceled.
Message stating which source an order was placed from.
UNKNOWN_PLACEMENT_SOURCE, RETAIL_SIMPLE, RETAIL_ADVANCED The remaining hold amount (holdAmount - holdAmountReleased). [value is 0 if holdReleased is true]
True if order is of liquidation type.
Time of the most recent fill for this order
The amount of leverage for the order (default is 1.0).
Margin Type for this order (default is CROSS).
CROSS, ISOLATED The ID of the portfolio this order is associated with.
"b87a2d3f-8a1e-49b3-a4ea-402d8c389aca"
The ID of the parent order of an attached order.
"b87a2d3f-8a1e-49b3-a4ea-402d8c389aca"
The ID of the attached order of a parent order.
"b87a2d3f-8a1e-49b3-a4ea-402d8c389aca"
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 originating or parent order.
Show child attributes
Buy or sell a specified quantity of an Asset at the current best available market price. Read more on Market Orders
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Buy or sell a specified quantity of an Asset at the current best available market price. The Order will only post to the Order Book if it is to immediately and completely Fill. Read more on Market Orders
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it will immediately Fill; any remaining quantity is canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
Buy or sell a specified quantity of an Asset at a specified price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
Buy or sell a specified quantity of an Asset at a specified price. The Order will only post to the Order Book if it is to immediately and completely Fill. Read more on Limit Orders.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
A time-weighted average price (TWAP) order type that calculates the average price of a product to programmatically execute an order over a specified duration.
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
Time at which the order should begin executing.
"2021-05-31T07:59:59.000Z"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The number of smaller buckets/suborders over which the entire order will be broken into. Each suborder will be executed over a duration calculated based on the end_time
"5"
The size of each suborder. bucket_size multiplied by number_buckets should match the size of the entire twap order)
"2.00"
The duration over which each sub order was executed
"300s"
Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until canceled. Read more on Stop-Limit Orders.
Show child attributes
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The specified price that will trigger the placement of the Order.
"20000.00"
The direction of the stop limit Order. If Up, then the Order will trigger when the last trade price goes above the stop_price. If Down, then the Order will trigger when the last trade price goes below the stop_price.
STOP_DIRECTION_STOP_UP, STOP_DIRECTION_STOP_DOWN "20000.00"
Posts an Order to buy or sell a specified quantity of an Asset, but only if and when the last trade price on the Order Book equals or surpasses the Stop Price. If posted, the Order will remain on the Order Book until a certain time is reached or the Order. Read more on Stop-Limit Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The specified price that will trigger the placement of the Order.
"20000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
The direction of the stop limit Order. If Up, then the Order will trigger when the last trade price goes above the stop_price. If Down, then the Order will trigger when the last trade price goes below the stop_price.
STOP_DIRECTION_STOP_UP, STOP_DIRECTION_STOP_DOWN "20000.00"
A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until canceled. Read more on Bracket Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The price level (in quote currency) where the position will be exited. When triggered, a stop limit order is automatically placed with a limit price 5% higher for BUYS and 5% lower for SELLS.
"20000.00"
A Limit Order to buy or sell a specified quantity of an Asset at a specified price, with stop limit order parameters embedded in the order. If posted, the Order will remain on the Order Book until a certain time is reached or the Order is canceled. Read more on Bracket Orders.
Show child attributes
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
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
The price level (in quote currency) where the position will be exited. When triggered, a stop limit order is automatically placed with a limit price 5% higher for BUYS and 5% lower for SELLS.
"20000.00"
The time at which the order will be cancelled if it is not Filled.
"2021-05-31T09:59:59.000Z"
A scaled order enables users to divide a large order into multiple smaller limit orders, which are placed incrementally across a user-defined price range. Read more on Limit Orders.
Show child attributes
Show child attributes
The amount of the second Asset in the Trading Pair. For example, on the BTC/USD Order Book, USD is the Quote Asset.
"10.00"
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"
The specified price, or better, that the Order should be executed at. A Buy Order will execute at or lower than the limit price. A Sell Order will execute at or higher than the limit price.
"10000.00"
Enable or disable Post-only Mode. When enabled, only Maker Orders will be posted to the Order Book. Orders that will be posted as a Taker Order will be rejected.
false
FLAT, LINEAR_INCREASING, LINEAR_DECREASING Size distribution across the child orders.
UNKNOWN_DISTRIBUTION, INCREASING, DECREASING, EVENLY_SPLIT Price/Size of the current edit
Breakdown of commission charges for the order
Show child attributes
The size of order in the originating order which is filled.
"3"
Percentage of the originating order which is filled
"50"
Product-specific details, the oneof corresponds to the ProductType
The cost basis method for the order
COST_BASIS_METHOD_UNSPECIFIED, COST_BASIS_METHOD_HIFO, COST_BASIS_METHOD_LIFO, COST_BASIS_METHOD_FIFO Indicates how an order configuration is displayed to the user by the front end
UNKNOWN_DISPLAYED_ORDER_CONFIG, INSTANT_GFD, LIMIT_GFD Trading session for equity orders
UNKNOWN_EQUITY_TRADING_SESSION, EQUITY_TRADING_SESSION_NORMAL, EQUITY_TRADING_SESSION_AFTER_HOURS, EQUITY_TRADING_SESSION_MULTI_SESSION, EQUITY_TRADING_SESSION_OVERNIGHT, EQUITY_TRADING_SESSION_PRE_MARKET Was this page helpful?