feat(): updated examples
This commit is contained in:
19
examples/apidoc/RestClientV2/getConvertCoins.js
Normal file
19
examples/apidoc/RestClientV2/getConvertCoins.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const { RestClientV2 } = require('bitget-api');
|
||||
|
||||
// ENDPOINT: /api/v2/convert/currencies
|
||||
// METHOD: GET
|
||||
// PUBLIC: NO
|
||||
// Link to function: https://github.com/tiagosiebler/bitget-api/blob/master/src/rest-client-v2.ts#L229
|
||||
|
||||
const client = new RestClientV2({
|
||||
apiKey: 'insert_api_key_here',
|
||||
apiSecret: 'insert_api_secret_here',
|
||||
});
|
||||
|
||||
client.getConvertCoins(params)
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user