Skip to content

Commit

Permalink
python: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
narumiruna committed Apr 13, 2022
1 parent 7942558 commit bf6dfad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions python/bbgo/data/depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
from typing import List


# message Depth {
# string exchange = 1;
# string symbol = 2;
# repeated PriceVolume asks = 3;
# repeated PriceVolume bids = 4;
# }
@dataclass
class Depth:
exchange: str
Expand Down Expand Up @@ -39,4 +33,4 @@ def from_pb(cls, obj: bbgo_pb2.PriceVolume):
return cls(
price=float(obj.price),
volume=float(obj.volume),
)
)
2 changes: 1 addition & 1 deletion python/query_klines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import click
import grpc
import bbgo_pb2

import bbgo_pb2_grpc
from bbgo import MarketService

Expand Down

0 comments on commit bf6dfad

Please sign in to comment.