pub struct CreateOrderRequest {
pub client_order_id: String,
pub product_id: Ustr,
pub side: CoinbaseOrderSide,
pub order_configuration: OrderConfiguration,
pub self_trade_prevention_id: Option<String>,
pub leverage: Option<String>,
pub margin_type: Option<CoinbaseMarginType>,
pub retail_portfolio_id: Option<String>,
}Expand description
Request body for POST /api/v3/brokerage/orders (Create Order).
§References
Fields§
§client_order_id: String§product_id: Ustr§side: CoinbaseOrderSide§order_configuration: OrderConfiguration§self_trade_prevention_id: Option<String>§leverage: Option<String>§margin_type: Option<CoinbaseMarginType>§retail_portfolio_id: Option<String>Trait Implementations§
Source§impl Clone for CreateOrderRequest
impl Clone for CreateOrderRequest
Source§impl Debug for CreateOrderRequest
impl Debug for CreateOrderRequest
Auto Trait Implementations§
impl Freeze for CreateOrderRequest
impl RefUnwindSafe for CreateOrderRequest
impl Send for CreateOrderRequest
impl Sync for CreateOrderRequest
impl Unpin for CreateOrderRequest
impl UnsafeUnpin for CreateOrderRequest
impl UnwindSafe for CreateOrderRequest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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