Get open orders
GET/openorders
This endpoint returns information on all open orders for all Futures contracts.
Responses
- 200
- application/json
- Schema
- success
Schema
- Success Response
- ErrorResponse
- Array [
untouched
- the entire size of the order is unfilledpartiallyFilled
- the size of the order is partially but not entirely filledlmt
- limit orderstp
- stop ordertake_profit
- take profit order- ]
accountInactive
: The Futures account the request refers to is inactiveapiLimitExceeded
: The API limit for the calling IP address has been exceededauthenticationError
: The request could not be authenticatedinsufficientFunds
: The amount requested for transfer is below the amount of funds availableinvalidAccount
: The Futures account the transfer request refers to is invalidinvalidAmount
: The amount the transfer request refers to is invalidinvalidArgument
: One or more arguments provided are invalidinvalidUnit
: The unit the transfer request refers to is invalidJson Parse Error
: The request failed to pass valid JSON as an argumentmarketUnavailable
: The market is currently unavailablenonceBelowThreshold
: The provided nonce is below the thresholdnonceDuplicate
: The provided nonce is a duplicate as it has been used in a previous requestnotFound
: The requested information could not be foundrequiredArgumentMissing
: One or more required arguments are missingServer Error
: There was an error processing the requestUnavailable
: The endpoint being called is unavailableunknownError
: An unknown error has occurred
openOrders object[]
A list containing structures with information on open orders. The list is sorted descending by receivedTime.
The unique identifier of the order.
The unique client order identifier. This field is returned only if the order has a client order ID.
Possible values: [untouched
, partiallyFilled
]
The status of the order:
Possible values: [buy
, sell
]
The direction of the order.
Possible values: [lmt
, stop
, take_profit
]
The order type:
The symbol of the futures to which the order refers.
The limit price associated with the order.
If orderType is stp
: The stop price associated with the order
If orderType is lmt
: Not returned because N/A
The filled size associated with the order.
The unfilled size associated with the order.
Is the order a reduce only order or not.
Possible values: [mark
, last
, spot
]
The trigger signal for the stop or take profit order.
The date and time the order was last updated.
The date and time the order was received.
Possible values: [success
]
Server time in Coordinated Universal Time (UTC)
Possible values: [accountInactive
, apiLimitExceeded
, authenticationError
, insufficientFunds
, invalidAccount
, invalidAmount
, invalidArgument
, invalidUnit
, Json Parse Error
, marketUnavailable
, nonceBelowThreshold
, nonceDuplicate
, notFound
, requiredArgumentMissing
, Server Error
, Unavailable
, unknownError
]
Possible values: [accountInactive
, apiLimitExceeded
, authenticationError
, insufficientFunds
, invalidAccount
, invalidAmount
, invalidArgument
, invalidUnit
, Json Parse Error
, marketUnavailable
, nonceBelowThreshold
, nonceDuplicate
, notFound
, requiredArgumentMissing
, Server Error
, Unavailable
, unknownError
]
Error description.
Possible values: [error
]
Server time in Coordinated Universal Time (UTC)
{
"result": "success",
"openOrders": [
{
"order_id": "59302619-41d2-4f0b-941f-7e7914760ad3",
"symbol": "PI_XBTUSD",
"side": "sell",
"orderType": "lmt",
"limitPrice": 10640,
"unfilledSize": 304,
"receivedTime": "2019-09-05T17:01:17.410Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": true,
"lastUpdateTime": "2019-09-05T17:01:17.410Z"
},
{
"order_id": "022774bc-2c4a-4f26-9317-436c8d85746d",
"symbol": "PI_XBTUSD",
"side": "buy",
"orderType": "lmt",
"limitPrice": 7200,
"unfilledSize": 1501,
"receivedTime": "2019-09-05T16:41:35.173Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": false,
"lastUpdateTime": "2019-09-05T16:47:47.519Z"
},
{
"order_id": "d08021f7-58cb-4f2c-9c86-da4c60de46bb",
"symbol": "PI_XBTUSD",
"side": "sell",
"orderType": "lmt",
"limitPrice": 10640,
"unfilledSize": 10000,
"receivedTime": "2019-09-05T16:38:43.651Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": true,
"lastUpdateTime": "2019-09-05T16:38:43.651Z"
},
{
"order_id": "179f9af8-e45e-469d-b3e9-2fd4675cb7d0",
"symbol": "PI_XBTUSD",
"side": "buy",
"orderType": "lmt",
"limitPrice": 9400,
"unfilledSize": 10000,
"receivedTime": "2019-09-05T16:33:50.734Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": false,
"lastUpdateTime": "2019-09-05T16:33:50.734Z"
},
{
"order_id": "9c2cbcc8-14f6-42fe-a020-6e395babafd1",
"symbol": "PI_XBTUSD",
"side": "buy",
"orderType": "lmt",
"limitPrice": 9400,
"unfilledSize": 1000,
"receivedTime": "2019-09-04T11:45:48.884Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": false,
"lastUpdateTime": "2019-09-05T16:41:40.996Z"
},
{
"order_id": "3deea5c8-0274-4d33-988c-9e5a3895ccf8",
"symbol": "PI_XBTUSD",
"side": "buy",
"orderType": "lmt",
"limitPrice": 8500,
"unfilledSize": 102,
"receivedTime": "2019-09-03T12:52:17.945Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": false,
"lastUpdateTime": "2019-09-03T12:52:17.945Z"
},
{
"order_id": "fcbb1459-6ed2-4b3c-a58c-67c4df7412cf",
"symbol": "PI_XBTUSD",
"side": "buy",
"orderType": "lmt",
"limitPrice": 7200,
"unfilledSize": 1501,
"receivedTime": "2019-09-02T12:54:34.347Z",
"status": "untouched",
"filledSize": 0,
"reduceOnly": false,
"lastUpdateTime": "2019-09-02T12:54:34.347Z"
}
],
"serverTime": "2019-09-05T17:08:18.138Z"
}