Code Monkey home page Code Monkey logo

Comments (21)

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024 1

Hi,

i cant say exactly how to update this API as i am not so python experienced to update module (dont know exactly how to update source code and debug them from some test script yet).

Anyway, i have reworked basic parts to .NET and found message to send to receive new chart data:

{ name: "subscribeMessage", msg: { name: "quote-generated", version: "1.0", params: { routingFilters: { active_id: 73 } } } }

Id 73 is now for BTCX (Bitcoin). After this message i am receiving updated quotes data from websocket.

Hope this help,
Cheers :)

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024 1

Hi SonyPony,

no, this is about how to get realtime data feed from IQ. Regarding custom indicators. I dont believe server is sending any indicator data. I am quite sure indicators are calculated from predownloaded OHLC data directly in IQ plaftorm.

Cheers

from iqoptionapi.

l9sheen avatar l9sheen commented on July 25, 2024

I am new to this library and am unaware of how it works, not even sure how to buy yet. If you manage to get stock data from this API please let us know how it could be done.

Thanks

from iqoptionapi.

l9sheen avatar l9sheen commented on July 25, 2024

Cheers,

I am intrigued by this API but it's a shame it's not well documented or updated. Is there anyway you could send me some code so I can implement it myself. Having real-time data will be very beneficial? I imagine getting it to work might take some effort but will be great to get it done.

Thanks

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

Hi,

@l9sheen I gave you access to my private dummy repo. I left for you in readme way to contact me. So take a look.

Cheers

from iqoptionapi.

SonyPony avatar SonyPony commented on July 25, 2024

Hi,

is this issue related to how to get data from custom indicator?

Thanks in advance

from iqoptionapi.

kanXuT avatar kanXuT commented on July 25, 2024

CZ-DannyK, but this is for ticks data (also you can use { "name" : "setActives", "msg" : { "actives" : [1,2,3] } } ), what about candles?

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@kanXuT You can read getting of candles already from this api, but here is message: { name = "candles", msg = new { active_id = 1, duration = 60, chunk_size = 6, from = XXXXXXXXXX, till = XXXXXXXXXX } }

duration: candle timeframe in seconds (1 min in my example)
chunk_size: number of candles send in one batch
from: from timestamp
to: to timestamp

Cheers

from iqoptionapi.

kanXuT avatar kanXuT commented on July 25, 2024

Thx @CZ-DannyK you are right, but this is on demand, not subscription like ticks. I'm just wondered if I miss something :).

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@kanXuT I dont think they have something like this :) They just download inital candles and then form new candles from incoming ticks. If you want new candle every minute for example, you could just do async request every minute with from and to parametrs for last minute candle.

from iqoptionapi.

vinydl avatar vinydl commented on July 25, 2024

Below code get details of only one active.

    data = {"active_id": 95,
                "duration": 1,
                "chunk_size": 25,
                "from": timestamp,
                "till": xxxxxx}

if i want details of multiple actives at same instance, what would be the solution?

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@vinydl Not sure, if candles message support array of active_ids ("active_id": [1, 2, 3]) so you can try, if IQ can handle something like this. Otherwise send multiple requests, each one for single active_id.

from iqoptionapi.

vinydl avatar vinydl commented on July 25, 2024

@CZ-DannyK : As of now i am using multiple requests for each id's. I am not sure about array of ids

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@vinydl You can try and see, and you could let us know results of this experiment :)

from iqoptionapi.

vinydl avatar vinydl commented on July 25, 2024

list is not working.. i tried now.

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@vinydl Ahh, ok, shame. Thank for this! :)

from iqoptionapi.

kanXuT avatar kanXuT commented on July 25, 2024

@CZ-DannyK, yeah, i do it that way, but it's painful :) - but better that forming own from ticks .. the ticks seems little bit unstable for me

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@kanXuT Who knows why it is messy on your environment. I dont have any problem with getting new ticks.

from iqoptionapi.

Niks005 avatar Niks005 commented on July 25, 2024

Its possible. You will have write new websocket object for newChartData.

First you have subscribe the active then iqoption will start sending live data with websocket message name "newChartData".

You will get it in client.py file in method on_message. just check name=="newChartData"

from iqoptionapi.

CZ-DannyK avatar CZ-DannyK commented on July 25, 2024

@Niks005 Thanks for answer, i have already figured it out, but it might help someone else :)

from iqoptionapi.

trashvin avatar trashvin commented on July 25, 2024

How to unsubscribe from the newChartData? After using setActives and used the data, I need to unsubscribe .

from iqoptionapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.