Skip to content

Commit

Permalink
SimulateForm add date_begin and date_end
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshell committed Mar 11, 2023
1 parent e2b3d8f commit 0c62781
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 7 deletions.
261 changes: 260 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions midas-core/src/model/profit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#[serde(rename_all = "camelCase")]
pub struct Profit {
pub date: String,
pub close_point: f64,
pub value: f64,
}
1 change: 1 addition & 0 deletions midas-core/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub fn simulate(

let profit = crate::model::Profit {
date: index_data.date.clone(),
close_point,
value,
};
println!("profit: {profit:#?}");
Expand Down
1 change: 1 addition & 0 deletions midas-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ axum = { version = "0.6", features = ["http2"] }
tower-http = { version = "0.4", features = ["cors"] }
tracing = "0.1"
tracing-subscriber = "0.3"
chrono = "0.4"
Loading

0 comments on commit 0c62781

Please sign in to comment.