mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
python: remove user channel type
This commit is contained in:
parent
068e6a70e7
commit
fccd670863
|
@ -9,7 +9,6 @@ class ChannelType(Enum):
|
||||||
BOOK = 'book'
|
BOOK = 'book'
|
||||||
TRADE = 'trade'
|
TRADE = 'trade'
|
||||||
TICKER = 'ticker'
|
TICKER = 'ticker'
|
||||||
USER = 'user'
|
|
||||||
KLINE = 'kline'
|
KLINE = 'kline'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -18,7 +17,6 @@ class ChannelType(Enum):
|
||||||
bbgo_pb2.Channel.BOOK: cls.BOOK,
|
bbgo_pb2.Channel.BOOK: cls.BOOK,
|
||||||
bbgo_pb2.Channel.TRADE: cls.TRADE,
|
bbgo_pb2.Channel.TRADE: cls.TRADE,
|
||||||
bbgo_pb2.Channel.TICKER: cls.TICKER,
|
bbgo_pb2.Channel.TICKER: cls.TICKER,
|
||||||
bbgo_pb2.Channel.USER: cls.USER,
|
|
||||||
bbgo_pb2.Channel.KLINE: cls.KLINE,
|
bbgo_pb2.Channel.KLINE: cls.KLINE,
|
||||||
}[obj]
|
}[obj]
|
||||||
|
|
||||||
|
@ -27,6 +25,5 @@ class ChannelType(Enum):
|
||||||
'book': bbgo_pb2.Channel.BOOK,
|
'book': bbgo_pb2.Channel.BOOK,
|
||||||
'trade': bbgo_pb2.Channel.TRADE,
|
'trade': bbgo_pb2.Channel.TRADE,
|
||||||
'ticker': bbgo_pb2.Channel.TICKER,
|
'ticker': bbgo_pb2.Channel.TICKER,
|
||||||
'user': bbgo_pb2.Channel.USER,
|
|
||||||
'kline': bbgo_pb2.Channel.KLINE,
|
'kline': bbgo_pb2.Channel.KLINE,
|
||||||
}[self.value]
|
}[self.value]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user