Files
bitget-api/examples/apidoc/RestClientV2/getSpotAccountAssets.js
2024-10-16 18:13:45 +02:00

20 lines
488 B
JavaScript

const { RestClientV2 } = require('bitget-api');
// ENDPOINT: /api/v2/spot/account/assets
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L406
const client = new RestClientV2({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});
client.getSpotAccountAssets(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});