Skip to content

Commit

Permalink
# update to 0.2.0
Browse files Browse the repository at this point in the history
完善账户体系 增加资金/订单处理

Signed-off-by: yutiansut <[email protected]>
  • Loading branch information
yutiansut committed Feb 12, 2020
1 parent 3c0987a commit 488972b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/t01b2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ pub fn backtest() -> QA_Account {

lastbar = bar;
}
println!("LAST MONEY {:?}", acc.money);
println!("{:?}", acc.cash);
println!("{:?}", acc.frozen);

//qaaccount::QA_Account::history_table(&mut acc);

acc
Expand All @@ -172,6 +170,9 @@ pub fn backtest() -> QA_Account {
fn main() {
let sw = Stopwatch::start_new();
let acc = backtest();
acc.to_csv();
println!("LAST MONEY {:?}", acc.money);
println!("{:?}", acc.cash);
println!("{:?}", acc.frozen);
//acc.to_csv();
println!("It took {0:.8} ms", sw.elapsed_ms());
}

0 comments on commit 488972b

Please sign in to comment.