Skip to content

Commit

Permalink
10/09/2023 01:18:56 PM 🖥️
Browse files Browse the repository at this point in the history
  • Loading branch information
alloc33 committed Oct 9, 2023
1 parent 5c27bf9 commit 1424807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions market/src/api/alert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ pub struct WebhookAlertData {
pub ticker: String,
pub timeframe: String,
pub exchange: String,
pub signal_data: SignalData,
pub signal_type: SignalType,
pub trail_stop_price: Option<Decimal>,
pub bar_data: BarData,
pub time: DateTime<Utc>,
}
Expand Down Expand Up @@ -85,12 +86,6 @@ impl<'de> Deserialize<'de> for SignalType {
}
}

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct SignalData {
pub signal_type: SignalType,
pub trail_stop_price: Option<Decimal>,
}

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct BarData {
pub time: DateTime<Utc>,
Expand Down
3 changes: 2 additions & 1 deletion market/src/trade_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ pub struct TradeSignal {
pub ticker: String,
pub timeframe: String,
pub exchange: String,
pub signal_data: SignalData,
pub signal_type: SignalType,
pub trail_stop_price: Option<Decimal>,
pub bar_data: BarData,
pub time: DateTime<Utc>,
}
Expand Down

0 comments on commit 1424807

Please sign in to comment.