rust #10

Merged
peperunas merged 127 commits from rust into master 2021-02-18 09:42:16 +00:00
Showing only changes of commit 50533b0537 - Show all commits

View File

@ -238,7 +238,7 @@ impl OrderStrategy for FastOrderStrategy {
.current_form
.price()
.ok_or("The active order does not have a price!")?;
let delta = (1.0 - (offer_comparison / order_price).abs()) * 100.0;
let delta = (1.0 - (offer_comparison / order_price)).abs() * 100.0;
if delta > self.threshold {
messages.push(Message::SubmitOrder {