All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
order_book_get_l2 | GET /orderBook/L2 | Get current orderbook in vertical format. |
Array<OrderBookL2> order_book_get_l2(symbol, opts)
Get current orderbook in vertical format.
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::OrderBookApi.new
symbol = 'symbol_example' # String | Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series.
opts = {
depth: 25 # Float | Orderbook depth per side. Send 0 for full depth.
}
begin
#Get current orderbook in vertical format.
result = api_instance.order_book_get_l2(symbol, opts)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling OrderBookApi->order_book_get_l2: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
symbol | String | Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series. | |
depth | Float | Orderbook depth per side. Send 0 for full depth. | [optional] [default to 25] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript