Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 2.62 KB

StatsApi.md

File metadata and controls

92 lines (62 loc) · 2.62 KB

swagger_client.StatsApi

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

list[Stats] stats_get()

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

Example

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

Parameters

This endpoint does not need any parameter.

Return type

list[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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

stats_history

list[StatsHistory] stats_history()

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

Example

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

Parameters

This endpoint does not need any parameter.

Return type

list[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

[Back to top] [Back to API list] [Back to Model list] [Back to README]