pub struct PlaceOrderParams {
pub symbol: SmartString,
pub side: SmartString,
pub order_type: SmartString,
pub time_in_force: SmartString,
pub quantity: SmartString,
pub price: SmartString,
pub client_order_id: SmartString,
}Expand description
Parameters required to place an order on Binance Uses owned strings to avoid lifetime issues with Clone trait
Fields§
§symbol: SmartStringTrading symbol (e.g., “BTCUSDT”)
side: SmartStringOrder side - “BUY” or “SELL”
order_type: SmartStringOrder type - “LIMIT”, “MARKET”, etc.
time_in_force: SmartStringTime in force - “GTC”, “IOC”, “FOK”
quantity: SmartStringOrder quantity as a string
price: SmartStringOrder price as a string
client_order_id: SmartStringClient-generated order ID for tracking
Trait Implementations§
Source§impl Clone for PlaceOrderParams
impl Clone for PlaceOrderParams
Source§fn clone(&self) -> PlaceOrderParams
fn clone(&self) -> PlaceOrderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaceOrderParams
impl RefUnwindSafe for PlaceOrderParams
impl Send for PlaceOrderParams
impl Sync for PlaceOrderParams
impl Unpin for PlaceOrderParams
impl UnwindSafe for PlaceOrderParams
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