pub struct MMConfigJson {
pub base_order_size: String,
pub base_spread: String,
pub max_position_size: String,
pub skew_mode: String,
pub price_skew_gamma: String,
pub size_skew_floor: String,
pub min_price_change_pct: String,
pub stop_loss: Option<String>,
pub take_profit: Option<String>,
}Expand description
Market Maker strategy configuration
Fields§
§base_order_size: StringBase order size in base asset
base_spread: StringBase spread between bid and ask
max_position_size: StringMaximum position size in base asset
skew_mode: StringSkew mode: “both”, “size”, “price”, or “none”
price_skew_gamma: StringPrice skew gamma (how aggressively to skew quotes based on position)
size_skew_floor: StringSize skew floor (minimum size for quotes)
min_price_change_pct: StringMinimum price change to update quotes
stop_loss: Option<String>Stop loss (optional)
take_profit: Option<String>Take profit (optional)
Trait Implementations§
Source§impl Clone for MMConfigJson
impl Clone for MMConfigJson
Source§fn clone(&self) -> MMConfigJson
fn clone(&self) -> MMConfigJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MMConfigJson
impl Debug for MMConfigJson
Source§impl<'de> Deserialize<'de> for MMConfigJson
impl<'de> Deserialize<'de> for MMConfigJson
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 JsonSchema for MMConfigJson
impl JsonSchema for MMConfigJson
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MMConfigJson
impl RefUnwindSafe for MMConfigJson
impl Send for MMConfigJson
impl Sync for MMConfigJson
impl Unpin for MMConfigJson
impl UnsafeUnpin for MMConfigJson
impl UnwindSafe for MMConfigJson
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