pub async fn limit_sell(&self, symbol: &str, qty: f64, price: f64) -> Result<Transaction> {
        let sell: OrderRequest = OrderRequest {
            symbol: symbol.into(),
            qty,
            price,
            order_side: ORDER_SIDE_SELL.to_string(),
            order_type: ORDER_TYPE_LIMIT.to_string(),
            time_in_force: TIME_IN_FORCE_GTC.to_string(),
        };
        let params = self.build_order(sell);
        let transaction = self
            .transport
            .signed_post(API_V3_ORDER, Some(&params))
            .await?;

        Ok(transaction)
    }
// Place a LIMIT order - SELL
Place a LIMIT order - SELL
Place a LIMIT order - SELL
pub async fn limit_sell(&self, symbol: &str, qty: f64, price: f64) -> Result<Transaction> {
        let sell: OrderRequest = OrderRequest {
            symbol: symbol.into(),
            qty,
            price,
            order_side: ORDER_SIDE_SELL.to_string(),
            order_type: ORDER_TYPE_LIMIT.to_string(),
            time_in_force: TIME_IN_FORCE_GTC.to_string(),
        };
        let params = self.build_order(sell);
        let transaction = self
            .transport
            .signed_post(API_V3_ORDER, Some(&params))
            .await?;
        Ok(transaction)
    }
pub async fn limit_sell ( & self , symbol : & str , qty : f64 , price : f64 ) -> Result < Transaction > { let sell : OrderRequest = OrderRequest { symbol : symbol . into ( ) , qty , price , order_side : ORDER_SIDE_SELL . to_string ( ) , order_type : ORDER_TYPE_LIMIT . to_string ( ) , time_in_force : TIME_IN_FORCE_GTC . to_string ( ) , } ; let params = self . build_order ( sell ) ; let transaction = self . transport . signed_post ( API_V3_ORDER , Some ( & params ) ) . await ? ; Ok ( transaction ) }
Place a LIMIT order - SELL
Place a LIMIT order - SELL
&self
symbol
&str
qty
f64
price
f64
&self
symbol
&str
qty
f64
price
f64