pub struct ExecuteResponse {
pub accepted: bool,
pub simulated: bool,
pub fill_id: Option<String>,
pub coin: Option<String>,
pub side: Option<ExecuteSide>,
pub size: Option<f64>,
pub reason: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Response body for POST /execute.
accepted is the engine’s tri-state: the order was composed and
sent to the exchange (or the paper adapter). simulated is the
paper-mode discriminator — engine truth, not a local guess. The
CLI suffixes the operator-visible line with (paper) whenever
this field is true, so the operator can never be fooled into
thinking a paper fill was a live fill.
fill_id is None until the exchange returns an ack; for paper
fills the engine synthesizes a deterministic string so the CLI
still has something to grep.
Extra fields land in extra verbatim; the engine is free to
add slippage_bps, fee_bps, etc. without breaking the CLI.
Fields§
§accepted: bool§simulated: bool§fill_id: Option<String>§coin: Option<String>§side: Option<ExecuteSide>§size: Option<f64>§reason: Option<String>§extra: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for ExecuteResponse
impl Clone for ExecuteResponse
Source§fn clone(&self) -> ExecuteResponse
fn clone(&self) -> ExecuteResponse
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 ExecuteResponse
impl Debug for ExecuteResponse
Source§impl<'de> Deserialize<'de> for ExecuteResponse
impl<'de> Deserialize<'de> for ExecuteResponse
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 ExecuteResponse
impl RefUnwindSafe for ExecuteResponse
impl Send for ExecuteResponse
impl Sync for ExecuteResponse
impl Unpin for ExecuteResponse
impl UnsafeUnpin for ExecuteResponse
impl UnwindSafe for ExecuteResponse
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