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 |
interface{} GuildArchive(ctx, ) Archive a guild
This endpoint does not need any parameter.
interface{}
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]
Guild GuildEdit(ctx, name, emoji, potDistributionPercent, potDistributionType, optional) Edit guild new guild
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string | Name of the guild, must be unique, must be at least 5 characters | |
| emoji | string | Emoji name. | |
| potDistributionPercent | float64 | How much of the pot should be distributed to the guild members, must be between 0 and 100 | |
| potDistributionType | string | 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 | |
| optional | *GuildApiGuildEditOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GuildApiGuildEditOpts struct
| Name | Type | Description | Notes |
|---|
potTraderId | optional.Float64| User ID of the guild member with order write permission for the pot | description | optional.String| Guild description, can be used to explain the guild to other users. | twitter | optional.String| Guild twitter handle. | discord | optional.String| Guild discord link. | telegram | optional.String| Guild telegram link. | imgUrl | optional.String| 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 | isPrivate | optional.Bool| Guild privacy status |
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]
[]XAny GuildGet(ctx, ) Get all guilds
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]
interface{} GuildJoin(ctx, code) Request to Join a private guild or join a public guild
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| code | string |
interface{}
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]
interface{} GuildKick(ctx, memberUserId) Kick member from guild
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| memberUserId | float64 |
interface{}
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]
interface{} GuildLeave(ctx, ) Leave guild or cancel guild join request
This endpoint does not need any parameter.
interface{}
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]
Guild GuildNew(ctx, name, emoji, potDistributionPercent, potDistributionType, optional) Creates a new guild
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string | Name of the guild, must be unique, must be at least 5 characters | |
| emoji | string | Emoji name. | |
| potDistributionPercent | float64 | How much of the pot should be distributed to the guild members, must be between 0 and 100 | |
| potDistributionType | string | 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 | |
| optional | *GuildApiGuildNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GuildApiGuildNewOpts struct
| Name | Type | Description | Notes |
|---|
description | optional.String| Guild description, can be used to explain the guild to other users. | twitter | optional.String| Guild twitter handle. | discord | optional.String| Guild discord link. | telegram | optional.String| Guild telegram link. | imgUrl | optional.String| 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 | isPrivate | optional.Bool| Guild privacy status |
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]
interface{} GuildShareTrades(ctx, shareTrades) Toggle share trades for your account, which controls whether your guild members can see your orders and positions in their UI
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| shareTrades | bool |
interface{}
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]