sandbox_quant/execution/command.rs
1use crate::domain::exposure::Exposure;
2use crate::domain::instrument::Instrument;
3
4#[derive(Debug, Clone, PartialEq)]
5pub enum CommandSource {
6 User,
7 System,
8}
9
10#[derive(Debug, Clone, PartialEq)]
11pub enum ExecutionCommand {
12 SetTargetExposure {
13 instrument: Instrument,
14 target: Exposure,
15 source: CommandSource,
16 },
17 CloseSymbol {
18 instrument: Instrument,
19 source: CommandSource,
20 },
21 CloseAll {
22 source: CommandSource,
23 },
24}