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
166 changes: 84 additions & 82 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions examples/apidoc/RestClientV3/getOpenInterestLimit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { RestClientV3 } from 'bitget-api';
// or if you want to use the require syntax
// const { RestClientV3 } = require('bitget-api');


// This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange
// This Bitget API SDK is available on npm via "npm install bitget-api"
// ENDPOINT: /api/v3/account/open-interest-limit
// METHOD: GET
// PUBLIC: NO

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

client.getOpenInterestLimit(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
24 changes: 24 additions & 0 deletions examples/apidoc/RestClientV3/getTaxRecords.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { RestClientV3 } from 'bitget-api';
// or if you want to use the require syntax
// const { RestClientV3 } = require('bitget-api');


// This example shows how to call this Bitget API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitget-api" for Bitget exchange
// This Bitget API SDK is available on npm via "npm install bitget-api"
// ENDPOINT: /api/v3/tax/records
// METHOD: GET
// PUBLIC: NO

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

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