Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
940 changes: 473 additions & 467 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/apidoc/RestClient/cancelSpotPovOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { RestClient } from 'gateio-api';

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /spot/pov_orders/{order_id}/cancel
// METHOD: POST
// ENDPOINT: /spot/pov_orders/{order_id}
// METHOD: DELETE
// PUBLIC: NO

const client = new RestClient({
Expand Down
4 changes: 2 additions & 2 deletions examples/apidoc/RestClient/cancelSpotPovOrders.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { RestClient } from 'gateio-api';

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /spot/pov_orders/cancel
// METHOD: POST
// ENDPOINT: /spot/pov_orders
// METHOD: DELETE
// PUBLIC: NO

const client = new RestClient({
Expand Down
2 changes: 1 addition & 1 deletion examples/apidoc/RestClient/createOTCBank.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RestClient } from 'gateio-api';

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /otc/bank/delete
// ENDPOINT: /otc/bank/create
// METHOD: POST
// PUBLIC: NO

Expand Down
22 changes: 22 additions & 0 deletions examples/apidoc/RestClient/createOTCUploadPreUpload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { RestClient } from 'gateio-api';
// or, if require is preferred:
// const { RestClient } = require('gateio-api');

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /otc/upload/pre_upload
// METHOD: POST
// PUBLIC: NO

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.createOTCUploadPreUpload(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
2 changes: 1 addition & 1 deletion examples/apidoc/RestClient/getTradFiSymbolCommissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RestClient } from 'gateio-api';
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /tradfi/symbols/commissions
// METHOD: GET
// PUBLIC: YES
// PUBLIC: NO

const client = new RestClient({
apiKey: 'insert_api_key_here',
Expand Down
22 changes: 22 additions & 0 deletions examples/apidoc/RestClient/listAnnouncementArticles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { RestClient } from 'gateio-api';
// or, if require is preferred:
// const { RestClient } = require('gateio-api');

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /ann/list_article
// METHOD: POST
// PUBLIC: YES

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.listAnnouncementArticles(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/RestClient/listFuturesADLRiskStates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { RestClient } from 'gateio-api';
// or, if require is preferred:
// const { RestClient } = require('gateio-api');

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /futures/{settle}/adl_risk_states
// METHOD: GET
// PUBLIC: YES

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.listFuturesADLRiskStates(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/RestClient/updateCrossExPositionsMargin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { RestClient } from 'gateio-api';
// or, if require is preferred:
// const { RestClient } = require('gateio-api');

// This example shows how to call this Gate.io API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "gateio-api" for Gate.io exchange
// This Gate.io API SDK is available on npm via "npm install gateio-api"
// ENDPOINT: /crossex/positions/margin
// METHOD: POST
// PUBLIC: NO

const client = new RestClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.updateCrossExPositionsMargin(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Loading
Loading