feat(): updated examples

This commit is contained in:
Jerko J
2024-10-15 18:17:21 +02:00
parent 7f869a61cb
commit 47177fefc5
252 changed files with 5001 additions and 251 deletions

View File

@@ -0,0 +1,19 @@
const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/spot/trade/place-plan-order
// METHOD: POST
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L365
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.spotSubmitPlanOrder(params)
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});