UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

27 lines (19 loc) 455 B
'use strict' require('dotenv').config() const BFX = require('../') const SocksProxyAgent = require('socks-proxy-agent') const { API_KEY, API_SECRET, REST_URL, WS_URL, SOCKS_PROXY_URL } = process.env const agent = SOCKS_PROXY_URL ? new SocksProxyAgent(SOCKS_PROXY_URL) : null const bfx = new BFX({ apiKey: API_KEY, apiSecret: API_SECRET, ws: { url: WS_URL, agent }, rest: { url: REST_URL, agent } }) module.exports = bfx