All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
OrderBookGetL2 | GET /orderBook/L2 | Get current orderbook in vertical format. |
List OrderBookGetL2 (string symbol, decimal? depth = null)
Get current orderbook in vertical format.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class OrderBookGetL2Example
{
public void main()
{
var apiInstance = new OrderBookApi();
var symbol = symbol_example; // string | Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series.
var depth = 8.14; // decimal? | Orderbook depth per side. Send 0 for full depth. (optional) (default to 25)
try
{
// Get current orderbook in vertical format.
List<OrderBookL2> result = apiInstance.OrderBookGetL2(symbol, depth);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OrderBookApi.OrderBookGetL2: " + e.Message );
}
}
}
}
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 | decimal? | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]