v3.10.28 feat(): added new endpoints, updated examples

This commit is contained in:
JJ-Cro
2025-01-06 11:17:18 +01:00
parent a88c5003b0
commit 6ae65220f9
7 changed files with 1734 additions and 7522 deletions

View File

@@ -0,0 +1,18 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getTransferableAmount({
coinName: 'USDT',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});

View File

@@ -0,0 +1,18 @@
// https://api.bybit.com/v5/broker/account-info
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getAffiliateUserInfo({ uid: '1234567890' })
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});

View File

@@ -1,3 +1,5 @@
// https://api.bybit.com/v5/broker/account-info
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
@@ -7,7 +9,7 @@ const client = new RestClientV5({
});
client
.getAffiliateUserInfo({ uid: '1513500' })
.getAffiliateUserList()
.then((response) => {
console.log(response);
})