All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
APIKeyDisable | Post /apiKey/disable | Disable an API Key. |
APIKeyEnable | Post /apiKey/enable | Enable an API Key. |
APIKeyGet | Get /apiKey | Get your API Keys. |
APIKeyNew | Post /apiKey | Create a new API Key. |
APIKeyRemove | Delete /apiKey | Remove an API Key. |
ApiKey APIKeyDisable(ctx, apiKeyID) Disable an API Key.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiKeyID | string | API Key ID (public component). |
apiKey, apiNonce, 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]
ApiKey APIKeyEnable(ctx, apiKeyID) Enable an API Key.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiKeyID | string | API Key ID (public component). |
apiKey, apiNonce, 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]
[]ApiKey APIKeyGet(ctx, optional) Get your API Keys.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *APIKeyGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a APIKeyGetOpts struct
Name | Type | Description | Notes |
---|---|---|---|
reverse | optional.Bool | If true, will sort results newest first. | [default to false] |
apiKey, apiNonce, 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]
ApiKey APIKeyNew(ctx, optional) Create a new API Key.
API Keys can only be created via the frontend.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *APIKeyNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a APIKeyNewOpts struct
Name | Type | Description | Notes |
---|---|---|---|
name | optional.String | Key name. This name is for reference only. | |
cidr | optional.String | CIDR block to restrict this key to. To restrict to a single address, append "/32", e.g. 207.39.29.22/32. Leave blank or set to 0.0.0.0/0 to allow all IPs. Only one block may be set. <a href="http://software77.net/cidr-101.html\">More on CIDR blocks</a> | |
permissions | optional.String | Key Permissions. All keys can read margin and position data. Additional permissions must be added. Available: ["order", "orderCancel", "withdraw"]. | |
enabled | optional.Bool | Set to true to enable this key on creation. Otherwise, it must be explicitly enabled via /apiKey/enable. | [default to false] |
token | optional.String | OTP Token (YubiKey, Google Authenticator) |
apiKey, apiNonce, 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]
InlineResponse200 APIKeyRemove(ctx, apiKeyID) Remove an API Key.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
apiKeyID | string | API Key ID (public component). |
apiKey, apiNonce, 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]