Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 3.01 KB

SWGStatsApi.md

File metadata and controls

98 lines (66 loc) · 3.01 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.

statsGet

-(NSNumber*) 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

-(NSNumber*) 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]