All URIs are relative to https://api.gateio.ws/api/v4
| Method | HTTP request | Description |
|---|---|---|
| GetAccountDetail | GET /account/detail | Retrieve user account information |
| GetAccountMainKeys | GET /account/main_keys | Query All Main Account Key Information |
| GetAccountRateLimit | GET /account/rate_limit | Get user transaction rate limit information |
| ListSTPGroups | GET /account/stp_groups | Query STP user groups created by the user |
| CreateSTPGroup | POST /account/stp_groups | Create STP user group |
| ListSTPGroupsUsers | GET /account/stp_groups/{stp_id}/users | Query users in the STP user group |
| AddSTPGroupUsers | POST /account/stp_groups/{stp_id}/users | Add users to the STP user group |
| DeleteSTPGroupUsers | DELETE /account/stp_groups/{stp_id}/users | Delete users from the STP user group |
| GetDebitFee | GET /account/debit_fee | Query GT fee deduction configuration |
| SetDebitFee | POST /account/debit_fee | Configure GT fee deduction |
AccountDetail GetAccountDetail ()
Retrieve user account information
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class GetAccountDetailExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
try
{
// Retrieve user account information
AccountDetail result = apiInstance.GetAccountDetail();
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.GetAccountDetail: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountKeyInfo GetAccountMainKeys ()
Query All Main Account Key Information
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class GetAccountMainKeysExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
try
{
// Query All Main Account Key Information
AccountKeyInfo result = apiInstance.GetAccountMainKeys();
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.GetAccountMainKeys: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<AccountRateLimit> GetAccountRateLimit ()
Get user transaction rate limit information
This interface is not yet open for use
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class GetAccountRateLimitExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
try
{
// Get user transaction rate limit information
List<AccountRateLimit> result = apiInstance.GetAccountRateLimit();
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.GetAccountRateLimit: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successfully retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<StpGroup> ListSTPGroups (string name = null)
Query STP user groups created by the user
Only query STP user groups created by the current main account
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class ListSTPGroupsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var name = "group"; // string | Fuzzy search by name (optional)
try
{
// Query STP user groups created by the user
List<StpGroup> result = apiInstance.ListSTPGroups(name);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.ListSTPGroups: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Fuzzy search by name | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List retrieved successfully | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StpGroup CreateSTPGroup (StpGroup stpGroup)
Create STP user group
Only the main account is allowed to create a new STP user group
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class CreateSTPGroupExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var stpGroup = new StpGroup(); // StpGroup |
try
{
// Create STP user group
StpGroup result = apiInstance.CreateSTPGroup(stpGroup);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.CreateSTPGroup: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| stpGroup | StpGroup |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User added successfully, returning current users in the STP group | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<StpGroupUser> ListSTPGroupsUsers (long stpId)
Query users in the STP user group
Only the main account that created this STP group can query the account ID list of the current STP group
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class ListSTPGroupsUsersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var stpId = 1; // long | STP Group ID
try
{
// Query users in the STP user group
List<StpGroupUser> result = apiInstance.ListSTPGroupsUsers(stpId);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.ListSTPGroupsUsers: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| stpId | long | STP Group ID |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List retrieved successfully | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<StpGroupUser> AddSTPGroupUsers (long stpId, List requestBody)
Add users to the STP user group
- Only the main account that created this STP group can add users to the STP user group - Only accounts under the current main account are allowed, cross-main account is not permitted
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class AddSTPGroupUsersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var stpId = 1; // long | STP Group ID
var requestBody = new List<long>(); // List<long> | User ID
try
{
// Add users to the STP user group
List<StpGroupUser> result = apiInstance.AddSTPGroupUsers(stpId, requestBody);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.AddSTPGroupUsers: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| stpId | long | STP Group ID | |
| requestBody | List<long> | User ID |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User added successfully, returning current users in the STP group | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<StpGroupUser> DeleteSTPGroupUsers (long stpId, long userId)
Delete users from the STP user group
- Only the main account that created this STP group is allowed to delete users from the STP user group - Deletion is limited to accounts under the current main account; cross-account deletion is not permitted
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class DeleteSTPGroupUsersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var stpId = 1; // long | STP Group ID
var userId = 1; // long | STP user IDs, multiple IDs can be separated by commas
try
{
// Delete users from the STP user group
List<StpGroupUser> result = apiInstance.DeleteSTPGroupUsers(stpId, userId);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.DeleteSTPGroupUsers: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| stpId | long | STP Group ID | |
| userId | long | STP user IDs, multiple IDs can be separated by commas |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Users deleted successfully, returns current users in the STP group | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DebitFee GetDebitFee ()
Query GT fee deduction configuration
Query the GT fee deduction configuration for the current account
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class GetDebitFeeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
try
{
// Query GT fee deduction configuration
DebitFee result = apiInstance.GetDebitFee();
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.GetDebitFee: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void SetDebitFee (DebitFee debitFee)
Configure GT fee deduction
Enable or disable GT fee deduction for the current account
using System.Collections.Generic;
using System.Diagnostics;
using Io.Gate.GateApi.Api;
using Io.Gate.GateApi.Client;
using Io.Gate.GateApi.Model;
namespace Example
{
public class SetDebitFeeExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.gateio.ws/api/v4";
config.SetGateApiV4KeyPair("YOUR_API_KEY", "YOUR_API_SECRET");
var apiInstance = new AccountApi(config);
var debitFee = new DebitFee(); // DebitFee |
try
{
// Configure GT fee deduction
apiInstance.SetDebitFee(debitFee);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling AccountApi.SetDebitFee: " + e.Message);
Debug.Print("Exception label: {0}, message: {1}", e.ErrorLabel, e.ErrorMessage);
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| debitFee | DebitFee |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]