borsa 0.2.0

High-level, pluggable market data API for Rust with multi-provider support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Borsa;
use crate::borsa_router_search;

impl Borsa {
    borsa_router_search! {
        /// Search for instruments using a free-text query, with optional kind filter and result limit.
        ///
        /// Behavior and trade-offs:
        /// - Executes search across eligible providers concurrently, merges results,
        ///   and de-duplicates by symbol.
        /// - If `limit` is set, truncates after merge to enforce the cap.
        method: search(req: borsa_core::SearchRequest) -> borsa_core::SearchReport,
        accessor: as_search_provider,
        capability: "search",
        call: search(req)
    }
}