alanwhite / thierrybot

Automates management of orders and positions on IG Index as directed by SMS messages
1 stars 0 forks source link

Move stop loss error #2

Open alanwhite opened 7 years ago

alanwhite commented 7 years ago

Tue, 13 Jun 2017 11:40:30 GMT, move stop loss on open position results in error executing instruction at IG, and an error saying to position found to amend

alanwhite commented 7 years ago

Identified as a race condition fetching confirm following successful instruction. IG may not have the confirm ready immediately after execution. Recommendation is to use lightstreamer to listen for all order and position state change confirms. This is not possible in a serverless environment. Considering a backoff algorithm.