All URIs are relative to https://api.gateio.ws/api/v4
Method | HTTP request | Description |
---|---|---|
listMarginCurrencyPairs | GET /margin/currency_pairs | List all supported currency pairs supported in margin trading |
getMarginCurrencyPair | GET /margin/currency_pairs/{currency_pair} | Query one single margin currency pair |
listFundingBook | GET /margin/funding_book | Order book of lending loans |
listCrossMarginCurrencies | GET /margin/cross/currencies | Currencies supported by cross margin. |
getCrossMarginCurrency | GET /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin |
[MarginCurrencyPair] listMarginCurrencyPairs()
List all supported currency pairs supported in margin trading
var GateApi = require('gate-api');
var apiInstance = new GateApi.MarginApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listMarginCurrencyPairs(callback);
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
MarginCurrencyPair getMarginCurrencyPair(currencyPair)
Query one single margin currency pair
var GateApi = require('gate-api');
var apiInstance = new GateApi.MarginApi();
var currencyPair = "BTC_USDT"; // String | Margin currency pair
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getMarginCurrencyPair(currencyPair, callback);
Name | Type | Description | Notes |
---|---|---|---|
currencyPair | String | Margin currency pair |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[FundingBookItem] listFundingBook(currency)
Order book of lending loans
var GateApi = require('gate-api');
var apiInstance = new GateApi.MarginApi();
var currency = "BTC"; // String | Retrieve data of the specified currency
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listFundingBook(currency, callback);
Name | Type | Description | Notes |
---|---|---|---|
currency | String | Retrieve data of the specified currency |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[CrossMarginCurrency] listCrossMarginCurrencies()
Currencies supported by cross margin.
var GateApi = require('gate-api');
var apiInstance = new GateApi.MarginApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.listCrossMarginCurrencies(callback);
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
CrossMarginCurrency getCrossMarginCurrency(currency)
Retrieve detail of one single currency supported by cross margin
var GateApi = require('gate-api');
var apiInstance = new GateApi.MarginApi();
var currency = "BTC"; // String | Currency name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getCrossMarginCurrency(currency, callback);
Name | Type | Description | Notes |
---|---|---|---|
currency | String | Currency name |
No authorization required
- Content-Type: Not defined
- Accept: application/json