Currently, an ApiClient is designed to be used with only one symbol. It should be changed to be symbol agnostic instead. The REST queries would then take arguments of the form e.g. WithSymbol<Order>, while the ApiClient::stream method would then have the following signature:
fn stream(&self, symbol: Symbol) -> Self::Stream;
This would be an ergonomic improvement (currently one needs to create multiple API clients in order to handle multiple symbols), and would be more consistent with the fact that ApiClient::balances returns a list of balances for all symbols.
Currently, an
ApiClient
is designed to be used with only one symbol. It should be changed to be symbol agnostic instead. The REST queries would then take arguments of the form e.g.WithSymbol<Order>
, while theApiClient::stream
method would then have the following signature:This would be an ergonomic improvement (currently one needs to create multiple API clients in order to handle multiple symbols), and would be more consistent with the fact that
ApiClient::balances
returns a list of balances for all symbols.