|
|
@@ -9,7 +9,7 @@ use rust_decimal_macros::dec;
|
|
|
use serde_json::{json};
|
|
|
use futures::stream::FuturesUnordered;
|
|
|
use futures::{TryStreamExt};
|
|
|
-use tracing::{error, info};
|
|
|
+use tracing::{error, debug};
|
|
|
use crate::{Platform, ExchangeEnum, Account, Position, Ticker, Market, Order, OrderCommand, PositionModeEnum};
|
|
|
use exchanges::gate_swap_rest::GateSwapRest;
|
|
|
|
|
|
@@ -454,8 +454,8 @@ pub fn format_position_item(position: &serde_json::Value, amount_size: Decimal)
|
|
|
}
|
|
|
|
|
|
pub fn format_order_item(order: serde_json::Value, amount_size: Decimal) -> Order {
|
|
|
- info!("format-order-start, gate_swap");
|
|
|
- info!(?order);
|
|
|
+ debug!("format-order-start, gate_swap");
|
|
|
+ debug!(?order);
|
|
|
let status = order["status"].as_str().unwrap_or("");
|
|
|
let text = order["text"].as_str().unwrap_or("");
|
|
|
let size = Decimal::from_str(&order["size"].to_string()).unwrap();
|
|
|
@@ -474,7 +474,7 @@ pub fn format_order_item(order: serde_json::Value, amount_size: Decimal) -> Orde
|
|
|
status: custom_status,
|
|
|
order_type: "limit".to_string(),
|
|
|
};
|
|
|
- info!(?rst_order);
|
|
|
- info!("format-order-end, gate_swap");
|
|
|
+ debug!(?rst_order);
|
|
|
+ debug!("format-order-end, gate_swap");
|
|
|
return rst_order;
|
|
|
}
|