pub struct ExecuteRequest {
pub coin: String,
pub side: ExecuteSide,
pub size: f64,
pub idempotency_key: String,
}Expand description
Request body for POST /execute.
size is the notional base-asset quantity (coins, not USD);
the engine resolves the USD notional against the current mid so
the CLI does not have to round-trip mark data to place an order.
A future size_usd: Option<f64> column will land as an additive
field — the #[serde(default)] + narrow deserialization means
older engines tolerate extra fields and older CLIs tolerate
missing fields.
idempotency_key is required. The typed helper
crate::HttpClient::post_execute mints one per call via
uuid::Uuid::new_v4 so callers cannot forget.
Fields§
§coin: String§side: ExecuteSide§size: f64§idempotency_key: StringTrait Implementations§
Source§impl Clone for ExecuteRequest
impl Clone for ExecuteRequest
Source§fn clone(&self) -> ExecuteRequest
fn clone(&self) -> ExecuteRequest
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 ExecuteRequest
impl Debug for ExecuteRequest
Source§impl<'de> Deserialize<'de> for ExecuteRequest
impl<'de> Deserialize<'de> for ExecuteRequest
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 ExecuteRequest
impl RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnsafeUnpin for ExecuteRequest
impl UnwindSafe for ExecuteRequest
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