Comments (21)
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.
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.
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.
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.
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.
Hi,
is this issue related to how to get data from custom indicator?
Thanks in advance
from iqoptionapi.
CZ-DannyK, but this is for ticks data (also you can use { "name" : "setActives", "msg" : { "actives" : [1,2,3] } }
), what about candles?
from iqoptionapi.
@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.
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.
@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.
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.
@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.
@CZ-DannyK : As of now i am using multiple requests for each id's. I am not sure about array of ids
from iqoptionapi.
@vinydl You can try and see, and you could let us know results of this experiment :)
from iqoptionapi.
list is not working.. i tried now.
from iqoptionapi.
@vinydl Ahh, ok, shame. Thank for this! :)
from iqoptionapi.
@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.
@kanXuT Who knows why it is messy on your environment. I dont have any problem with getting new ticks.
from iqoptionapi.
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.
@Niks005 Thanks for answer, i have already figured it out, but it might help someone else :)
from iqoptionapi.
How to unsubscribe from the newChartData? After using setActives and used the data, I need to unsubscribe .
from iqoptionapi.
Related Issues (20)
- Delayed iqoption data (Not realtime?) HOT 1
- Get pair list of active assets HOT 2
- API is not placing trades
- metatrader and IQ Option API
- Where did you get the IQOption endpoints ?
- Response <404> error with iqoption.com HOT 4
- how to place the commands on binary options in specifaint the times of expirations
- Asking mail address
- A winning Strategy
- URL iqoption.com/api/login not found HOT 1
- Can't open an option
- Could you attribute a license open source?
- where can i find the api.sell() example?
- amount left in tournamount
- Lower and Higher value of the candle
- How to get order result?
- How can I make the get real-time candles run async
- IQ Option Parameters
- 404 Client Error: Not Found for url: https://iqoption.com/api/login
- https://iqoption.com/api/profile/changebalance Can't change balance?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iqoptionapi.