Rollback sell_count
This commit is contained in:
parent
1c4b922752
commit
bbc30cd242
|
|
@ -66,7 +66,6 @@ pub struct BuyOrderedCoinList {
|
|||
pub pure_profit_percent: f64,
|
||||
pub minimum_profit_percent: f64,
|
||||
pub maximum_profit_percent: f64,
|
||||
pub sell_count: u16,
|
||||
pub registerer: u16,
|
||||
pub is_long: u8,
|
||||
}
|
||||
|
|
@ -90,7 +89,6 @@ pub struct SellOrderedCoinList {
|
|||
pub base_qty_ordered: Decimal,
|
||||
pub pure_profit_percent: Decimal,
|
||||
pub maximum_profit_percent: f64,
|
||||
pub sell_count: u16,
|
||||
pub registerer: u16,
|
||||
pub is_long: u8,
|
||||
}
|
||||
|
|
@ -134,7 +132,6 @@ impl DBlist for SellOrderedCoinList {
|
|||
base_qty_ordered: Decimal::new(0, 8),
|
||||
pure_profit_percent: Decimal::new(0, 8),
|
||||
maximum_profit_percent: 0.0,
|
||||
sell_count: 0,
|
||||
registerer: 0,
|
||||
is_long: 0,
|
||||
};
|
||||
|
|
@ -163,7 +160,6 @@ impl DBlist for BuyOrderedCoinList {
|
|||
pure_profit_percent: 0.0,
|
||||
minimum_profit_percent: 0.0,
|
||||
maximum_profit_percent: 0.0,
|
||||
sell_count: 0,
|
||||
registerer: 0,
|
||||
is_long: 0,
|
||||
};
|
||||
|
|
@ -330,7 +326,6 @@ pub async fn limit_order_buy(
|
|||
"pure_profit_percent",
|
||||
"minimum_profit_percent",
|
||||
"maximum_profit_percent",
|
||||
"sell_count",
|
||||
"registerer",
|
||||
"is_long",
|
||||
];
|
||||
|
|
@ -486,7 +481,6 @@ pub async fn limit_order_buy(
|
|||
insert_value_container.push(0.0.to_string()); // pure_profit_percent
|
||||
insert_value_container.push(0.0.to_string()); // minimum_profit_percent
|
||||
insert_value_container.push(0.0.to_string()); // maximum_profit_percent
|
||||
insert_value_container.push(0.to_string()); // sell_count
|
||||
insert_value_container.push(element.registerer.to_string()); // registerer
|
||||
insert_value_container.push(0.to_string()); // is_long
|
||||
|
||||
|
|
@ -725,7 +719,6 @@ pub async fn limit_order_sell(
|
|||
"base_qty_ordered",
|
||||
"pure_profit_percent",
|
||||
"maximum_profit_percent",
|
||||
"sell_count",
|
||||
"registerer",
|
||||
"is_long",
|
||||
];
|
||||
|
|
@ -1345,7 +1338,6 @@ pub async fn cancel_sell_order(
|
|||
"pure_profit_percent",
|
||||
"minimum_profit_percent",
|
||||
"maximum_profit_percent",
|
||||
"sell_count",
|
||||
"registerer",
|
||||
"is_long",
|
||||
];
|
||||
|
|
@ -1390,7 +1382,6 @@ pub async fn cancel_sell_order(
|
|||
insert_value_container.push(0.0.to_string()); // pure_profit_percent
|
||||
insert_value_container.push(0.0.to_string()); // minimum_profit_percent
|
||||
insert_value_container.push(order.maximum_profit_percent.to_string()); // maximum_profit_percent
|
||||
insert_value_container.push(order.sell_count.to_string()); // sell_count
|
||||
insert_value_container.push(order.registerer.to_string()); // registerer
|
||||
insert_value_container.push(order.is_long.to_string()); // is_long
|
||||
|
||||
|
|
@ -1541,7 +1532,6 @@ pub async fn cancel_sell_order(
|
|||
insert_value_container.push(0.0.to_string()); // pure_profit_percent
|
||||
insert_value_container.push(0.0.to_string()); // minimum_profit_percent
|
||||
insert_value_container.push(0.0.to_string()); // maximum_profit_percent
|
||||
insert_value_container.push(order.sell_count.to_string()); // sell_count
|
||||
insert_value_container.push(order.registerer.to_string()); // registerer
|
||||
insert_value_container.push(order.is_long.to_string()); // is_long
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user