Skip to main content

execute_bar_subscriptions

Function execute_bar_subscriptions 

Source
pub fn execute_bar_subscriptions(
    members: &[BarType],
    execute: impl FnMut(BarType) -> Result<()>,
) -> Result<()>
Expand description

Executes each full bar type operation in order and reports synchronous acceptance.

Validate command-wide settings before calling this function. A member failure does not stop later members; acceptance uses full bar types, including types on the same instrument.

ยงErrors

Returns an error if any member fails, with a SubscriptionError listing accepted members.