Files
bybit-api/examples/apidoc/V5/User/create-sub-uid.js
2023-06-09 14:21:36 +01:00

22 lines
362 B
JavaScript

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);
});