Order execution and using decimal
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use hypersdk::Decimal;
|
||||
|
||||
use crate::units::{Direction, Symbol, USD};
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
@@ -20,7 +22,7 @@ pub struct Signal {
|
||||
pub symbol: String,
|
||||
pub kind: Direction,
|
||||
pub confidence: f32,
|
||||
pub size: f64,
|
||||
pub size: Decimal,
|
||||
pub price: USD,
|
||||
pub take_profit: USD,
|
||||
pub stop_loss: USD,
|
||||
|
||||
Reference in New Issue
Block a user