pub enum Command {
Show 27 variants
Market(MarketCommand),
Account(AccountCommand),
Trade(TradeCommand),
Funding(FundingCommand),
ServerTime,
Pairs,
Ticker {
pair: String,
},
TickerAll,
Summaries,
Orderbook {
pair: String,
count: usize,
},
Trades {
pair: String,
},
Ohlc {
pair: String,
interval: String,
since: Option<u64>,
to: Option<u64>,
},
PriceIncrements,
AccountInfo,
Balance,
Transactions,
TradesHistory {
pair: String,
limit: usize,
from_id: Option<u64>,
},
Order(TradeCommand),
Withdraw {
asset: String,
volume: f64,
address: String,
username: bool,
memo: Option<String>,
network: Option<String>,
callback_url: Option<String>,
},
Withdrawal(WithdrawalSubcommand),
Ws(WebSocketCommand),
Paper(PaperCommand),
Auth(AuthCommand),
Alert(AlertCommand),
Setup,
Shell,
Mcp {
groups: String,
allow_dangerous: bool,
},
}Variants§
Market(MarketCommand)
Account(AccountCommand)
Trade(TradeCommand)
Funding(FundingCommand)
ServerTime
Get server time
Pairs
List available trading pairs
Ticker
Get ticker for a pair
TickerAll
Get tickers for all pairs
Summaries
Get 24h and 7d summaries for all pairs
Orderbook
Get order book for a pair
Trades
Get recent trades for a pair
Ohlc
Get OHLCV candle data (default –since is 24h ago)
PriceIncrements
Get price increments (tick sizes)
AccountInfo
Get current account information (balances, permissions, etc.)
Balance
Get non-zero account balances
Transactions
Get your deposit/withdrawal transactions
TradesHistory
Get your trade history for a specific symbol
Fields
Order(TradeCommand)
Place and manage orders
Withdraw
Withdraw cryptocurrency
Fields
Withdrawal(WithdrawalSubcommand)
Manage withdrawal fees and servers
Ws(WebSocketCommand)
WebSocket streaming
Paper(PaperCommand)
Paper trading (simulated)
Auth(AuthCommand)
Manage API credentials
Alert(AlertCommand)
Price alert management
Setup
Interactive setup wizard
Shell
Start interactive REPL
Mcp
Start MCP stdio server for AI agent integration
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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