pub enum Command {
Show 37 variants
Market(MarketCommand),
Account(AccountCommand),
Trade(TradeCommand),
Funding(FundingCommand),
ServerTime,
Pairs,
Ticker {
pair: String,
},
History {
pair: String,
timeframe: String,
from: Option<u64>,
to: Option<u64>,
},
TickerAll,
Summaries,
Orderbook {
pair: String,
count: usize,
},
Trades {
pair: String,
},
Ohlc {
pair: String,
interval: String,
since: Option<u64>,
to: Option<u64>,
},
Webdata {
pair: String,
},
ChatHistory,
PairsV2 {
pair: Option<String>,
},
SearchV2,
TerminalTrade {
pair: String,
},
TerminalMarket {
pair: String,
},
TerminalCategories,
OnrampConfig {
pair: String,
},
News {
asset: String,
page: u32,
},
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
History
Get OHLCV history 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 –from is 24h ago)
Webdata
Get market webdata for a pair
ChatHistory
Get chatroom history
PairsV2
Get detailed pairs info (V2)
SearchV2
Search markets (TradingView Search V2)
TerminalTrade
Get terminal trading data
TerminalMarket
Get terminal market data
TerminalCategories
Get terminal market categories
OnrampConfig
Get onramp config for a pair
News
Get news for an asset
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>
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>
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
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
Self can parse a specific subcommand