pub async fn add_order(
            &self,
            nonce: Nonce,
            userref: Option<u32>,
            ordertype: OrderType,
            r#type: OrderSide,
            volume: Option<Decimal>,
            pair: &str,
            price: Option<Decimal>,
            price2: Option<Decimal>,
            leverage: Option<&str>,
            oflags: Option<OrderFlags>,
            timeinforce: Option<TimeInForce>,
            starttm: Option<&str>,
            expiretm: Option<&str>,
            close_ordertype: Option<&str>,
            close_price: Option<Decimal>,
            close_price2: Option<Decimal>,
            deadline: Option<&str>,
        ) -> KrakenApiResult<AddOrderResponse> {
            self.client
                .post(API_0_PRIVATE_ADD_ORDER)?
                .signed(nonce)?
                .request_body(AddOrderRequest {
                    userref,
                    ordertype,
                    r#type,
                    volume,
                    pair,
                    price,
                    price2,
                    leverage,
                    oflags,
                    timeinforce,
                    starttm,
                    expiretm,
                    close_ordertype,
                    close_price,
                    close_price2,
                    deadline,
                    validate: false,
                })?
                .send()
                .await
        }
/// Place a new order.
///
/// Note: See the AssetPairs endpoint for details on the available trading pairs,
/// their price and quantity precisions, order minimums, available leverage, etc.
Place a new order.
Note: See the AssetPairs endpoint for details on the available trading pairs,
their price and quantity precisions, order minimums, available leverage, etc.
Place a new order . Note : See the AssetPairs endpoint for details on the available trading pairs their price and quantity precisions order minimums available leverage etc .
pub async fn add_order(
            &self,
            nonce: Nonce,
            userref: Option<u32>,
            ordertype: OrderType,
            r#type: OrderSide,
            volume: Option<Decimal>,
            pair: &str,
            price: Option<Decimal>,
            price2: Option<Decimal>,
            leverage: Option<&str>,
            oflags: Option<OrderFlags>,
            timeinforce: Option<TimeInForce>,
            starttm: Option<&str>,
            expiretm: Option<&str>,
            close_ordertype: Option<&str>,
            close_price: Option<Decimal>,
            close_price2: Option<Decimal>,
            deadline: Option<&str>,
        ) -> KrakenApiResult<AddOrderResponse> {
            self.client
                .post(API_0_PRIVATE_ADD_ORDER)?
                .signed(nonce)?
                .request_body(AddOrderRequest {
                    userref,
                    ordertype,
                    r#type,
                    volume,
                    pair,
                    price,
                    price2,
                    leverage,
                    oflags,
                    timeinforce,
                    starttm,
                    expiretm,
                    close_ordertype,
                    close_price,
                    close_price2,
                    deadline,
                    validate: false,
                })?
                .send()
                .await
        }
pub async fn add_order ( & self , nonce : Nonce , userref : Option < u32 > , ordertype : OrderType , r#type : OrderSide , volume : Option < Decimal > , pair : & str , price : Option < Decimal > , price2 : Option < Decimal > , leverage : Option < & str > , oflags : Option < OrderFlags > , timeinforce : Option < TimeInForce > , starttm : Option < & str > , expiretm : Option < & str > , close_ordertype : Option < & str > , close_price : Option < Decimal > , close_price2 : Option < Decimal > , deadline : Option < & str > , ) -> KrakenApiResult < AddOrderResponse > { self . client . post ( API_0_PRIVATE_ADD_ORDER ) ? . signed ( nonce ) ? . request_body ( AddOrderRequest { userref , ordertype , r#type , volume , pair , price , price2 , leverage , oflags , timeinforce , starttm , expiretm , close_ordertype , close_price , close_price2 , deadline , validate : false , } ) ? . send ( ) . await }
Place a new order.
Place a new order .
&self
nonce
Nonce
userref
Option<u32>
ordertype
OrderType
r#type
OrderSide
volume
Option<Decimal>
pair
&str
price
Option<Decimal>
price2
Option<Decimal>
leverage
Option<&str>
oflags
Option<OrderFlags>
timeinforce
Option<TimeInForce>
starttm
Option<&str>
expiretm
Option<&str>
close_ordertype
Option<&str>
close_price
Option<Decimal>
close_price2
Option<Decimal>
deadline
Option<&str>
&self
nonce
Nonce
userref
Option<u32>
ordertype
OrderType
r#type
OrderSide
volume
Option<Decimal>
pair
&str
price
Option<Decimal>
price2
Option<Decimal>
leverage
Option<&str>
oflags
Option<OrderFlags>
timeinforce
Option<TimeInForce>
starttm
Option<&str>
expiretm
Option<&str>
close_ordertype
Option<&str>
close_price
Option<Decimal>
close_price2
Option<Decimal>
deadline
Option<&str>