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,29 @@
|
||||
|
||||
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
import log from 'ololog';
|
||||
import asTable from 'as-table';
|
||||
|
||||
(async function main () {
|
||||
|
||||
let kraken = new ccxt.kraken ()
|
||||
await kraken.loadMarkets ()
|
||||
|
||||
const markets = Object.values (kraken.markets).map (market => ({
|
||||
symbol: market.symbol,
|
||||
active: market.active,
|
||||
}))
|
||||
|
||||
log.bright.green.noLocate ('Markets:')
|
||||
log.green.noLocate (asTable (markets), '\n')
|
||||
|
||||
const currencies = Object.values (kraken.currencies).map (currency => ({
|
||||
code: currency.code,
|
||||
active: currency.active,
|
||||
status: currency.status,
|
||||
}))
|
||||
|
||||
log.bright.yellow.noLocate ('Currencies:')
|
||||
log.yellow.noLocate (asTable (currencies))
|
||||
|
||||
}) ()
|
||||
Reference in New Issue
Block a user