Server.IsConnected value and it was set to true and not false
Created at 22 Jan 2022, 21:12
Server.IsConnected value and it was set to true and not false
22 Jan 2022, 21:12
While calling the ModifyStopLossPrice method I recived an error:
Request to amend position PID66035739 (SL: 4.6188) is REJECTED with error "DISCONNECTED" (with a timeout on the tradeResult.Error property).
It seems that the server was disconnected however I checked for the Server.IsConnected value and it was set to true and not false
Thanks
amusleh
24 Jan 2022, 09:25
Hi,
The Server may got disconnected after your check, it can happen and it's normal.
You should not check Server.IsConnected, just execute your trading action and check it's TradeResult, if something went wrong take appropriate action.
@amusleh