From bf6dfad4a36d0be36798323e732c29b3e4490442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=82=8B=E3=81=BF?= Date: Wed, 13 Apr 2022 18:13:54 +0800 Subject: [PATCH] python: fix lint --- python/bbgo/data/depth.py | 8 +------- python/query_klines.py | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/python/bbgo/data/depth.py b/python/bbgo/data/depth.py index e3b30a559..5718ea2a2 100644 --- a/python/bbgo/data/depth.py +++ b/python/bbgo/data/depth.py @@ -6,12 +6,6 @@ import bbgo_pb2 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 @@ -39,4 +33,4 @@ class PriceVolume: return cls( price=float(obj.price), volume=float(obj.volume), - ) \ No newline at end of file + ) diff --git a/python/query_klines.py b/python/query_klines.py index f22d6d5c3..153a282da 100644 --- a/python/query_klines.py +++ b/python/query_klines.py @@ -1,6 +1,6 @@ import click import grpc -import bbgo_pb2 + import bbgo_pb2_grpc from bbgo import MarketService