pub async fn stop_orders_unsupported<U: StopOrderExecutor + ?Sized>(
ud: &U,
id: &InstrumentId,
)Expand description
A connector without stop orders says so: every stop method answers [brokapi_core::Error::Unsupported].
Checks that place_stop, cancel_stop, active_stop_orders and subscribe_stop_orders each
return Unsupported (any other result, success or another error, fails). No adapter uses this
today, because all three map stop orders. It stays for a future adapter whose broker has none. Do
not run it for an adapter that supports stop orders.
§Panics
With [conformance:stop_orders_unsupported] <method> must answer Unsupported, got ... for the first
method that answers anything else.
§Examples
The BCS connector supports stop orders, so this scenario fails against it. That is the failure the scenario exists to catch:
ⓘ
// panics: [conformance:stop_orders_unsupported] ... must answer Unsupported, got ...
brokapi_conformance::stop_orders_unsupported(&ud, &sber).await;