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. |
[Stats] statsGet()
Get exchange-wide and per-series turnover and volume statistics.
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);
}
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[StatsHistory] statsHistory()
Get historical exchange-wide and per-series turnover and volume statistics.
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);
}
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[StatsUSD] statsHistoryUSD()
Get a summary of exchange statistics in USD.
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);
}
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript