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