This commit is contained in:
discountry
2025-10-03 15:28:16 +08:00
parent d5c4b04746
commit fcb83bd16b
925 changed files with 165721 additions and 4 deletions
@@ -0,0 +1,16 @@
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
}) ()