(order_book_l3)
This section describes calls related to order book data, also known as books or passive level 3 data.
- get_v1_orderbooks3_current - [order book l3] Current order books
- get_v1_orderbooks3_symbol_id_current - [order book l3] Current order book by symbol_id
[order book l3] Current order books
import coinapi
s = coinapi.CoinAPI(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.order_book_l3.get_v1_orderbooks3_current(filter_symbol_id='<value>', limit_levels=555267)
if res.content is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
filter_symbol_id |
Optional[str] | ➖ | Comma or semicolon delimited parts of symbol identifier used to filter the response. |
limit_levels |
Optional[int] | ➖ | The maximum number of levels to include in the response. |
operations.GetV1Orderbooks3CurrentResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.CoinAPIError | 4x-5xx | / |
Retrieves the current order book for the specified symbol.
import coinapi
s = coinapi.CoinAPI(
api_key="<YOUR_API_KEY_HERE>",
)
res = s.order_book_l3.get_v1_orderbooks3_symbol_id_current(symbol_id='<value>', limit_levels=838831)
if res.content is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
symbol_id |
str | ✔️ | The symbol ID (from the Metadata -> Symbols) |
limit_levels |
Optional[int] | ➖ | The maximum number of levels to include in the response. |
operations.GetV1Orderbooks3SymbolIDCurrentResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.CoinAPIError | 4x-5xx | / |