feat(): add new v5 user endpoints. add user examples.

This commit is contained in:
tiagosiebler
2023-06-09 14:21:36 +01:00
parent f739ec8550
commit 987b3f81d0
13 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.updateSubApiKey({
readOnly: 0,
ips: ['*'],
permissions: {
ContractTrade: [],
Spot: ['SpotTrade'],
Wallet: ['AccountTransfer'],
Options: [],
Derivatives: [],
CopyTrading: [],
BlockTrade: [],
Exchange: [],
NFT: [],
},
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});