pub async fn symbol_search(
        &self,
        prefix: &str,
        offset: u32,
    ) -> Result<Vec<SearchEquitySymbol>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct SymbolSearchResponse {
            symbols: Vec<SearchEquitySymbol>,
        }

        let response = self
            .get_request_builder("symbols/search")?
            .query(&[("prefix", prefix), ("offset", &offset.to_string())])
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<SymbolSearchResponse>()
            .await?;

        Ok(response.symbols)
    }
/// Searches for the specified symbol.
///
/// params
/// * `prefix` Prefix of a symbol or any word in the description.
/// * `offset` Offset in number of records from the beginning of a result set.
Searches for the specified symbol.
params
`prefix` Prefix of a symbol or any word in the description.
`offset` Offset in number of records from the beginning of a result set.
Searches for the specified symbol . params ` prefix ` Prefix of a symbol or any word in the description . ` offset ` Offset in number of records from the beginning of a result set .
pub async fn symbol_search(
        &self,
        prefix: &str,
        offset: u32,
    ) -> Result<Vec<SearchEquitySymbol>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct SymbolSearchResponse {
            symbols: Vec<SearchEquitySymbol>,
        }
        let response = self
            .get_request_builder("symbols/search")?
            .query(&[("prefix", prefix), ("offset", &offset.to_string())])
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<SymbolSearchResponse>()
            .await?;
        Ok(response.symbols)
    }
pub async fn symbol_search ( & self , prefix : & str , offset : u32 , ) -> Result < Vec < SearchEquitySymbol > , Box < dyn Error > > { # [ derive ( Serialize Deserialize ) ] struct SymbolSearchResponse { symbols : Vec < SearchEquitySymbol > , } let response = self . get_request_builder ( " " ) ? . query ( & [ ( " " , prefix ) , ( " " , & offset . to_string ( ) ) ] ) . send ( ) . await ? . error_for_status ( ) . map_err ( | e | wrap_error ( e ) ) ? . json :: < SymbolSearchResponse > ( ) . await ? ; Ok ( response . symbols ) }
Searches for the specified symbol.
Searches for the specified symbol .
&self
prefix
&str
offset
u32
&self
prefix
&str
offset
u32