I'm considering various grid trading strategies and I'm wondering what's the optimal action (if any) to take when the price goes out of grid bounds. In the imag
exchange = ccxt.binance({ -- "apiKey": 'xxx', "secret": 'xxx', 'options': { 'adjustForTimeDifference': True }, 'enableRateLimit': True }) exchange_f = ccxt.
exchange.load_markets() while 1: try: bars = exchange.fetch_ohlcv(ETH/USDT, timeframe='5m', limit=5)
Can anyone help me with Rest API asynchronous? I used Asyncio for 4 requests to FTX server. If I run the code, it prints 'balance','position','chart1','chart2'
when querying exchange APIs, to get the latest price do I simply keep calling my fetchPrice() method every minute or so? I can get the price once, but is the pr