rust #10
@ -2,10 +2,10 @@ use std::fmt::Display;
|
||||
use std::hash::{Hash, Hasher};
|
||||
|
||||
use chrono::{DateTime, TimeZone};
|
||||
use float_cmp::ApproxEq;
|
||||
|
||||
use crate::currency::SymbolPair;
|
||||
use crate::BoxError;
|
||||
use float_cmp::ApproxEq;
|
||||
|
||||
/***************
|
||||
* Prices
|
||||
@ -108,25 +108,19 @@ impl OrderBook {
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct ActiveOrder {
|
||||
pub id: i64,
|
||||
pub group_id: Option<i32>,
|
||||
pub client_id: i64,
|
||||
pub symbol: String,
|
||||
pub creation_timestamp: i64,
|
||||
pub update_timestamp: i64,
|
||||
pub amount: f64,
|
||||
pub amount_original: f64,
|
||||
pub order_type: String,
|
||||
pub previous_order_type: Option<String>,
|
||||
pub flags: Option<i32>,
|
||||
pub order_status: Option<String>,
|
||||
pub price: f64,
|
||||
pub price_avg: f64,
|
||||
pub price_trailing: Option<f64>,
|
||||
pub price_aux_limit: Option<f64>,
|
||||
pub notify: i32,
|
||||
pub hidden: i32,
|
||||
pub placed_id: Option<i32>,
|
||||
pub(crate) id: u64,
|
||||
pub(crate) group_id: Option<u64>,
|
||||
pub(crate) client_id: u64,
|
||||
pub(crate) symbol: SymbolPair,
|
||||
pub(crate) creation_timestamp: u64,
|
||||
pub(crate) update_timestamp: u64,
|
||||
pub(crate) amount: f64,
|
||||
pub(crate) amount_original: f64,
|
||||
pub(crate) order_type: OrderKind,
|
||||
pub(crate) previous_order_type: Option<OrderKind>,
|
||||
pub(crate) price: f64,
|
||||
pub(crate) price_avg: f64,
|
||||
pub(crate) hidden: bool,
|
||||
}
|
||||
|
||||
impl Hash for ActiveOrder {
|
||||
|
Loading…
Reference in New Issue
Block a user