pub async fn load_instruments(
client: &BetfairHttpClient,
filter: &NavigationFilter,
currency: Currency,
min_notional: Option<Money>,
) -> Result<Vec<InstrumentAny>>Expand description
Loads instruments from the Betfair Navigation and Betting APIs.
- Fetches the navigation tree via
send_navigation - Flattens and filters to matching market IDs
- Batches market IDs (max 50 per request)
- Calls
listMarketCataloguefor each batch - Parses results into [
InstrumentAny] viaparse_market_catalogue
ยงErrors
Returns an error if any API request fails or instrument parsing fails.