pub struct CreateOrderParams {Show 15 fields
pub portfolio: String,
pub client_order_id: Option<String>,
pub side: CoinbaseIntxSide,
pub size: String,
pub instrument: String,
pub order_type: CoinbaseIntxOrderType,
pub tif: CoinbaseIntxTimeInForce,
pub price: Option<String>,
pub stop_price: Option<String>,
pub stop_limit_price: Option<String>,
pub expire_time: Option<DateTime<Utc>>,
pub stp_mode: Option<CoinbaseIntxSTPMode>,
pub post_only: Option<bool>,
pub close_only: Option<bool>,
pub algo_strategy: Option<CoinbaseIntxAlgoStrategy>,
}Expand description
Parameters for creating a new order.
Fields§
§portfolio: StringPortfolio identifier.
client_order_id: Option<String>Unique client-assigned order identifier.
side: CoinbaseIntxSideSide of the transaction (BUY/SELL).
size: StringAmount in base asset units.
instrument: StringInstrument identifier (name, ID, or UUID).
order_type: CoinbaseIntxOrderTypeType of order.
tif: CoinbaseIntxTimeInForceTime in force for the order.
price: Option<String>Price limit in quote asset units.
stop_price: Option<String>Market price that activates a stop order.
stop_limit_price: Option<String>Limit price for TP/SL stop leg orders.
expire_time: Option<DateTime<Utc>>Expiration time for GTT orders.
stp_mode: Option<CoinbaseIntxSTPMode>Self-trade prevention mode.
post_only: Option<bool>Whether order must rest on the book.
close_only: Option<bool>Whether order must close existing position.
algo_strategy: Option<CoinbaseIntxAlgoStrategy>Algorithmic trading strategy.
Trait Implementations§
Source§impl Clone for CreateOrderParams
impl Clone for CreateOrderParams
Source§fn clone(&self) -> CreateOrderParams
fn clone(&self) -> CreateOrderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateOrderParams
impl Debug for CreateOrderParams
Source§impl<'de> Deserialize<'de> for CreateOrderParams
impl<'de> Deserialize<'de> for CreateOrderParams
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 CreateOrderParams
impl RefUnwindSafe for CreateOrderParams
impl Send for CreateOrderParams
impl Sync for CreateOrderParams
impl Unpin for CreateOrderParams
impl UnwindSafe for CreateOrderParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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