Order execution and using decimal

This commit is contained in:
2026-07-29 02:28:54 +02:00
parent 2696618ca0
commit e0230425ec
7 changed files with 72 additions and 17 deletions
+3 -1
View File
@@ -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,