Skip to content

Latest commit

 

History

History
122 lines (82 loc) · 2.85 KB

StatsApi.md

File metadata and controls

122 lines (82 loc) · 2.85 KB

BitMexApi.StatsApi

All URIs are relative to https://localhost/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

[Stats] statsGet()

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

Example

import BitMexApi from 'bit_mex_api';

let apiInstance = new BitMexApi.StatsApi();

apiInstance.statsGet((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

[Stats]

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

statsHistory

[StatsHistory] statsHistory()

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

Example

import BitMexApi from 'bit_mex_api';

let apiInstance = new BitMexApi.StatsApi();

apiInstance.statsHistory((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

[StatsHistory]

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

statsHistoryUSD

[StatsUSD] statsHistoryUSD()

Get a summary of exchange statistics in USD.

Example

import BitMexApi from 'bit_mex_api';

let apiInstance = new BitMexApi.StatsApi();

apiInstance.statsHistoryUSD((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

This endpoint does not need any parameter.

Return type

[StatsUSD]

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