All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
aPIKeyGet | GET /apiKey | Get your API Keys. |
-(NSURLSessionTask*) aPIKeyGetWithReverse: (NSNumber*) reverse
completionHandler: (void (^)(NSArray<SWGAPIKey>* output, NSError* error)) handler;
Get your API Keys.
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: apiExpires)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-expires"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-expires"];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
// Configure API key authorization: (authentication scheme: apiSignature)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-signature"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-signature"];
NSNumber* reverse = @false; // If true, will sort results newest first. (optional) (default to false)
SWGAPIKeyApi*apiInstance = [[SWGAPIKeyApi alloc] init];
// Get your API Keys.
[apiInstance aPIKeyGetWithReverse:reverse
completionHandler: ^(NSArray<SWGAPIKey>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGAPIKeyApi->aPIKeyGet: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
reverse | NSNumber* | If true, will sort results newest first. | [optional] [default to false] |
apiExpires, apiKey, apiSignature
- 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]