mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -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.')
|
||||
}
|
||||
|
||||
}) ()
|
||||
Reference in New Issue
Block a user