added chrono

This commit is contained in:
Giulio De Pasquale 2021-01-15 10:51:02 +00:00
parent c754708213
commit 50c961ec31
3 changed files with 5 additions and 2 deletions

1
rustybot/Cargo.lock generated
View File

@ -1128,6 +1128,7 @@ version = "0.1.0"
dependencies = [
"async-trait",
"bitfinex",
"chrono",
"dyn-clone",
"fern",
"futures-util",

View File

@ -16,3 +16,4 @@ regex = "1"
dyn-clone = "1"
log = "0.4"
fern = {version = "0.6", features = ["colored"]}
chrono = "0.4"

View File

@ -1,5 +1,6 @@
use crate::currency::SymbolPair;
use crate::BoxError;
use chrono::{DateTime, TimeZone};
use std::fmt::Display;
/***************
@ -64,7 +65,7 @@ pub enum OrderKind {
ExchangeIoc,
}
#[derive(Serialize, Clone)]
#[derive(Clone)]
pub struct OrderForm {
/// Order Type: LIMIT, EXCHANGE LIMIT, MARKET, EXCHANGE MARKET,
/// STOP, EXCHANGE STOP, STOP LIMIT, EXCHANGE STOP LIMIT,