angelocarbone / pyiqoapi

pyiqoapi is a python wrapper for IQOption's API.
6 stars 9 forks source link

Trade pending eternally #4

Open lindauer1980 opened 6 years ago

lindauer1980 commented 6 years ago

Hi. I'm having the issue that when opening a position as shown in the example: api.open_position(price, active, option, direction, expiry) sometimes, well, quite frequently, the trade is not executed and the message: "Position with ticket_num 1 in pending" stays eternally. Two questions: 1) Why are trades sometimes (often) not executed ? A problem with the api or with IQoptions? 2) When this happens is there a possibility to cancel the pending trade after some seconds and open a new position?

Thanks for your help.

angelocarbone commented 6 years ago

@lindauer1980, first of all consider pyiqoapi like a bridge over IQOption API and not purely an API. This means that more problems can occurs. The challenge consist to reduce these problems.

  1. This issue happens sometimes. I think is a problem related to communication between device and IQOption through api.
  2. Please, consider to fork the project and add all features that you prefer.

I hope this help you.

If you have other questions or are not satisfied to response, please don't hesitate to contact me.