Skip to main content

foreign_instrument_id

Function foreign_instrument_id 

Source
pub async fn foreign_instrument_id<U: OrderExecutor + ?Sized>(
    ud: &U,
    foreign: &InstrumentId,
    price: Price,
)
Expand description

An instrument id of another broker’s kind is a configuration error, and nothing is sent.

foreign is an [InstrumentId] whose NativeId is of a kind this broker does not use. A place with it must be [Error::Config]: not Rejected (that would say the broker was asked), not Unknown.

§Panics

With [conformance:foreign_instrument_id] <reason>.