pub fn limit_buy<S, F>(&self, symbol: S, qty: F, price: f64) -> Result<Transaction>
    where
        S: Into<String>,
        F: Into<f64>,
    {
        let buy: OrderRequest = OrderRequest {
            symbol: symbol.into(),
            qty: qty.into(),
            price,
            stop_price: None,
            order_side: OrderSide::Buy,
            order_type: OrderType::Limit,
            time_in_force: TimeInForce::GTC,
        };
        let order = self.build_order(buy);
        let request = build_signed_request(order, self.recv_window)?;
        self.client.post_signed(API::Spot(Spot::Order), request)
    }
// Place a LIMIT order - BUY
Place a LIMIT order - BUY
Place a LIMIT order - BUY
pub fn limit_buy<S, F>(&self, symbol: S, qty: F, price: f64) -> Result<Transaction>
    where
        S: Into<String>,
        F: Into<f64>,
    {
        let buy: OrderRequest = OrderRequest {
            symbol: symbol.into(),
            qty: qty.into(),
            price,
            stop_price: None,
            order_side: OrderSide::Buy,
            order_type: OrderType::Limit,
            time_in_force: TimeInForce::GTC,
        };
        let order = self.build_order(buy);
        let request = build_signed_request(order, self.recv_window)?;
        self.client.post_signed(API::Spot(Spot::Order), request)
    }
pub fn limit_buy < S , F > ( & self , symbol : S , qty : F , price : f64 ) -> Result < Transaction > where S : Into < String > , F : Into < f64 > , { let buy : OrderRequest = OrderRequest { symbol : symbol . into ( ) , qty : qty . into ( ) , price , stop_price : None , order_side : OrderSide :: Buy , order_type : OrderType :: Limit , time_in_force : TimeInForce :: GTC , } ; let order = self . build_order ( buy ) ; let request = build_signed_request ( order , self . recv_window ) ? ; self . client . post_signed ( API :: Spot ( Spot :: Order ) , request ) }
Place a LIMIT order - BUY
Place a LIMIT order - BUY
&self
symbol
S
qty
F
price
f64
&self
symbol
S
qty
F
price
f64