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>,
pub reduce_only: bool,
}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>§reduce_only: boolDerivatives-only flag that marks the order as position-reducing only.
Coinbase does not document reduce_only as an accepted create-order
field; the venue’s failure-reason enum acknowledges the concept but the
order schema has no slot for it. The field is threaded through the
request for API parity with other adapters and is omitted from the wire
payload when false.
Trait Implementations§
Source§impl Clone for CreateOrderRequest
impl Clone for CreateOrderRequest
Source§fn clone(&self) -> CreateOrderRequest
fn clone(&self) -> CreateOrderRequest
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 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§
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