This means OMS hasn't responded to the request sent . Are you fetching margins multiple times ??
If yes,then you can add some delay and then retry or as an alternative, fetch funds value at the start of the trading day and keep reducing the required order placed amount, which you can fetch from the order margin API.
I am fetching few times a day once in the morning and once after every order update i place close to 8 orders a day ,I am not polling margins multiple times a second
If yes,then you can add some delay and then retry or as an alternative, fetch funds value at the start of the trading day and keep reducing the required order placed amount, which you can fetch from the order margin API.