Get your fills
GET/fills
This endpoint returns information on your filled orders for all futures contracts.
Request
Query Parameters
Responses
- 200
- application/json
- Schema
- success
Schema
- Success Response
- ErrorResponse
- Array [
maker
- user has a limit order that gets filledtaker
- the user makes an execution that crosses the spreadliquidation
- execution is result of a liquidationassignee
- execution is a result of a counterparty receiving an Assignment in PASassignor
- execution is a result of user assigning their position due to failed liquidation- ]
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
fills object[]
A list containing structures with information on filled orders. The
list is sorted descending by fillTime
.
The unique client order identifier.
This field is returned only if the order has a client order ID.
The date and time the order was filled.
Possible values: [maker
, taker
, liquidation
, assignor
, assignee
, takerAfterEdit
, unwindBankrupt
, unwindCounterparty
]
The classification of the fill:
The unique identifier of the fill. Note that several fill_id
can pertain to one
order_id
(but not vice versa)
The unique identifier of the order.
The price of the fill.
Possible values: [buy
, sell
]
The direction of the order.
The size of the fill.
The symbol of the futures the fill occurred in.
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",
"fills": [
{
"fill_id": "3d57ed09-fbd6-44f1-8e8b-b10e551c5e73",
"symbol": "PI_XBTUSD",
"side": "buy",
"order_id": "693af756-055e-47ef-99d5-bcf4c456ebc5",
"size": 5490,
"price": 9400,
"fillTime": "2020-07-22T13:37:27.077Z",
"fillType": "maker"
},
{
"fill_id": "56b86ada-73b0-454d-a95a-e29e3e85b349",
"symbol": "PI_XBTUSD",
"side": "buy",
"order_id": "3f513c4c-683d-44ab-a73b-d296abbea201",
"size": 5000,
"price": 9456,
"fillTime": "2020-07-21T12:41:52.790Z",
"fillType": "taker"
}
],
"serverTime": "2020-07-22T13:44:24.311Z"
}