Merge pull request #49 from JJ-Cro/Update151024
feat(): updated examples, readme
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
[1]: https://www.npmjs.com/package/bitget-api
|
||||
|
||||
|
||||
Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets:
|
||||
|
||||
- Complete integration with all Bitget APIs.
|
||||
@@ -37,6 +36,7 @@ Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and We
|
||||
|
||||
- Issues? Check the [issues tab](https://github.com/tiagosiebler/bitget-api/issues).
|
||||
- Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram.
|
||||
- Follow our announcement channel for real-time updates on [X/Twitter](https://x.com/QuantSDKs)
|
||||
|
||||
<!-- template_related_projects -->
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/user/batch-create-subaccount-and-apikey
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.batchCreateVirtualSubaccountAndAPIKey(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/loan/borrow
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.borrowLoan(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/spot-follower/stop-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.cancelSpotFollowerOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/close-positions
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.closeFuturesFollowerPositions(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/order-close-positions
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.closeFuturesTraderOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/trade
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.convert(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/bgb-convert
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.convertBGB(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/broker/account/create-subaccount
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.createSubaccount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/broker/manage/create-subaccount-apikey
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.createSubaccountApiKey(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/broker/account/subaccount-address
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.createSubaccountDepositAddress(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/user/create-virtual-subaccount
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.createVirtualSubaccount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/user/create-virtual-subaccount-apikey
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.createVirtualSubaccountAPIKey(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/subscribe
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.earnSubscribeSavings(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/batch-cancel-orders
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresBatchCancelOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/batch-place-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresBatchSubmitOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/cancel-all-orders
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresCancelAllOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/cancel-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresCancelOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/cancel-plan-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresCancelPlanOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/close-positions
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresFlashClosePositions(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/modify-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresModifyOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/modify-plan-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresModifyPlanOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/modify-tpsl-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresModifyTPSLPOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/place-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresSubmitOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/place-plan-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresSubmitPlanOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/plan-sub-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresSubmitPlanSubOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/click-backhand
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresSubmitReversal(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/place-tpsl-order
|
||||
// METHOD: POST
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.futuresSubmitTPSLOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/public/annoucements
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getAnnouncements(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/account/all-account-balance
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBalances(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/account/bot-assets
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBotAccount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/broker/account/info
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBrokerInfo(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-broker/query-traders
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBrokerTraders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-broker/query-history-traces
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBrokerTradersHistoricalOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-broker/query-current-traces
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getBrokerTradersPendingOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/bgb-convert-coin-list
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getConvertBGBCoins(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/bgb-convert-records
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getConvertBGBHistory(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/currencies
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getConvertCoins(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/convert-record
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getConvertHistory(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/convert/quoted-price
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getConvertQuotedPrice(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/account/assets
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnAccount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/account
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsAccount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/assets
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsAssets(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/product
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsProducts(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/records
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsRecords(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/redeem-result
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsRedemptionResult(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/subscribe-info
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsSubscription(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/earn/savings/subscribe-result
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getEarnSavingsSubscriptionResult(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/account/funding-assets
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFundingAssets(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/account
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesAccountAsset(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/accounts
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesAccountAssets(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/bill
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesAccountBills(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/long-short
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesActiveBuySellVolumeData(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/account-long-short
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesActiveLongShortAccountData(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/position-long-short
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesActiveLongShortPositionData(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/taker-buy-sell
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesActiveTakerBuySellVolumeData(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/tickers
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesAllTickers(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/candles
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesCandles(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/contracts
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesContractConfig(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/current-fund-rate
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesCurrentFundingRate(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/fills
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFills(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/query-current-orders
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFollowerCurrentOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/query-quantity-limit
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFollowerFollowLimit(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/query-history-orders
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFollowerHistoryOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/query-settings
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFollowerSettings(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-follower/query-traders
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesFollowerTraders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/history-candles
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricCandles(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/history-fund-rate
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricFundingRates(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/history-index-candles
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricIndexPriceCandles(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/history-mark-candles
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricMarkPriceCandles(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/fill-history
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricOrderFills(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/orders-history
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/orders-plan-history
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricPlanOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/position/history-position
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricPositions(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/fills-history
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesHistoricTrades(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/long-short-ratio
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesLongShortRatio(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/merge-depth
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesMergeDepth(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/funding-time
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesNextFundingTime(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/open-count
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesOpenCount(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/open-interest
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesOpenInterest(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/orders-pending
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesOpenOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/detail
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/order/orders-plan-pending
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesPlanOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/position/single-position
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesPosition(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/query-position-lever
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesPositionTier(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/position/all-position
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesPositions(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/fills
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesRecentTrades(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/sub-account-assets
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesSubAccountAssets(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/symbol-price
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesSymbolPrice(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/market/ticker
|
||||
// METHOD: GET
|
||||
// PUBLIC: YES
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTicker(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/order-current-track
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderCurrentOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/config-query-followers
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderFollowers(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/order-history-track
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderHistoryOrders(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/order-total-detail
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderOrder(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/profit-history-summarys
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderProfitHistory(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/profit-details
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderProfitShare(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/profits-group-coin-date
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderProfitShareGroup(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/profit-history-details
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderProfitShareHistory(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/copy/mix-trader/config-query-symbols
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTraderSymbolSettings(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
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/tax/future-record
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
||||
});
|
||||
|
||||
client.getFuturesTransactionRecords(params)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user