pub struct KrakenFuturesSendOrderParams {
pub symbol: Ustr,
pub side: KrakenOrderSide,
pub order_type: KrakenFuturesOrderType,
pub size: String,
pub cli_ord_id: Option<String>,
pub limit_price: Option<String>,
pub stop_price: Option<String>,
pub reduce_only: Option<bool>,
pub trigger_signal: Option<KrakenTriggerSignal>,
pub trailing_stop_deviation_unit: Option<String>,
pub trailing_stop_max_deviation: Option<String>,
pub broker: Option<Ustr>,
}Expand description
Parameters for sending an order via POST /api/v3/sendorder.
§References
Fields§
§symbol: UstrThe symbol of the futures contract (e.g., “PI_XBTUSD”).
side: KrakenOrderSideThe order side: “buy” or “sell”.
order_type: KrakenFuturesOrderTypeThe order type: lmt, ioc, post, mkt, stp, take_profit, stop_loss.
size: StringThe order size in contracts.
cli_ord_id: Option<String>Optional client order ID for tracking.
limit_price: Option<String>Limit price (required for limit orders).
stop_price: Option<String>Stop/trigger price (required for stop orders).
reduce_only: Option<bool>If true, the order will only reduce an existing position.
trigger_signal: Option<KrakenTriggerSignal>Trigger signal for stop orders: last, mark, or index.
trailing_stop_deviation_unit: Option<String>Trailing stop offset value.
trailing_stop_max_deviation: Option<String>Trailing stop max deviation.
broker: Option<Ustr>Partner/broker attribution ID.
Trait Implementations§
Source§impl Clone for KrakenFuturesSendOrderParams
impl Clone for KrakenFuturesSendOrderParams
Source§fn clone(&self) -> KrakenFuturesSendOrderParams
fn clone(&self) -> KrakenFuturesSendOrderParams
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KrakenFuturesSendOrderParams
impl Debug for KrakenFuturesSendOrderParams
Source§impl<'de> Deserialize<'de> for KrakenFuturesSendOrderParams
impl<'de> Deserialize<'de> for KrakenFuturesSendOrderParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KrakenFuturesSendOrderParams
impl RefUnwindSafe for KrakenFuturesSendOrderParams
impl Send for KrakenFuturesSendOrderParams
impl Sync for KrakenFuturesSendOrderParams
impl Unpin for KrakenFuturesSendOrderParams
impl UnwindSafe for KrakenFuturesSendOrderParams
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more