pub struct TradeReply {
pub req_id: Option<String>,
pub ret_code: i64,
pub ret_msg: String,
pub op: String,
pub data: Option<Value>,
pub ret_ext_info: Option<Value>,
pub header: Option<TradeReplyHeader>,
pub conn_id: Option<String>,
}Expand description
Reply of the order entry stream (/v5/trade).
Usually consumed by TradeClient, which matches
replies to requests by req_id.
Fields§
§req_id: Option<String>reqId of the request, if it had one.
ret_code: i640 on success (see ret_code).
ret_msg: StringError message, OK on success.
op: Stringauth, order.create, order.amend, order.cancel or a *-batch op.
data: Option<Value>Business data: the same as result of the REST endpoint.
ret_ext_info: Option<Value>Per-item results of batch requests.
header: Option<TradeReplyHeader>Rate limit headers of this op.
conn_id: Option<String>Connection id.
Trait Implementations§
Source§impl Clone for TradeReply
impl Clone for TradeReply
Source§impl Debug for TradeReply
impl Debug for TradeReply
Source§impl<'de> Deserialize<'de> for TradeReply
impl<'de> Deserialize<'de> for TradeReply
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 TradeReply
impl PartialEq for TradeReply
impl StructuralPartialEq for TradeReply
Auto Trait Implementations§
impl Freeze for TradeReply
impl RefUnwindSafe for TradeReply
impl Send for TradeReply
impl Sync for TradeReply
impl Unpin for TradeReply
impl UnsafeUnpin for TradeReply
impl UnwindSafe for TradeReply
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