feat(): add new v5 user endpoints. add user examples.
This commit is contained in:
21
examples/apidoc/V5/User/create-sub-uid.js
Normal file
21
examples/apidoc/V5/User/create-sub-uid.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.createSubMember({
|
||||
username: 'xxxxx',
|
||||
memberType: 1,
|
||||
switch: 1,
|
||||
note: 'test',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user