Expand description
One typed method per REST endpoint of the ALOR OpenAPI, as impl blocks of AlorHttpClient.
All of the 58 operations of the broker’s OpenAPI file are here: the reference data and market data, the
reads of the portfolio (orders, trades, positions, summary, risks), the order commands (limit, market, stop
and stop-limit orders, cancel, the legacy stop-loss and take-profit family), the order groups and the
estimates. The methods are thin: they build the URL, call AlorHttpClient::read or
AlorHttpClient::command and return the broker’s model. They do not retry (apart from the one repeat of
a read after a 401), do not throttle and do not interpret the reply.
The replies that the connector does not use are returned as serde_json::Value (numbers keep their
digits). The query parameters that a method does not name are given in its query argument as pairs of
the broker’s names, for example [("limit", "10".to_string())].
Every read asks for the Simple format of the broker (the original field names).