pipsocketDOCS
Guides / Reference

Rate limits

The limits Pipsocket enforces, and the broker's own.

Pipsocket doesn't limit how many requests a key makes. What it does limit is how much can wait at once, so one slow call can't hold up the rest:

LimitWhereWhen it's reached
5 seconds for the trade server's answerEach trade call202 with "state": "pending": the request goes on without you.
30 seconds for the host's answerEach REST call504 engine_timeout.
16 calls waiting for their answerEach stream{ "type": "error", "error": "too_many_calls" }; send more as answers arrive.
100 symbols with ticksEach account, all its streams together422 too_many_symbols on PUT /ticks.
256 calls at onceEach host, all its accounts together503 engine_busy: try again.
1,000 trades waiting for the trade serverEach account's terminalThe request is refused with busy.

Your broker has limits of its own. MT5 answers them as retcodes, such as 10024 (TRADE_RETCODE_TOO_MANY_REQUESTS), 10033 (pending orders) and 10040 (open positions): see retcodes.