feat(): add new v5 user endpoints. add user examples.
This commit is contained in:
23
examples/apidoc/V5/User/create-sub-uid-api-key.js
Normal file
23
examples/apidoc/V5/User/create-sub-uid-api-key.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.createSubUIDAPIKey({
|
||||
subuid: 53888000,
|
||||
note: 'testxxx',
|
||||
readOnly: 0,
|
||||
permissions: {
|
||||
Wallet: ['AccountTransfer'],
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user