added chrono
This commit is contained in:
parent
c754708213
commit
50c961ec31
1
rustybot/Cargo.lock
generated
1
rustybot/Cargo.lock
generated
@ -1128,6 +1128,7 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"bitfinex",
|
"bitfinex",
|
||||||
|
"chrono",
|
||||||
"dyn-clone",
|
"dyn-clone",
|
||||||
"fern",
|
"fern",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
@ -15,4 +15,5 @@ async-trait = "0.1"
|
|||||||
regex = "1"
|
regex = "1"
|
||||||
dyn-clone = "1"
|
dyn-clone = "1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
fern = {version = "0.6", features = ["colored"]}
|
fern = {version = "0.6", features = ["colored"]}
|
||||||
|
chrono = "0.4"
|
@ -1,5 +1,6 @@
|
|||||||
use crate::currency::SymbolPair;
|
use crate::currency::SymbolPair;
|
||||||
use crate::BoxError;
|
use crate::BoxError;
|
||||||
|
use chrono::{DateTime, TimeZone};
|
||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
||||||
/***************
|
/***************
|
||||||
@ -64,7 +65,7 @@ pub enum OrderKind {
|
|||||||
ExchangeIoc,
|
ExchangeIoc,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Clone)]
|
#[derive(Clone)]
|
||||||
pub struct OrderForm {
|
pub struct OrderForm {
|
||||||
/// Order Type: LIMIT, EXCHANGE LIMIT, MARKET, EXCHANGE MARKET,
|
/// Order Type: LIMIT, EXCHANGE LIMIT, MARKET, EXCHANGE MARKET,
|
||||||
/// STOP, EXCHANGE STOP, STOP LIMIT, EXCHANGE STOP LIMIT,
|
/// STOP, EXCHANGE STOP, STOP LIMIT, EXCHANGE STOP LIMIT,
|
||||||
|
Loading…
Reference in New Issue
Block a user