Expand description
The subscription records a connector keeps, and the generators of subscription ids and request ids.
These types are the bookkeeping of the connectors. A bot does not build them: it gets a
[SubscriptionId] from a subscribe_* call and passes it back to unsubscribe.
Structs§
- MdSubscription
- A market data subscription as the connector keeps it.
- ReqId
Gen - Hands out the
req_idthat ties an answer of the exchange to its request. - SubId
Gen - Hands out subscription ids, counting up from
start + 1. - UdSubscription
- A user data subscription as the connector keeps it.
Enums§
Functions§
- wait_
ack - Waits until the exchange has answered a subscription:
Okwhen it is open, [brokapi_core::Error::Rejected] (subscription_refused) when the exchange refused it, [brokapi_core::Error::Transport] when nothing came inlimit.