Skip to content

Commit ac18521

Browse files
committed
_
1 parent 587f7d1 commit ac18521

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

v_exchanges/src/core.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,19 @@ pub trait MarketTrait {
4949
// Maybe [enum_dispatch](<https://docs.rs/enum_dispatch/latest/enum_dispatch/>) crate could help?
5050

5151
#[derive(Debug, Clone, Copy)]
52-
pub enum Market {
52+
pub enum AbsMarket {
5353
Binance(crate::binance::Market),
5454
Bybit(crate::bybit::Market),
5555
//TODO
5656
}
57+
//impl AbsMarket {
58+
// pub fn inner(&self) -> &dyn MarketTrait {
59+
// match self {
60+
// Market::Binance(m) => m,
61+
// Market::Bybit(m) => m,
62+
// }
63+
// }
64+
//}
5765
//impl Market {
5866
// pub fn client(&self) -> Box<dyn Exchange<M = dyn Market>> {
5967
// match self {

0 commit comments

Comments
 (0)