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,35 @@
// ----------------------------------------------------------------------------
import ccxt from '../../js/ccxt.js';
// ----------------------------------------------------------------------------
(async () => {
const exchange = new ccxt.poloniex ({
'verbose': process.argv.includes ('--verbose'),
'timeout': 60000,
})
try {
const response = await exchange.fetchOrderBooks ([
'ETH/BTC',
'LTC/BTC',
'OMG/BTC',
])
console.log (response);
console.log ('Succeeded.')
} catch (e) {
console.log ('--------------------------------------------------------')
console.log (e.constructor.name, e.message)
console.log ('--------------------------------------------------------')
console.log (exchange.last_http_response)
console.log ('Failed.')
}
}) ()