Add FIXME tags
This commit is contained in:
parent
5191a284d2
commit
7e45793d54
|
|
@ -875,11 +875,13 @@ pub async fn limit_order_sell(
|
|||
if RUNNING_MODE == SIMUL && buy_ordered_coin.status == "SIMUL" {
|
||||
let quote_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == buy_ordered_coin.symbol)
|
||||
.unwrap()
|
||||
.quote_asset_precision;
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == buy_ordered_coin.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -984,11 +986,13 @@ pub async fn limit_order_sell(
|
|||
|
||||
let quote_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == buy_ordered_coin.symbol)
|
||||
.unwrap()
|
||||
.quote_asset_precision;
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == buy_ordered_coin.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -1337,6 +1341,7 @@ pub async fn cancel_buy_order(
|
|||
// calculate values to be updated
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -1350,6 +1355,7 @@ pub async fn cancel_buy_order(
|
|||
|
||||
let base_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.base_asset_precision;
|
||||
|
|
@ -1517,11 +1523,13 @@ pub async fn cancel_sell_order(
|
|||
// update status FILLED
|
||||
let quote_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.quote_asset_precision;
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -1576,11 +1584,13 @@ pub async fn cancel_sell_order(
|
|||
// reflect partially filled information and update status with FILLED
|
||||
let quote_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.quote_asset_precision;
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -1812,6 +1822,7 @@ pub async fn query_buy_order(
|
|||
// calculate values to be updated
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
@ -1829,6 +1840,7 @@ pub async fn query_buy_order(
|
|||
.unwrap();
|
||||
let base_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.base_asset_precision;
|
||||
|
|
@ -1933,11 +1945,13 @@ pub async fn query_sell_order(
|
|||
{
|
||||
let quote_asset_precision = exchange_info_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|ExchangeInfo| ExchangeInfo.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.quote_asset_precision;
|
||||
let trade_fee = trade_fee_vec
|
||||
.iter()
|
||||
// FIXME: find() should be position()
|
||||
.find(|TradeFee| TradeFee.symbol == order.symbol)
|
||||
.unwrap()
|
||||
.takercommission;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user