Skip to content

Latest commit

 

History

History
143 lines (97 loc) · 4.42 KB

SWGStatsApi.md

File metadata and controls

143 lines (97 loc) · 4.42 KB

SWGStatsApi

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

-(NSURLSessionTask*) statsGetWithCompletionHandler: 
        (void (^)(NSArray<SWGStats>* output, NSError* error)) handler;

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

Example

SWGStatsApi*apiInstance = [[SWGStatsApi alloc] init];

// Get exchange-wide and per-series turnover and volume statistics.
[apiInstance statsGetWithCompletionHandler: 
          ^(NSArray<SWGStats>* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling SWGStatsApi->statsGet: %@", error);
                        }
                    }];

Parameters

This endpoint does not need any parameter.

Return type

NSArray*

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

-(NSURLSessionTask*) statsHistoryWithCompletionHandler: 
        (void (^)(NSArray<SWGStatsHistory>* output, NSError* error)) handler;

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

Example

SWGStatsApi*apiInstance = [[SWGStatsApi alloc] init];

// Get historical exchange-wide and per-series turnover and volume statistics.
[apiInstance statsHistoryWithCompletionHandler: 
          ^(NSArray<SWGStatsHistory>* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling SWGStatsApi->statsHistory: %@", error);
                        }
                    }];

Parameters

This endpoint does not need any parameter.

Return type

NSArray*

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

-(NSURLSessionTask*) statsHistoryUSDWithCompletionHandler: 
        (void (^)(NSArray<SWGStatsUSD>* output, NSError* error)) handler;

Get a summary of exchange statistics in USD.

Example

SWGStatsApi*apiInstance = [[SWGStatsApi alloc] init];

// Get a summary of exchange statistics in USD.
[apiInstance statsHistoryUSDWithCompletionHandler: 
          ^(NSArray<SWGStatsUSD>* output, NSError* error) {
                        if (output) {
                            NSLog(@"%@", output);
                        }
                        if (error) {
                            NSLog(@"Error calling SWGStatsApi->statsHistoryUSD: %@", error);
                        }
                    }];

Parameters

This endpoint does not need any parameter.

Return type

NSArray*

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]