pub struct ClosePositionResponse {
pub long_order_create_transaction: Option<MarketOrderTransaction>,
pub long_order_fill_transaction: Option<OrderFillTransaction>,
pub long_order_cancel_transaction: Option<OrderCancelTransaction>,
pub short_order_create_transaction: Option<MarketOrderTransaction>,
pub short_order_fill_transaction: Option<OrderFillTransaction>,
pub short_order_cancel_transaction: Option<OrderCancelTransaction>,
pub related_transaction_ids: Option<Vec<TransactionID>>,
pub last_transaction_id: Option<TransactionID>,
}Expand description
Successful response for close_position.
Fields§
§long_order_create_transaction: Option<MarketOrderTransaction>The MarketOrderTransaction created to close the long Position.
long_order_fill_transaction: Option<OrderFillTransaction>OrderFill Transaction that closes the long Position
long_order_cancel_transaction: Option<OrderCancelTransaction>OrderCancel Transaction that cancels the MarketOrder created to close the long Position
short_order_create_transaction: Option<MarketOrderTransaction>The MarketOrderTransaction created to close the short Position.
short_order_fill_transaction: Option<OrderFillTransaction>OrderFill Transaction that closes the short Position
short_order_cancel_transaction: Option<OrderCancelTransaction>OrderCancel Transaction that cancels the MarketOrder created to close the short Position
The IDs of all Transactions that were created while satisfying the request.
last_transaction_id: Option<TransactionID>The ID of the most recent Transaction created for the Account
Trait Implementations§
Source§impl Clone for ClosePositionResponse
impl Clone for ClosePositionResponse
Source§impl Debug for ClosePositionResponse
impl Debug for ClosePositionResponse
Source§impl<'de> Deserialize<'de> for ClosePositionResponse
impl<'de> Deserialize<'de> for ClosePositionResponse
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
Source§impl PartialEq for ClosePositionResponse
impl PartialEq for ClosePositionResponse
Source§impl Serialize for ClosePositionResponse
impl Serialize for ClosePositionResponse
impl StructuralPartialEq for ClosePositionResponse
Auto Trait Implementations§
impl Freeze for ClosePositionResponse
impl RefUnwindSafe for ClosePositionResponse
impl Send for ClosePositionResponse
impl Sync for ClosePositionResponse
impl Unpin for ClosePositionResponse
impl UnsafeUnpin for ClosePositionResponse
impl UnwindSafe for ClosePositionResponse
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