pub enum OrdersCommands {
Schema,
Validate {
order: String,
account_number: Option<String>,
},
List {
account_number: String,
from_entered_time: Option<String>,
to_entered_time: Option<String>,
status: Option<String>,
max_results: Option<String>,
},
All {
from_entered_time: Option<String>,
to_entered_time: Option<String>,
status: Option<String>,
max_results: Option<String>,
},
Get {
account_number: String,
order_id: String,
},
Wait {
account_number: String,
order_id: String,
until: String,
timeout_seconds: u64,
interval_seconds: u64,
proceed_on_partial_fill: bool,
},
Place {
account_number: String,
order: String,
},
Preview {
account_number: String,
order: String,
},
Cancel {
account_number: String,
order_id: String,
},
Replace {
account_number: String,
order_id: String,
order: String,
},
}Variants§
Schema
JSON Schema + Schwab order examples for agents
Validate
Validate order JSON (shape + safety.json limits)
Fields
List
GET /accounts/{accountNumber}/orders
Fields
All
GET /orders (all linked accounts)
Fields
Get
GET /accounts/{accountNumber}/orders/{orderId}
Wait
Poll order status until filled, terminal, or timeout
Fields
Place
POST /accounts/{accountNumber}/orders
Preview
POST /accounts/{accountNumber}/previewOrder
Cancel
DELETE /accounts/{accountNumber}/orders/{orderId}
Replace
PUT /accounts/{accountNumber}/orders/{orderId}
Trait Implementations§
Source§impl Debug for OrdersCommands
impl Debug for OrdersCommands
Source§impl FromArgMatches for OrdersCommands
impl FromArgMatches for OrdersCommands
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 OrdersCommands
impl Subcommand for OrdersCommands
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 OrdersCommands
impl RefUnwindSafe for OrdersCommands
impl Send for OrdersCommands
impl Sync for OrdersCommands
impl Unpin for OrdersCommands
impl UnsafeUnpin for OrdersCommands
impl UnwindSafe for OrdersCommands
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