Skip to content

Latest commit

 

History

History
176 lines (133 loc) · 4.59 KB

StatsApi.md

File metadata and controls

176 lines (133 loc) · 4.59 KB

IO.Swagger.Api.StatsApi

All URIs are relative to https://www.bitmex.com/api/v1

Method HTTP request Description
StatsGet GET /stats Get exchange-wide and per-series turnover and volume statistics.
StatsHistory GET /stats/history Get historical exchange-wide and per-series turnover and volume statistics.
StatsHistoryUSD GET /stats/historyUSD Get a summary of exchange statistics in USD.

StatsGet

List StatsGet ()

Get exchange-wide and per-series turnover and volume statistics.

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class StatsGetExample
    {
        public void main()
        {
            var apiInstance = new StatsApi();

            try
            {
                // Get exchange-wide and per-series turnover and volume statistics.
                List<Stats> result = apiInstance.StatsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatsApi.StatsGet: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

HTTP request headers

  • 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]

StatsHistory

List StatsHistory ()

Get historical exchange-wide and per-series turnover and volume statistics.

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class StatsHistoryExample
    {
        public void main()
        {
            var apiInstance = new StatsApi();

            try
            {
                // Get historical exchange-wide and per-series turnover and volume statistics.
                List<StatsHistory> result = apiInstance.StatsHistory();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatsApi.StatsHistory: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

HTTP request headers

  • 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]

StatsHistoryUSD

List StatsHistoryUSD ()

Get a summary of exchange statistics in USD.

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class StatsHistoryUSDExample
    {
        public void main()
        {
            var apiInstance = new StatsApi();

            try
            {
                // Get a summary of exchange statistics in USD.
                List<StatsUSD> result = apiInstance.StatsHistoryUSD();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StatsApi.StatsHistoryUSD: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

HTTP request headers

  • 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]