harwee / IQOption-Api

** Unmaintained ** I have rewritten some of the functionality using async if you are want to use the updated code you can use the code from `async` branch
Apache License 2.0
53 stars 54 forks source link

market_data #24

Closed cobolainen closed 5 years ago

cobolainen commented 5 years ago

how can i get market real time data? I've subscribed to EURUSD and i get KeyError 'EURUSD';

tayyabghumman commented 5 years ago

hello,

same issue here when i tried subscribe

api.open_position(direction="put", expiration_time=api.binary_expiration_list["AUDCAD-OTC"][-1]["time"], market_name="AUDCAD-OTC", price=5, type="turbo" ) KeyError: 'AUDCAD-OTC' and

api.open_position(direction="put", expiration_time=api.binary_expiration_list["AUDCAD"][-1]["time"], market_name="AUDCAD", price=5, type="turbo" ) KeyError: 'AUDCAD'

hope to hear from you soon.

thanks

harwee commented 5 years ago

You can try the code written here https://github.com/harwee/IQOption-Api/tree/async If you face any difficulty please reopen the issue