n1nj4z33 / iqoptionapi

IQ Option API 4.x (Python 2.7) The project is obsolete and is not supported because of problems with access to IQ Options in Russia
119 stars 542 forks source link

Multiple ACTIVES candle at same instance #39

Closed vinydl closed 6 years ago

vinydl commented 6 years ago

Hi,

Below code snippet gets candles for first active.

api.getcandles(1, 1) time.sleep(1) data = api.candles.candles_data

Please suggest.

vinydl commented 6 years ago

I got solution.

We can use below snippet

data = {"active_id": 1, "duration": 1, "chunk_size": 25, "from": 1502279044 - (1 * 2), "till": 1502279044}

api.send_websocket_request("candles", data)

Vinayaka Doggalu