Skip to content

Commit e5859ab

Browse files
authored
Merge pull request sieblyio#129 from JJ-Cro/master
feat(v1.5.5): add new OTC bank management endpoints, update existing request/response types, and enhance WebSocket client functionality @JJ-Cro
2 parents 7d0ec4b + 0cbd4a1 commit e5859ab

448 files changed

Lines changed: 9404 additions & 7351 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/endpointFunctionList.md

Lines changed: 417 additions & 398 deletions
Large diffs are not rendered by default.

examples/apidoc/RestClient/addAutoInvestPlanPosition.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /earn/autoinvest/plans/add_position
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /earn/autoinvest/plans/add_position
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/addUsersToStpGroup.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /account/stp_groups/{stp_id}/users
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /account/stp_groups/{stp_id}/users
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/amendOptionsOrder.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /options/orders/{order_id}
6-
// METHOD: PUT
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /options/orders/{order_id}
8+
// METHOD: PUT
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/batchCancelFuturesOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /futures/{settle}/batch_cancel_orders
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /futures/{settle}/batch_cancel_orders
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/batchCancelSpotOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /spot/cancel_batch_orders
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /spot/cancel_batch_orders
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/batchTerminateTrailOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /futures/{settle}/autoorder/v1/trail/stop_all
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /futures/{settle}/autoorder/v1/trail/stop_all
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/batchUpdateFuturesOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /futures/{settle}/batch_amend_orders
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /futures/{settle}/batch_amend_orders
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/batchUpdateSpotOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /spot/amend_batch_orders
6-
// METHOD: POST
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /spot/amend_batch_orders
8+
// METHOD: POST
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

examples/apidoc/RestClient/cancelAllDeliveryOrders.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
const { RestClient } = require('gateio-api');
1+
import { RestClient } from 'gateio-api';
2+
// or, if require is preferred:
3+
// const { RestClient } = require('gateio-api');
24

3-
// 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
4-
// This Gate.io API SDK is available on npm via "npm install gateio-api"
5-
// ENDPOINT: /delivery/{settle}/orders
6-
// METHOD: DELETE
7-
// PUBLIC: NO
5+
// 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
6+
// This Gate.io API SDK is available on npm via "npm install gateio-api"
7+
// ENDPOINT: /delivery/{settle}/orders
8+
// METHOD: DELETE
9+
// PUBLIC: NO
810

911
const client = new RestClient({
1012
apiKey: 'insert_api_key_here',

0 commit comments

Comments
 (0)