feat(): added Missing endpoints, added missing examples

This commit is contained in:
Jerko J
2024-08-28 11:58:54 +02:00
parent d02a81d0e5
commit 0ea5a797e2
19 changed files with 384 additions and 35 deletions

View File

@@ -0,0 +1,28 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.movePosition({
fromUid: '100307601',
toUid: '592324',
list: [
{
category: 'spot',
symbol: 'BTCUSDT',
price: '100',
side: 'Sell',
qty: '0.01',
},
],
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});