Get Order Book Snapshots

Returns the most recent order book snapshot for a specified market before a specified time

Definition

Endpoint:
GET https://api.tokendatabase.com/v0.1/markets/orderbook
Objects per Hit:
1

Parameters

Name Required Description Available Values Default
before Optional Before time. Returns the latest order book snapshot before the specified time (UTC) A Time Value now
ids Required Specifies a list of market ids from which to retrieve an orderbook snapshot A Market ID List
key Required Your API key YOUR_API_KEY

Responses

Name Type Description
id string The unique id used to reference the market on the API
exchange string The exchange id of the market
base string The asset id of the base asset for the market
quote string The asset id of the quote asset for the market
type string The market type of the market
orderbook map The order book snapshot for the requested market
(orderbook) time A Time Value The time of the observed order book snapshot
(orderbook) asks list List of order book levels for the ask side of the market order book
(orderbook) bids list List of order book levels for the bids side of the market order book
(orderbook) price float The price at an order book level at the time the snapshot was observed
(orderbook) orders list List of orders open at an order book level at the time the snapshot was observed

Example 1

Lookup order book snapshot for market with id: poloniex_spot_btc_usdt, before: 2019-01-01

https://api1.tokendatabase.com/v0.1/markets/orderbook?ids=poloniex_spot_btc_usdt&before=2019-01-01&key=YOUR_API_KEY

Response

    

Last Modified: 2018-11-30