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
|
[1]: https://www.npmjs.com/package/bitget-api
|
||||||
|
|
||||||
|
|
||||||
Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets:
|
Updated & performant JavaScript & Node.js SDK for the Bitget V2 REST APIs and WebSockets:
|
||||||
|
|
||||||
- Complete integration with all Bitget APIs.
|
- 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).
|
- 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.
|
- 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 -->
|
<!-- template_related_projects -->
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/user/batch-create-subaccount-and-apikey
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.batchCreateVirtualSubaccountAndAPIKey(params)
|
client.batchCreateVirtualSubaccountAndAPIKey(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/loan/borrow
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.borrowLoan(params)
|
client.borrowLoan(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/spot-follower/stop-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.cancelSpotFollowerOrder(params)
|
client.cancelSpotFollowerOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/close-positions
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.closeFuturesFollowerPositions(params)
|
client.closeFuturesFollowerPositions(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/order-close-positions
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.closeFuturesTraderOrder(params)
|
client.closeFuturesTraderOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/trade
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.convert(params)
|
client.convert(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/bgb-convert
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.convertBGB(params)
|
client.convertBGB(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/broker/account/create-subaccount
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.createSubaccount(params)
|
client.createSubaccount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/broker/manage/create-subaccount-apikey
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.createSubaccountApiKey(params)
|
client.createSubaccountApiKey(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/broker/account/subaccount-address
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.createSubaccountDepositAddress(params)
|
client.createSubaccountDepositAddress(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/user/create-virtual-subaccount
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.createVirtualSubaccount(params)
|
client.createVirtualSubaccount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/user/create-virtual-subaccount-apikey
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.createVirtualSubaccountAPIKey(params)
|
client.createVirtualSubaccountAPIKey(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/subscribe
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.earnSubscribeSavings(params)
|
client.earnSubscribeSavings(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/batch-cancel-orders
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresBatchCancelOrders(params)
|
client.futuresBatchCancelOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/batch-place-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresBatchSubmitOrders(params)
|
client.futuresBatchSubmitOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/cancel-all-orders
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresCancelAllOrders(params)
|
client.futuresCancelAllOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/cancel-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresCancelOrder(params)
|
client.futuresCancelOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/cancel-plan-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresCancelPlanOrder(params)
|
client.futuresCancelPlanOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/close-positions
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresFlashClosePositions(params)
|
client.futuresFlashClosePositions(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/modify-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresModifyOrder(params)
|
client.futuresModifyOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/modify-plan-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresModifyPlanOrder(params)
|
client.futuresModifyPlanOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/modify-tpsl-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresModifyTPSLPOrder(params)
|
client.futuresModifyTPSLPOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/place-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresSubmitOrder(params)
|
client.futuresSubmitOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/place-plan-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresSubmitPlanOrder(params)
|
client.futuresSubmitPlanOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/plan-sub-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresSubmitPlanSubOrder(params)
|
client.futuresSubmitPlanSubOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/click-backhand
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresSubmitReversal(params)
|
client.futuresSubmitReversal(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/place-tpsl-order
|
||||||
// METHOD: POST
|
// METHOD: POST
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.futuresSubmitTPSLOrder(params)
|
client.futuresSubmitTPSLOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/public/annoucements
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getAnnouncements(params)
|
client.getAnnouncements(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/account/all-account-balance
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBalances(params)
|
client.getBalances(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/account/bot-assets
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBotAccount(params)
|
client.getBotAccount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/broker/account/info
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBrokerInfo(params)
|
client.getBrokerInfo(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-broker/query-traders
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBrokerTraders(params)
|
client.getBrokerTraders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-broker/query-history-traces
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBrokerTradersHistoricalOrders(params)
|
client.getBrokerTradersHistoricalOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-broker/query-current-traces
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getBrokerTradersPendingOrders(params)
|
client.getBrokerTradersPendingOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/bgb-convert-coin-list
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getConvertBGBCoins(params)
|
client.getConvertBGBCoins(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/bgb-convert-records
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getConvertBGBHistory(params)
|
client.getConvertBGBHistory(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/currencies
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getConvertCoins(params)
|
client.getConvertCoins(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/convert-record
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getConvertHistory(params)
|
client.getConvertHistory(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/convert/quoted-price
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getConvertQuotedPrice(params)
|
client.getConvertQuotedPrice(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/account/assets
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnAccount(params)
|
client.getEarnAccount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/account
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsAccount(params)
|
client.getEarnSavingsAccount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/assets
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsAssets(params)
|
client.getEarnSavingsAssets(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/product
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsProducts(params)
|
client.getEarnSavingsProducts(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/records
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsRecords(params)
|
client.getEarnSavingsRecords(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/redeem-result
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsRedemptionResult(params)
|
client.getEarnSavingsRedemptionResult(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/subscribe-info
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsSubscription(params)
|
client.getEarnSavingsSubscription(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/earn/savings/subscribe-result
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getEarnSavingsSubscriptionResult(params)
|
client.getEarnSavingsSubscriptionResult(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/account/funding-assets
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFundingAssets(params)
|
client.getFundingAssets(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/account/account
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesAccountAsset(params)
|
client.getFuturesAccountAsset(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/account/accounts
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesAccountAssets(params)
|
client.getFuturesAccountAssets(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/account/bill
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesAccountBills(params)
|
client.getFuturesAccountBills(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/long-short
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesActiveBuySellVolumeData(params)
|
client.getFuturesActiveBuySellVolumeData(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/account-long-short
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesActiveLongShortAccountData(params)
|
client.getFuturesActiveLongShortAccountData(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/position-long-short
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesActiveLongShortPositionData(params)
|
client.getFuturesActiveLongShortPositionData(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/taker-buy-sell
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesActiveTakerBuySellVolumeData(params)
|
client.getFuturesActiveTakerBuySellVolumeData(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/tickers
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesAllTickers(params)
|
client.getFuturesAllTickers(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/candles
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesCandles(params)
|
client.getFuturesCandles(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/contracts
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesContractConfig(params)
|
client.getFuturesContractConfig(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/current-fund-rate
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesCurrentFundingRate(params)
|
client.getFuturesCurrentFundingRate(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/fills
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFills(params)
|
client.getFuturesFills(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/query-current-orders
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFollowerCurrentOrders(params)
|
client.getFuturesFollowerCurrentOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/query-quantity-limit
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFollowerFollowLimit(params)
|
client.getFuturesFollowerFollowLimit(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/query-history-orders
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFollowerHistoryOrders(params)
|
client.getFuturesFollowerHistoryOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/query-settings
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFollowerSettings(params)
|
client.getFuturesFollowerSettings(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-follower/query-traders
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesFollowerTraders(params)
|
client.getFuturesFollowerTraders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/history-candles
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricCandles(params)
|
client.getFuturesHistoricCandles(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/history-fund-rate
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricFundingRates(params)
|
client.getFuturesHistoricFundingRates(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/history-index-candles
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricIndexPriceCandles(params)
|
client.getFuturesHistoricIndexPriceCandles(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/history-mark-candles
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricMarkPriceCandles(params)
|
client.getFuturesHistoricMarkPriceCandles(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/fill-history
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricOrderFills(params)
|
client.getFuturesHistoricOrderFills(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/orders-history
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricOrders(params)
|
client.getFuturesHistoricOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/orders-plan-history
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricPlanOrders(params)
|
client.getFuturesHistoricPlanOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/position/history-position
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricPositions(params)
|
client.getFuturesHistoricPositions(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/fills-history
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesHistoricTrades(params)
|
client.getFuturesHistoricTrades(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/long-short-ratio
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesLongShortRatio(params)
|
client.getFuturesLongShortRatio(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/merge-depth
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesMergeDepth(params)
|
client.getFuturesMergeDepth(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/funding-time
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesNextFundingTime(params)
|
client.getFuturesNextFundingTime(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/account/open-count
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesOpenCount(params)
|
client.getFuturesOpenCount(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/open-interest
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesOpenInterest(params)
|
client.getFuturesOpenInterest(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/orders-pending
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesOpenOrders(params)
|
client.getFuturesOpenOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/detail
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesOrder(params)
|
client.getFuturesOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/order/orders-plan-pending
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesPlanOrders(params)
|
client.getFuturesPlanOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/position/single-position
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesPosition(params)
|
client.getFuturesPosition(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/query-position-lever
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesPositionTier(params)
|
client.getFuturesPositionTier(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/position/all-position
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesPositions(params)
|
client.getFuturesPositions(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/fills
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesRecentTrades(params)
|
client.getFuturesRecentTrades(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/account/sub-account-assets
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesSubAccountAssets(params)
|
client.getFuturesSubAccountAssets(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/symbol-price
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesSymbolPrice(params)
|
client.getFuturesSymbolPrice(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/mix/market/ticker
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: YES
|
// PUBLIC: YES
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTicker(params)
|
client.getFuturesTicker(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/order-current-track
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderCurrentOrder(params)
|
client.getFuturesTraderCurrentOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/config-query-followers
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderFollowers(params)
|
client.getFuturesTraderFollowers(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/order-history-track
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderHistoryOrders(params)
|
client.getFuturesTraderHistoryOrders(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/order-total-detail
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderOrder(params)
|
client.getFuturesTraderOrder(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/profit-history-summarys
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderProfitHistory(params)
|
client.getFuturesTraderProfitHistory(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/profit-details
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderProfitShare(params)
|
client.getFuturesTraderProfitShare(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/profits-group-coin-date
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderProfitShareGroup(params)
|
client.getFuturesTraderProfitShareGroup(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/profit-history-details
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderProfitShareHistory(params)
|
client.getFuturesTraderProfitShareHistory(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/copy/mix-trader/config-query-symbols
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTraderSymbolSettings(params)
|
client.getFuturesTraderSymbolSettings(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
const { RestClientV2 } = require('bitget-api');
|
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
|
// ENDPOINT: /api/v2/tax/future-record
|
||||||
// METHOD: GET
|
// METHOD: GET
|
||||||
// PUBLIC: NO
|
// PUBLIC: NO
|
||||||
@@ -11,9 +14,9 @@ const client = new RestClientV2({
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.getFuturesTransactionRecords(params)
|
client.getFuturesTransactionRecords(params)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch((error) => {
|
||||||
console.error(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