pub enum MarketCommands {
Info {
symbol: String,
no_history: bool,
history_period_type: String,
history_period: u32,
history_frequency_type: String,
},
Quotes {
symbols: String,
fields: Option<String>,
indicative: Option<bool>,
},
Quote {
symbol: String,
fields: Option<String>,
indicative: Option<bool>,
},
History {
symbol: String,
period_type: Option<String>,
period: Option<u32>,
frequency_type: Option<String>,
frequency: Option<u32>,
start_date: Option<i64>,
end_date: Option<i64>,
need_extended_hours_data: Option<bool>,
need_previous_close: Option<bool>,
},
Instrument {
symbol: String,
projection: String,
},
InstrumentByCusip {
cusip: String,
},
Hours {
markets: String,
date: Option<String>,
},
HoursFor {
market: String,
date: Option<String>,
},
}Variants§
Info
Agent dossier — quote + fundamentals + price context + research hints
Fields
Quotes
GET /quotes — quotes for multiple symbols (comma-separated)
Fields
Quote
GET /{symbol}/quotes — single symbol quote
History
GET /pricehistory — OHLCV candles
Fields
Instrument
GET /instruments — symbol search / fundamentals (company info)
Fields
InstrumentByCusip
GET /instruments/{cusip}
Hours
GET /markets — hours for multiple markets (comma-separated)
Fields
HoursFor
GET /markets/{market_id} — hours for one market
Trait Implementations§
Source§impl Debug for MarketCommands
impl Debug for MarketCommands
Source§impl FromArgMatches for MarketCommands
impl FromArgMatches for MarketCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for MarketCommands
impl Subcommand for MarketCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MarketCommands
impl RefUnwindSafe for MarketCommands
impl Send for MarketCommands
impl Sync for MarketCommands
impl Unpin for MarketCommands
impl UnsafeUnpin for MarketCommands
impl UnwindSafe for MarketCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more