Skip to content

Commit

Permalink
Merge pull request #39 from JJ-Cro/Update191124
Browse files Browse the repository at this point in the history
v1.1.1 feat(): updated support for headers in params directly
  • Loading branch information
tiagosiebler authored Nov 19, 2024
2 parents 8a07564 + 56e73ce commit db2df5a
Show file tree
Hide file tree
Showing 10 changed files with 484 additions and 340 deletions.
546 changes: 273 additions & 273 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions examples/apidoc/RestClient/batchCancelFuturesOrders.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
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}/batch_cancel_orders
// METHOD: POST
// PUBLIC: NO
// 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}/batch_cancel_orders
// METHOD: POST
// PUBLIC: NO

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

client
.batchCancelFuturesOrders(params)
client.batchCancelFuturesOrders(params)
.then((response) => {
console.log(response);
})
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gateio-api",
"version": "1.1.0",
"version": "1.1.1",
"description": "Complete & robust Node.js SDK for Gate.io's REST APIs, WebSockets & WebSocket APIs, with TypeScript declarations.",
"scripts": {
"clean": "rm -rf dist/*",
Expand Down
Loading

0 comments on commit db2df5a

Please sign in to comment.