-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
107 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
examples/apidoc/FuturesClientV2/cancelFuturesTrailOrder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { FuturesClientV2 } = require('bitmart-api'); | ||
|
||
// This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange | ||
// This bitmart API SDK is available on npm via "npm install bitmart-api" | ||
// ENDPOINT: contract/private/cancel-plan-order | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new FuturesClientV2({ | ||
apiKey: 'yourAPIKeyHere', | ||
apiSecret: 'yourAPISecretHere', | ||
apiMemo: 'yourAPIMemoHere', | ||
}); | ||
|
||
client.cancelFuturesTrailOrder(params) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
21 changes: 21 additions & 0 deletions
21
examples/apidoc/FuturesClientV2/submitFuturesTrailOrder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { FuturesClientV2 } = require('bitmart-api'); | ||
|
||
// This example shows how to call this bitmart API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "bitmart-api" for bitmart exchange | ||
// This bitmart API SDK is available on npm via "npm install bitmart-api" | ||
// ENDPOINT: contract/private/modify-tp-sl-order | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new FuturesClientV2({ | ||
apiKey: 'yourAPIKeyHere', | ||
apiSecret: 'yourAPISecretHere', | ||
apiMemo: 'yourAPIMemoHere', | ||
}); | ||
|
||
client.submitFuturesTrailOrder(params) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters