pub async fn market_quote(&self, ids: &[SymbolId]) -> Result<Vec<MarketQuote>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct MarketQuoteResponse {
            quotes: Vec<MarketQuote>,
        }

        let ids = ids.iter().map(ToString::to_string).join(",");

        let response = self
            .get_request_builder("markets/quotes")?
            .query(&[("ids", ids)])
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<MarketQuoteResponse>()
            .await?;

        Ok(response.quotes)
    }
/// Retrieves a single Level 1 market data quote for one or more symbols.
///
/// IMPORTANT NOTE: Questrade user needs to be subscribed to a real-time data package, to
/// receive market quotes in real-time, otherwise call to get quote is considered snap quote and
/// limit per market can be quickly reached. Without real-time data package, once limit is
/// reached, the response will return delayed data.
/// (Please check "delay" parameter in response always)
///
Retrieves a single Level 1 market data quote for one or more symbols.
IMPORTANT NOTE: Questrade user needs to be subscribed to a real-time data package, to
receive market quotes in real-time, otherwise call to get quote is considered snap quote and
limit per market can be quickly reached. Without real-time data package, once limit is
reached, the response will return delayed data.
(Please check "delay" parameter in response always)
Retrieves a single Level 1 market data quote for one or more symbols . IMPORTANT NOTE : Questrade user needs to be subscribed to a real - time data package to receive market quotes in real - time otherwise call to get quote is considered snap quote and limit per market can be quickly reached . Without real - time data package once limit is reached the response will return delayed data . ( Please check " delay " parameter in response always )
pub async fn market_quote(&self, ids: &[SymbolId]) -> Result<Vec<MarketQuote>, Box<dyn Error>> {
        #[derive(Serialize, Deserialize)]
        struct MarketQuoteResponse {
            quotes: Vec<MarketQuote>,
        }
        let ids = ids.iter().map(ToString::to_string).join(",");
        let response = self
            .get_request_builder("markets/quotes")?
            .query(&[("ids", ids)])
            .send()
            .await?
            .error_for_status()
            .map_err(|e| wrap_error(e))?
            .json::<MarketQuoteResponse>()
            .await?;
        Ok(response.quotes)
    }
pub async fn market_quote ( & self , ids : & [ SymbolId ] ) -> Result < Vec < MarketQuote > , Box < dyn Error > > { # [ derive ( Serialize Deserialize ) ] struct MarketQuoteResponse { quotes : Vec < MarketQuote > , } let ids = ids . iter ( ) . map ( ToString :: to_string ) . join ( " " ) ; let response = self . get_request_builder ( " " ) ? . query ( & [ ( " " , ids ) ] ) . send ( ) . await ? . error_for_status ( ) . map_err ( | e | wrap_error ( e ) ) ? . json :: < MarketQuoteResponse > ( ) . await ? ; Ok ( response . quotes ) }
Retrieves a single Level 1 market data quote for one or more symbols.
Retrieves a single Level 1 market data quote for one or more symbols .
&self
ids
&[SymbolId]
&self
ids
&[SymbolId]