feat(): add asset samples

This commit is contained in:
tiagosiebler
2023-06-09 12:07:10 +01:00
parent 6e3fe4c4ad
commit f739ec8550
26 changed files with 451 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.createInternalTransfer(
'42c0cfb0-6bca-c242-bc76-4e6df6cbcb16',
'BTC',
'0.05',
'UNIFIED',
'CONTRACT',
)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});