Category "ccxt"

Optimal grid trading strategy when price out of grid bounds

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

Transfer USDT between spot and futures in Binance using ccxt python

exchange = ccxt.binance({ -- "apiKey": 'xxx', "secret": 'xxx', 'options': { 'adjustForTimeDifference': True }, 'enableRateLimit': True }) exchange_f = ccxt.

Binance error - Too much request weight used; current limit is 1200 request weight per 1 MINUTE

exchange.load_markets() while 1: try: bars = exchange.fetch_ohlcv(ETH/USDT, timeframe='5m', limit=5)

Rest API asyncio gets stuck while running

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'

CCXT how to refresh prices automatically?

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