pub struct OrchestratorConfigJson {
pub kind: String,
pub allocation_mode: String,
pub take_profit_pct: Option<String>,
pub stop_loss_pct: Option<String>,
pub start_conditions: Vec<OrchestratorCondition>,
pub validation_conditions: Vec<OrchestratorCondition>,
pub risk_conditions: Vec<OrchestratorCondition>,
pub children: Vec<OrchestratorChildConfigJson>,
pub legs: Vec<OrchestratorLegConfigJson>,
}Expand description
Parent strategy configuration for grouped child strategies.
Fields§
§kind: StringV1 kind: “prediction_yes_no_grid”
allocation_mode: StringStatic allocation mode for child legs. V1 supports “static_50_50”.
take_profit_pct: Option<String>Group take-profit threshold in percentage units. Example: “10” = +10%.
stop_loss_pct: Option<String>Group stop-loss threshold in percentage units. Example: “5” = -5%.
start_conditions: Vec<OrchestratorCondition>Conditions that must pass before child strategies start.
validation_conditions: Vec<OrchestratorCondition>Conditions that must remain valid while waiting/running.
risk_conditions: Vec<OrchestratorCondition>Conditions that trigger a risk exit.
children: Vec<OrchestratorChildConfigJson>Generic child strategy plans. V1 generic orchestrator supports grid and dca only.
legs: Vec<OrchestratorLegConfigJson>Explicit child-leg ranges supplied by the client from live prices.
Trait Implementations§
Source§impl Clone for OrchestratorConfigJson
impl Clone for OrchestratorConfigJson
Source§fn clone(&self) -> OrchestratorConfigJson
fn clone(&self) -> OrchestratorConfigJson
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 OrchestratorConfigJson
impl Debug for OrchestratorConfigJson
Source§impl<'de> Deserialize<'de> for OrchestratorConfigJson
impl<'de> Deserialize<'de> for OrchestratorConfigJson
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 OrchestratorConfigJson
impl JsonSchema for OrchestratorConfigJson
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 OrchestratorConfigJson
impl RefUnwindSafe for OrchestratorConfigJson
impl Send for OrchestratorConfigJson
impl Sync for OrchestratorConfigJson
impl Unpin for OrchestratorConfigJson
impl UnsafeUnpin for OrchestratorConfigJson
impl UnwindSafe for OrchestratorConfigJson
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