feat(): add asset samples
This commit is contained in:
22
examples/apidoc/V5/Asset/create-internal-transfer.js
Normal file
22
examples/apidoc/V5/Asset/create-internal-transfer.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user