All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
stats_get | GET /stats | Get exchange-wide and per-series turnover and volume statistics. |
stats_history | GET /stats/history | Get historical exchange-wide and per-series turnover and volume statistics. |
stats_history_usd | GET /stats/historyUSD | Get a summary of exchange statistics in USD. |
list[Stats] stats_get()
Get exchange-wide and per-series turnover and volume statistics.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StatsApi()
try:
# Get exchange-wide and per-series turnover and volume statistics.
api_response = api_instance.stats_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling StatsApi->stats_get: %s\n" % e)
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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[StatsHistory] stats_history()
Get historical exchange-wide and per-series turnover and volume statistics.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StatsApi()
try:
# Get historical exchange-wide and per-series turnover and volume statistics.
api_response = api_instance.stats_history()
pprint(api_response)
except ApiException as e:
print("Exception when calling StatsApi->stats_history: %s\n" % e)
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
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[StatsUSD] stats_history_usd()
Get a summary of exchange statistics in USD.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.StatsApi()
try:
# Get a summary of exchange statistics in USD.
api_response = api_instance.stats_history_usd()
pprint(api_response)
except ApiException as e:
print("Exception when calling StatsApi->stats_history_usd: %s\n" % e)
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
[Back to top] [Back to API list] [Back to Model list] [Back to README]