All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
insuranceGet | GET /insurance | Get insurance fund history. |
-(NSURLSessionTask*) insuranceGetWithSymbol: (NSString*) symbol
filter: (NSString*) filter
columns: (NSString*) columns
count: (NSNumber*) count
start: (NSNumber*) start
reverse: (NSNumber*) reverse
startTime: (NSDate*) startTime
endTime: (NSDate*) endTime
completionHandler: (void (^)(NSArray<SWGInsurance>* output, NSError* error)) handler;
Get insurance fund history.
NSString* symbol = @"symbol_example"; // Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`. (optional)
NSString* filter = @"filter_example"; // Generic table filter. Send JSON key/value pairs, such as `{\"key\": \"value\"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https://www.bitmex.com/app/restAPI#Timestamp-Filters) for more details. (optional)
NSString* columns = @"columns_example"; // Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. (optional)
NSNumber* count = @100; // Number of results to fetch. (optional) (default to 100)
NSNumber* start = @0; // Starting point for results. (optional) (default to 0)
NSNumber* reverse = @false; // If true, will sort results newest first. (optional) (default to false)
NSDate* startTime = @"2013-10-20T19:20:30+01:00"; // Starting date filter for results. (optional)
NSDate* endTime = @"2013-10-20T19:20:30+01:00"; // Ending date filter for results. (optional)
SWGInsuranceApi*apiInstance = [[SWGInsuranceApi alloc] init];
// Get insurance fund history.
[apiInstance insuranceGetWithSymbol:symbol
filter:filter
columns:columns
count:count
start:start
reverse:reverse
startTime:startTime
endTime:endTime
completionHandler: ^(NSArray<SWGInsurance>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGInsuranceApi->insuranceGet: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
symbol | NSString* | Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`. | [optional] |
filter | NSString* | Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the Timestamp Docs for more details. | [optional] |
columns | NSString* | Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. | [optional] |
count | NSNumber* | Number of results to fetch. | [optional] [default to 100] |
start | NSNumber* | Starting point for results. | [optional] [default to 0] |
reverse | NSNumber* | If true, will sort results newest first. | [optional] [default to false] |
startTime | NSDate* | Starting date filter for results. | [optional] |
endTime | NSDate* | Ending date filter for results. | [optional] |
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]