Get trade history
GET/history
This endpoint returns the most recent 100 trades prior to the specified lastTime
value up
to past 7 days or recent trading engine restart (whichever is sooner).
If no lastTime
specified, it will return 100 most recent trades.
Request
Query Parameters
The symbol of the Futures.
Returns the last 100 trades from the specified lastTime value.
Responses
- 200
- application/json
- Schema
Schema
- Success Response
- ErrorResponse
- Array [
fill
- it is a normal buyer and sellerliquidation
- it is a result of a user being liquidated from their positionassignment
- the fill is the result of a users position being assigned to a marketmakertermination
- it is a result of a user being terminatedblock
- it is an element of a block trade- ]
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
history object[]
A list containing structures with historical price information. The list is sorted descending by time.
For futures: The price of a fill
For indices: The calculated value
The classification of the taker side in the matched trade: "buy" if the taker is a buyer, "sell" if the taker is a seller.
For futures: The size of a fill For indices: Not returned because N/A
The date and time of a trade or an index computation
For futures: The date and time of a trade. Data is not aggregated For indices: The date and time of an index computation. For real-time indices, data is aggregated to the last computation of each full hour. For reference rates, data is not aggregated
For futures: A continuous index starting at 1 for the first fill in a Futures contract maturity For indices: Not returned because N/A
Possible values: [fill
, liquidation
, assignment
, termination
, block
]
The classification of the matched trade in an orderbook:
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)