Lu-Yi-Hsun / iqoptionapi

IQ Option API
377 stars 290 forks source link

get_positions() not working #132

Open rajeshdua123 opened 5 years ago

rajeshdua123 commented 5 years ago

Hi Lu,

Thank you for a wonderful api.

get_positions() is returning blank data, even if I have a position opened in digital-option.

I opened up a position with EURUSD in digital options.

Here is the command I am using - print(I_want_money.get_positions("digital-option"))

Here is the response I am getting - (True, {'total': 0, 'positions': []})

Please help if I am using it wrongly.

Thanks and regards, Rajesh

Lu-Yi-Hsun commented 5 years ago

@rajeshdua123 thank report this bug , i am fixing now

Lu-Yi-Hsun commented 5 years ago

fix

rajeshdua123 commented 5 years ago

Thank you Lu.

I am working on something amazing. I have already considered you as a shareholder in my project. :)

I will be releasing your share once in a week.

I request for one more feature/fix -

This would be a great help partner!

Thanks and regards, Rajesh

Lu-Yi-Hsun commented 5 years ago

@rajeshdua123

update to the last version and try this sample

https://github.com/Lu-Yi-Hsun/iqoptionapi#get_async_order

rajeshdua123 commented 5 years ago

Thank you Lu.

Everything looks good now.

Thanks and regards, Rajesh

wtaywin commented 5 years ago

I test any instrument is OK , Only "fx-option" it's mistake

instrument_type="crypto","forex","fx-option","turbo-option","multi-option","cfd","digital-option"

wtaywin commented 5 years ago

I_want_money.get_position_history_v2 I_want_money.get_positions("fx-option")

same problem!!!

Lu-Yi-Hsun commented 5 years ago

@wtaywin i have been test I_want_money.get_positions("fx-option")

that is IQOPTION problem because of IQOPTION engineer not implement return value yet

so you alway get (True, {'total': 0, 'positions': []})

{"request_id":"37","name":"positions","msg":{"total":0,"positions":[]},"status":2000}
wtaywin commented 5 years ago

thank you but can i check any way !!!