Category "ccxt"

ccxt FTX long/short position

i am trying to open and close short positions on FTX using ccxt with python. I do not find any kind of information or examples about how to do this. Does anyone

Getting multiple cryptos' ohlc values in ccxt or binance python api?

I'm trying to create an automated bot according to my strategy but I'm struggling with a few things: 1- In ccxt, I can get OHLC data of a specified symbol. But

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