<commit_before>let ccxt = require ('ccxt')

let exchange = new ccxt.bitfinex ({
    apiKey: '<KEY>', 
    secret: '<KEY>',
})

await exchange.loadProducts ()
console.log (exchange.symbols)

let symbol = exchange.symbols[0]

let ticker = await exchange.fetchTicker (symbol)
console.log (symbol, ticker)

let orderbook = await exchange.fetchTicker (symbol)
console.log (symbol, orderbook)

let balance = await exchange.fetchBalance ()
console.log (symbol, balance)<commit_msg>edited example.js for runkit 3<commit_after>let ccxt = require ('ccxt')

let exchange = new ccxt.bitfinex ({
    apiKey: '<KEY>', 
    secret: '<KEY>',
})

await exchange.loadProducts ()
console.log (exchange.symbols)

let symbol = exchange.symbols[0]

console.log (ticker)
let ticker = await exchange.fetchTicker (symbol)
console.log (ticker)

let orderbook = await exchange.fetchTicker (symbol)
console.log (orderbook)

let balance = await exchange.fetchBalance ()
console.log (balance)
{'fraction_non_alphanumeric': 0.12785862785862787, 'fraction_numerical': 0.0031185031185031187, 'mean_word_length': 5.01875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6733879', 'n_tokens_mistral': 314, 'n_tokens_neox': 310, 'n_words': 86}