All URIs are relative to https://api.gateio.ws/api/v4
Method | HTTP request | Description |
---|---|---|
AgencyTransactionHistory | GET /rebate/agency/transaction_history | The agency obtains the transaction history of the recommended user |
AgencyCommissionsHistory | GET /rebate/agency/commission_history | The agency obtains the commission history of the recommended user |
PartnerTransactionHistory | GET /rebate/partner/transaction_history | Partner obtains transaction records of recommended users |
PartnerCommissionsHistory | GET /rebate/partner/commission_history | Partner obtains commission records of recommended users |
PartnerSubList | GET /rebate/partner/sub_list | Partner subordinate list |
RebateBrokerCommissionHistory | GET /rebate/broker/commission_history | The broker obtains the user's commission rebate records |
RebateBrokerTransactionHistory | GET /rebate/broker/transaction_history | The broker obtains the user's trading history |
RebateUserInfo | GET /rebate/user/info | User retrieves rebate information |
UserSubRelation | GET /rebate/user/sub_relation | User-subordinate relationship |
List<AgencyTransactionHistory> AgencyTransactionHistory (string currencyPair = null, long? userId = null, long? from = null, long? to = null, int? limit = null, int? offset = null)
The agency obtains the transaction history of the recommended user
Record time range cannot exceed 30 days
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 AgencyTransactionHistoryExample
{
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 RebateApi(config);
var currencyPair = "BTC_USDT"; // string | Specify the currency pair, if not specified, return all currency pairs (optional)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1602120000; // long? | Time range beginning, default to 7 days before current time (optional)
var to = 1602123600; // long? | Time range ending, default to current time (optional)
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
try
{
// The agency obtains the transaction history of the recommended user
List<AgencyTransactionHistory> result = apiInstance.AgencyTransactionHistory(currencyPair, userId, from, to, limit, offset);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.AgencyTransactionHistory: " + 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 |
---|---|---|---|
currencyPair | string | Specify the currency pair, if not specified, return all currency pairs | [optional] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | Time range beginning, default to 7 days before current time | [optional] |
to | long? | Time range ending, default to current time | [optional] |
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
List<AgencyTransactionHistory>
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<AgencyCommissionHistory> AgencyCommissionsHistory (string currency = null, long? userId = null, long? from = null, long? to = null, int? limit = null, int? offset = null)
The agency obtains the commission history of the recommended user
Record time range cannot exceed 30 days
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 AgencyCommissionsHistoryExample
{
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 RebateApi(config);
var currency = "BTC"; // string | Filter by currency. Return all currency records if not specified (optional)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1602120000; // long? | Time range beginning, default to 7 days before current time (optional)
var to = 1602123600; // long? | Time range ending, default to current time (optional)
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
try
{
// The agency obtains the commission history of the recommended user
List<AgencyCommissionHistory> result = apiInstance.AgencyCommissionsHistory(currency, userId, from, to, limit, offset);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.AgencyCommissionsHistory: " + 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 |
---|---|---|---|
currency | string | Filter by currency. Return all currency records if not specified | [optional] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | Time range beginning, default to 7 days before current time | [optional] |
to | long? | Time range ending, default to current time | [optional] |
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PartnerTransactionHistory PartnerTransactionHistory (string currencyPair = null, long? userId = null, long? from = null, long? to = null, int? limit = null, int? offset = null)
Partner obtains transaction records of recommended users
Record time range cannot exceed 30 days
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 PartnerTransactionHistoryExample
{
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 RebateApi(config);
var currencyPair = "BTC_USDT"; // string | Specify the currency pair, if not specified, return all currency pairs (optional)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1602120000; // long? | Time range beginning, default to 7 days before current time (optional)
var to = 1602123600; // long? | Time range ending, default to current time (optional)
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
try
{
// Partner obtains transaction records of recommended users
PartnerTransactionHistory result = apiInstance.PartnerTransactionHistory(currencyPair, userId, from, to, limit, offset);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.PartnerTransactionHistory: " + 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 |
---|---|---|---|
currencyPair | string | Specify the currency pair, if not specified, return all currency pairs | [optional] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | Time range beginning, default to 7 days before current time | [optional] |
to | long? | Time range ending, default to current time | [optional] |
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PartnerCommissionHistory PartnerCommissionsHistory (string currency = null, long? userId = null, long? from = null, long? to = null, int? limit = null, int? offset = null)
Partner obtains commission records of recommended users
Record time range cannot exceed 30 days
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 PartnerCommissionsHistoryExample
{
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 RebateApi(config);
var currency = "BTC"; // string | Filter by currency. Return all currency records if not specified (optional)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1602120000; // long? | Time range beginning, default to 7 days before current time (optional)
var to = 1602123600; // long? | Time range ending, default to current time (optional)
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
try
{
// Partner obtains commission records of recommended users
PartnerCommissionHistory result = apiInstance.PartnerCommissionsHistory(currency, userId, from, to, limit, offset);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.PartnerCommissionsHistory: " + 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 |
---|---|---|---|
currency | string | Filter by currency. Return all currency records if not specified | [optional] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | Time range beginning, default to 7 days before current time | [optional] |
to | long? | Time range ending, default to current time | [optional] |
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PartnerSubList PartnerSubList (long? userId = null, int? limit = null, int? offset = null)
Partner subordinate list
Including sub-agents, direct customers, indirect customers
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 PartnerSubListExample
{
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 RebateApi(config);
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
try
{
// Partner subordinate list
PartnerSubList result = apiInstance.PartnerSubList(userId, limit, offset);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.PartnerSubList: " + 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 |
---|---|---|---|
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<BrokerCommission> RebateBrokerCommissionHistory (int? limit = null, int? offset = null, long? userId = null, long? from = null, long? to = null)
The broker obtains the user's commission rebate records
Record time range cannot exceed 30 days
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 RebateBrokerCommissionHistoryExample
{
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 RebateApi(config);
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1711929600; // long? | The start time of the query record. If not specified, the default is to push forward 30 days from the current time. (optional)
var to = 1714521600; // long? | Time range ending, default to current time (optional)
try
{
// The broker obtains the user's commission rebate records
List<BrokerCommission> result = apiInstance.RebateBrokerCommissionHistory(limit, offset, userId, from, to);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.RebateBrokerCommissionHistory: " + 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 |
---|---|---|---|
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | The start time of the query record. If not specified, the default is to push forward 30 days from the current time. | [optional] |
to | long? | Time range ending, default to current time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<BrokerTransaction> RebateBrokerTransactionHistory (int? limit = null, int? offset = null, long? userId = null, long? from = null, long? to = null)
The broker obtains the user's trading history
Record time range cannot exceed 30 days
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 RebateBrokerTransactionHistoryExample
{
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 RebateApi(config);
var limit = 100; // int? | Maximum number of records to be returned in a single list (optional) (default to 100)
var offset = 0; // int? | List offset, starting from 0 (optional) (default to 0)
var userId = 10003; // long? | User ID. If not specified, all user records will be returned (optional)
var from = 1711929600; // long? | The start time of the query record. If not specified, the default is to push forward 30 days from the current time. (optional)
var to = 1714521600; // long? | Time range ending, default to current time (optional)
try
{
// The broker obtains the user's trading history
List<BrokerTransaction> result = apiInstance.RebateBrokerTransactionHistory(limit, offset, userId, from, to);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.RebateBrokerTransactionHistory: " + 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 |
---|---|---|---|
limit | int? | Maximum number of records to be returned in a single list | [optional] [default to 100] |
offset | int? | List offset, starting from 0 | [optional] [default to 0] |
userId | long? | User ID. If not specified, all user records will be returned | [optional] |
from | long? | The start time of the query record. If not specified, the default is to push forward 30 days from the current time. | [optional] |
to | long? | Time range ending, default to current time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<RebateUserInfo> RebateUserInfo ()
User retrieves rebate 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 RebateUserInfoExample
{
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 RebateApi(config);
try
{
// User retrieves rebate information
List<RebateUserInfo> result = apiInstance.RebateUserInfo();
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.RebateUserInfo: " + 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]
UserSubRelation UserSubRelation (string userIdList)
User-subordinate relationship
Query whether the specified user is in the system
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 UserSubRelationExample
{
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 RebateApi(config);
var userIdList = "1, 2, 3"; // string | Query the user's ID list, split by,, if there are more than 100, take 100
try
{
// User-subordinate relationship
UserSubRelation result = apiInstance.UserSubRelation(userIdList);
Debug.WriteLine(result);
}
catch (GateApiException e)
{
Debug.Print("Exception when calling RebateApi.UserSubRelation: " + 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 |
---|---|---|---|
userIdList | string | Query the user's ID list, split by,, if there are more than 100, take 100 |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List retrieved | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]