Files
bybit-api/examples/apidoc/V5/Asset/create-universal-transfer.js
2023-06-09 12:07:10 +01:00

25 lines
500 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.createUniversalTransfer({
transferId: 'be7a2462-1138-4e27-80b1-62653f24925e',
coin: 'ETH',
amount: '0.5',
fromMemberId: 592334,
toMemberId: 691355,
fromAccountType: 'CONTRACT',
toAccountType: 'UNIFIED',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});