All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
guildArchive | POST /guild/archive | Archive a guild |
guildEdit | PUT /guild | Edit guild new guild |
guildGet | GET /guild | Get all guilds |
guildJoin | POST /guild/join | Request to Join a private guild or join a public guild |
guildKick | POST /guild/kick | Kick member from guild |
guildLeave | POST /guild/leave | Leave guild or cancel guild join request |
guildNew | POST /guild | Creates a new guild |
guildShareTrades | POST /guild/shareTrades | Toggle share trades for your account, which controls whether your guild members can see your orders and positions in their UI |
-(NSURLSessionTask*) guildArchiveWithCompletionHandler:
(void (^)(NSObject* output, NSError* error)) handler;
Archive a guild
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"];
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Archive a guild
[apiInstance guildArchiveWithCompletionHandler:
^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildArchive: %@", error);
}
}];
This endpoint does not need any parameter.
NSObject*
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]
-(NSURLSessionTask*) guildEditWithName: (NSString*) name
emoji: (NSString*) emoji
potDistributionPercent: (NSNumber*) potDistributionPercent
potDistributionType: (NSString*) potDistributionType
potTraderId: (NSNumber*) potTraderId
_description: (NSString*) _description
twitter: (NSString*) twitter
discord: (NSString*) discord
telegram: (NSString*) telegram
imgUrl: (NSString*) imgUrl
isPrivate: (NSNumber*) isPrivate
completionHandler: (void (^)(SWGGuild* output, NSError* error)) handler;
Edit guild new guild
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"];
NSString* name = @"name_example"; // Name of the guild, must be unique, must be at least 5 characters
NSString* emoji = @"emoji_example"; // Emoji name.
NSNumber* potDistributionPercent = @1.2; // How much of the pot should be distributed to the guild members, must be between 0 and 100
NSString* potDistributionType = @"potDistributionType_example"; // How the pot should be distributed to the guild members, must be one of the following: ROLL_OVER, TOP_3, TOP_5, TOP_10, VOLUME_PERCENTAGE, TOP_3_BY_ADV, TOP_5_BY_ADV, TOP_10_BY_ADV, TOP_3_BY_ROI, TOP_5_BY_ROI, TOP_10_BY_ROI, RANDOM
NSNumber* potTraderId = @1.2; // User ID of the guild member with order write permission for the pot (optional)
NSString* _description = @"_description_example"; // Guild description, can be used to explain the guild to other users. (optional)
NSString* twitter = @"twitter_example"; // Guild twitter handle. (optional)
NSString* discord = @"discord_example"; // Guild discord link. (optional)
NSString* telegram = @"telegram_example"; // Guild telegram link. (optional)
NSString* imgUrl = @"imgUrl_example"; // URL for the profile image of the guild, is used by clients to add some color to the guild, if no image is provided, a default image is used (optional)
NSNumber* isPrivate = @true; // Guild privacy status (optional)
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Edit guild new guild
[apiInstance guildEditWithName:name
emoji:emoji
potDistributionPercent:potDistributionPercent
potDistributionType:potDistributionType
potTraderId:potTraderId
_description:_description
twitter:twitter
discord:discord
telegram:telegram
imgUrl:imgUrl
isPrivate:isPrivate
completionHandler: ^(SWGGuild* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildEdit: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
name | NSString* | Name of the guild, must be unique, must be at least 5 characters | |
emoji | NSString* | Emoji name. | |
potDistributionPercent | NSNumber* | How much of the pot should be distributed to the guild members, must be between 0 and 100 | |
potDistributionType | NSString* | How the pot should be distributed to the guild members, must be one of the following: ROLL_OVER, TOP_3, TOP_5, TOP_10, VOLUME_PERCENTAGE, TOP_3_BY_ADV, TOP_5_BY_ADV, TOP_10_BY_ADV, TOP_3_BY_ROI, TOP_5_BY_ROI, TOP_10_BY_ROI, RANDOM | |
potTraderId | NSNumber* | User ID of the guild member with order write permission for the pot | [optional] |
_description | NSString* | Guild description, can be used to explain the guild to other users. | [optional] |
NSString* | Guild twitter handle. | [optional] | |
discord | NSString* | Guild discord link. | [optional] |
telegram | NSString* | Guild telegram link. | [optional] |
imgUrl | NSString* | URL for the profile image of the guild, is used by clients to add some color to the guild, if no image is provided, a default image is used | [optional] |
isPrivate | NSNumber* | Guild privacy status | [optional] |
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]
-(NSURLSessionTask*) guildGetWithCompletionHandler:
(void (^)(NSArray<SWGXAny>* output, NSError* error)) handler;
Get all guilds
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Get all guilds
[apiInstance guildGetWithCompletionHandler:
^(NSArray<SWGXAny>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildGet: %@", error);
}
}];
This endpoint does not need any parameter.
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]
-(NSURLSessionTask*) guildJoinWithCode: (NSString*) code
completionHandler: (void (^)(NSObject* output, NSError* error)) handler;
Request to Join a private guild or join a public guild
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"];
NSString* code = @"code_example"; //
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Request to Join a private guild or join a public guild
[apiInstance guildJoinWithCode:code
completionHandler: ^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildJoin: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
code | NSString* |
NSObject*
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]
-(NSURLSessionTask*) guildKickWithMemberUserId: (NSNumber*) memberUserId
completionHandler: (void (^)(NSObject* output, NSError* error)) handler;
Kick member from guild
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* memberUserId = @1.2; //
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Kick member from guild
[apiInstance guildKickWithMemberUserId:memberUserId
completionHandler: ^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildKick: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
memberUserId | NSNumber* |
NSObject*
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]
-(NSURLSessionTask*) guildLeaveWithCompletionHandler:
(void (^)(NSObject* output, NSError* error)) handler;
Leave guild or cancel guild join request
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"];
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Leave guild or cancel guild join request
[apiInstance guildLeaveWithCompletionHandler:
^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildLeave: %@", error);
}
}];
This endpoint does not need any parameter.
NSObject*
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]
-(NSURLSessionTask*) guildNewWithName: (NSString*) name
emoji: (NSString*) emoji
potDistributionPercent: (NSNumber*) potDistributionPercent
potDistributionType: (NSString*) potDistributionType
_description: (NSString*) _description
twitter: (NSString*) twitter
discord: (NSString*) discord
telegram: (NSString*) telegram
imgUrl: (NSString*) imgUrl
isPrivate: (NSNumber*) isPrivate
completionHandler: (void (^)(SWGGuild* output, NSError* error)) handler;
Creates a new guild
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"];
NSString* name = @"name_example"; // Name of the guild, must be unique, must be at least 5 characters
NSString* emoji = @"emoji_example"; // Emoji name.
NSNumber* potDistributionPercent = @1.2; // How much of the pot should be distributed to the guild members, must be between 0 and 100
NSString* potDistributionType = @"potDistributionType_example"; // How the pot should be distributed to the guild members, must be one of the following: ROLL_OVER, TOP_3, TOP_5, TOP_10, VOLUME_PERCENTAGE, TOP_3_BY_ADV, TOP_5_BY_ADV, TOP_10_BY_ADV, TOP_3_BY_ROI, TOP_5_BY_ROI, TOP_10_BY_ROI, RANDOM
NSString* _description = @"_description_example"; // Guild description, can be used to explain the guild to other users. (optional)
NSString* twitter = @"twitter_example"; // Guild twitter handle. (optional)
NSString* discord = @"discord_example"; // Guild discord link. (optional)
NSString* telegram = @"telegram_example"; // Guild telegram link. (optional)
NSString* imgUrl = @"imgUrl_example"; // URL for the profile image of the guild, is used by clients to add some color to the guild, if no image is provided, a default image is used (optional)
NSNumber* isPrivate = @true; // Guild privacy status (optional)
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Creates a new guild
[apiInstance guildNewWithName:name
emoji:emoji
potDistributionPercent:potDistributionPercent
potDistributionType:potDistributionType
_description:_description
twitter:twitter
discord:discord
telegram:telegram
imgUrl:imgUrl
isPrivate:isPrivate
completionHandler: ^(SWGGuild* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildNew: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
name | NSString* | Name of the guild, must be unique, must be at least 5 characters | |
emoji | NSString* | Emoji name. | |
potDistributionPercent | NSNumber* | How much of the pot should be distributed to the guild members, must be between 0 and 100 | |
potDistributionType | NSString* | How the pot should be distributed to the guild members, must be one of the following: ROLL_OVER, TOP_3, TOP_5, TOP_10, VOLUME_PERCENTAGE, TOP_3_BY_ADV, TOP_5_BY_ADV, TOP_10_BY_ADV, TOP_3_BY_ROI, TOP_5_BY_ROI, TOP_10_BY_ROI, RANDOM | |
_description | NSString* | Guild description, can be used to explain the guild to other users. | [optional] |
NSString* | Guild twitter handle. | [optional] | |
discord | NSString* | Guild discord link. | [optional] |
telegram | NSString* | Guild telegram link. | [optional] |
imgUrl | NSString* | URL for the profile image of the guild, is used by clients to add some color to the guild, if no image is provided, a default image is used | [optional] |
isPrivate | NSNumber* | Guild privacy status | [optional] |
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]
-(NSURLSessionTask*) guildShareTradesWithShareTrades: (NSNumber*) shareTrades
completionHandler: (void (^)(NSObject* output, NSError* error)) handler;
Toggle share trades for your account, which controls whether your guild members can see your orders and positions in their UI
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* shareTrades = @true; //
SWGGuildApi*apiInstance = [[SWGGuildApi alloc] init];
// Toggle share trades for your account, which controls whether your guild members can see your orders and positions in their UI
[apiInstance guildShareTradesWithShareTrades:shareTrades
completionHandler: ^(NSObject* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGGuildApi->guildShareTrades: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
shareTrades | NSNumber* |
NSObject*
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]