feat(): add new v5 user endpoints. add user examples.
This commit is contained in:
29
examples/apidoc/V5/User/modify-master-api-key.js
Normal file
29
examples/apidoc/V5/User/modify-master-api-key.js
Normal file
@@ -0,0 +1,29 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.updateMasterApiKey({
|
||||
ips: ['*'],
|
||||
permissions: {
|
||||
ContractTrade: ['Order', 'Position'],
|
||||
Spot: ['SpotTrade'],
|
||||
Wallet: ['AccountTransfer', 'SubMemberTransfer'],
|
||||
Options: ['OptionsTrade'],
|
||||
Derivatives: ['DerivativesTrade'],
|
||||
CopyTrading: ['CopyTrading'],
|
||||
BlockTrade: [],
|
||||
Exchange: ['ExchangeHistory'],
|
||||
NFT: ['NFTQueryProductList'],
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user