Get current order book
GET/v1/orderbooks/:symbol_id/current
Retrieves the current order book for the specified symbol.
Request
Path Parameters
The symbol ID (from the Metadata -> Symbols)
Query Parameters
The maximum number of levels to include in the response.
Responses
- 200
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example response
Schema
The symbol identifier.
The exchange time of the order book.
The CoinAPI time when the order book was received.
The asks made by market makers.
The bids made by market makers.
{
"symbol_id": "string",
"time_exchange": "2024-11-12T12:17:30.492Z",
"time_coinapi": "2024-11-12T12:17:30.492Z"
}
{
"symbol_id": "COINBASE_SPOT_BCH_USD",
"time_exchange": "2020-08-27T10:28:35.6111130Z",
"time_coinapi": "2020-08-27T10:28:35.6766461Z",
"asks": [
{
"id": "3c5e789c-4c84-448a-9c5d-50532ea1ccbb",
"price": 272.89,
"size": 1
},
{
"id": "c64a76ba-5107-4c1b-b788-271ee88df318",
"price": 272.9,
"size": 18
}
],
"bids": [
{
"id": "100d5004-f4e0-4e92-a571-392403d5b073",
"price": 272.83,
"size": 18
},
{
"id": "0889cf06-4a9d-4519-98e6-fac5dcb7afbf",
"price": 272.83,
"size": 0.64185083
}
]
}
- Schema
- Example (from schema)
- Example response
Schema
The symbol identifier.
The exchange time of the order book.
The CoinAPI time when the order book was received.
The asks made by market makers.
The bids made by market makers.
{
"symbol_id": "string",
"time_exchange": "2024-11-12T12:17:30.492Z",
"time_coinapi": "2024-11-12T12:17:30.492Z"
}
{
"symbol_id": "COINBASE_SPOT_BCH_USD",
"time_exchange": "2020-08-27T10:28:35.6111130Z",
"time_coinapi": "2020-08-27T10:28:35.6766461Z",
"asks": [
{
"id": "3c5e789c-4c84-448a-9c5d-50532ea1ccbb",
"price": 272.89,
"size": 1
},
{
"id": "c64a76ba-5107-4c1b-b788-271ee88df318",
"price": 272.9,
"size": 18
}
],
"bids": [
{
"id": "100d5004-f4e0-4e92-a571-392403d5b073",
"price": 272.83,
"size": 18
},
{
"id": "0889cf06-4a9d-4519-98e6-fac5dcb7afbf",
"price": 272.83,
"size": 0.64185083
}
]
}
- Schema
- Example (from schema)
- Example response
Schema
The symbol identifier.
The exchange time of the order book.
The CoinAPI time when the order book was received.
The asks made by market makers.
The bids made by market makers.
{
"symbol_id": "string",
"time_exchange": "2024-11-12T12:17:30.493Z",
"time_coinapi": "2024-11-12T12:17:30.493Z"
}
{
"symbol_id": "COINBASE_SPOT_BCH_USD",
"time_exchange": "2020-08-27T10:28:35.6111130Z",
"time_coinapi": "2020-08-27T10:28:35.6766461Z",
"asks": [
{
"id": "3c5e789c-4c84-448a-9c5d-50532ea1ccbb",
"price": 272.89,
"size": 1
},
{
"id": "c64a76ba-5107-4c1b-b788-271ee88df318",
"price": 272.9,
"size": 18
}
],
"bids": [
{
"id": "100d5004-f4e0-4e92-a571-392403d5b073",
"price": 272.83,
"size": 18
},
{
"id": "0889cf06-4a9d-4519-98e6-fac5dcb7afbf",
"price": 272.83,
"size": 0.64185083
}
]
}
- Schema
- Example (from schema)
- Example response
Schema
The symbol identifier.
The exchange time of the order book.
The CoinAPI time when the order book was received.
The asks made by market makers.
The bids made by market makers.
{
"symbol_id": "string",
"time_exchange": "2024-11-12T12:17:30.493Z",
"time_coinapi": "2024-11-12T12:17:30.493Z"
}
{
"symbol_id": "COINBASE_SPOT_BCH_USD",
"time_exchange": "2020-08-27T10:28:35.6111130Z",
"time_coinapi": "2020-08-27T10:28:35.6766461Z",
"asks": [
{
"id": "3c5e789c-4c84-448a-9c5d-50532ea1ccbb",
"price": 272.89,
"size": 1
},
{
"id": "c64a76ba-5107-4c1b-b788-271ee88df318",
"price": 272.9,
"size": 18
}
],
"bids": [
{
"id": "100d5004-f4e0-4e92-a571-392403d5b073",
"price": 272.83,
"size": 18
},
{
"id": "0889cf06-4a9d-4519-98e6-fac5dcb7afbf",
"price": 272.83,
"size": 0.64185083
}
]
}