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 @@
- [Market Status And Currency Status](./examples/js/)
```javascript
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))
}) ()
```