feat(v2.3.5): added missing affiliate endpoints in broker client, updated examples and endpoint map
This commit is contained in:
22
examples/apidoc/RestClientV2/getFuturesInterestHistory.js
Normal file
22
examples/apidoc/RestClientV2/getFuturesInterestHistory.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const { RestClientV2 } = 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/v2/mix/account/interest-history
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
|
||||
const client = new RestClientV2({
|
||||
apiKey: 'insert_api_key_here',
|
||||
apiSecret: 'insert_api_secret_here',
|
||||
apiPass: 'insert_api_pass_here',
|
||||
});
|
||||
|
||||
client.getFuturesInterestHistory(params)
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user