Skip to content

Commit fa8a453

Browse files
committed
_
1 parent 0e14144 commit fa8a453

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

v_exchanges/src/core.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use color_eyre::eyre::{Error, Result};
33
use tokio::sync::mpsc;
44
use v_exchanges_adapters::traits::HandlerOptions;
55
use v_utils::trades::{Asset, Kline, Pair, Timeframe};
6+
use derive_more::{Deref, DerefMut};
67

78
//TODO!!!!!!!!!!!!!: klines switch to defining the range via an Enum over either limit either start and end times
89

@@ -33,8 +34,10 @@ pub struct Oi {
3334
pub timestamp: DateTime<Utc>,
3435
}
3536

36-
#[derive(Clone, Debug, Default)]
37+
#[derive(Clone, Debug, Default, Deref, DerefMut)]
3738
pub struct Klines {
39+
#[deref_mut]
40+
#[deref]
3841
pub v: Vec<Kline>,
3942
pub tf: Timeframe,
4043
/// Doesn't have to be synchronized with klines; each track has its own timestamps.

0 commit comments

Comments
 (0)