pub struct ArbitrageConfigJson {
pub order_amount: String,
pub perp_leverage: String,
pub min_opening_spread_pct: String,
pub min_closing_spread_pct: String,
pub spot_slippage_buffer_pct: String,
pub perp_slippage_buffer_pct: String,
}Expand description
Arbitrage strategy configuration from JSON
Fields§
§order_amount: StringOrder amount in quote asset / USDC (e.g., “100” = $100 worth)
perp_leverage: StringLeverage for perp position
min_opening_spread_pct: StringMinimum spread to open (e.g., “0.003” = 0.3%)
min_closing_spread_pct: StringMinimum spread to close (e.g., “-0.001” = -0.1%)
spot_slippage_buffer_pct: StringSlippage buffer for spot orders
perp_slippage_buffer_pct: StringSlippage buffer for perp orders
Trait Implementations§
Source§impl Clone for ArbitrageConfigJson
impl Clone for ArbitrageConfigJson
Source§fn clone(&self) -> ArbitrageConfigJson
fn clone(&self) -> ArbitrageConfigJson
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 ArbitrageConfigJson
impl Debug for ArbitrageConfigJson
Source§impl<'de> Deserialize<'de> for ArbitrageConfigJson
impl<'de> Deserialize<'de> for ArbitrageConfigJson
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArbitrageConfigJson, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArbitrageConfigJson, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ArbitrageConfigJson
impl JsonSchema for ArbitrageConfigJson
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 moreSource§impl Serialize for ArbitrageConfigJson
impl Serialize for ArbitrageConfigJson
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ArbitrageConfigJson
impl RefUnwindSafe for ArbitrageConfigJson
impl Send for ArbitrageConfigJson
impl Sync for ArbitrageConfigJson
impl Unpin for ArbitrageConfigJson
impl UnsafeUnpin for ArbitrageConfigJson
impl UnwindSafe for ArbitrageConfigJson
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