mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 01:08:07 +00:00
commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
- [Binance Universal Transfer](./examples/js/)
|
||||
|
||||
|
||||
```javascript
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
|
||||
(async () => {
|
||||
|
||||
// apiKey must have universal transfer permissions
|
||||
const binance = new ccxt.binance ({
|
||||
"apiKey": "",
|
||||
"secret": "",
|
||||
})
|
||||
|
||||
console.log (await binance.transfer ('USDT', 1, 'spot', 'future'))
|
||||
const transfers = await binance.fetchTransfers ();
|
||||
console.log ('got ', transfers.length, ' transfers')
|
||||
console.log (await binance.transfer ('USDT', 1, 'spot', 'cross')) // For transfer to cross margin wallet
|
||||
console.log (await binance.transfer ('USDT', 1, 'spot', 'ADA/USDT')) // For transfer to an isolated margin wallet
|
||||
}) ()
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user