The /historical_trades/ticker_id is used to return data on historical completed trades for a given market pair.
Endpoint parameters:
ticker_id: A pair such as "BTC_ETH", with delimiter between different cryptoassets
type: To indicate nature of trade - buy/sell
limit: Number of historical trades to retrieve from time of query. [0, 200, 500...]. 0 returns full history.
start_time: Start time from which to query historical trades from
end_time: End time for historical trades query
Example query:
.../api/historical_trades?ticker_id=BTC_ETH&limit=10
Response parameters:
"trade_id": transactionHash,
"price": Transaction price of baseToken in quoteToken.,
"base_volume": Transaction amount in base pair volume.,
"target_volume": Transaction amount in target pair volume.,
"trade_timestamp": Unix timestamp in milliseconds for when the transaction occurred.
"type": Used to determine the type of the transaction that was completed.
-- Buy – Identifies an ask that was removed from the order book.
-- Sell – Identifies a bid that was removed from the order book.
Endpoint 4 - /historical_trades (Historical Data)
The /historical_trades/ticker_id is used to return data on historical completed trades for a given market pair.
Endpoint parameters:
Example query: .../api/historical_trades?ticker_id=BTC_ETH&limit=10
Response parameters:
Example response: