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