Add trend MACD spot strategy
This commit is contained in:
@@ -205,10 +205,10 @@ class BybitClient:
|
||||
return self.private_post("/v5/order/create", payload)
|
||||
|
||||
|
||||
def websocket_subscribe_message(symbols: list[str]) -> str:
|
||||
def websocket_subscribe_message(symbols: list[str], interval: str = "1") -> str:
|
||||
args: list[str] = []
|
||||
for symbol in symbols:
|
||||
args.extend([f"tickers.{symbol}", f"kline.1.{symbol}", f"orderbook.1.{symbol}"])
|
||||
args.extend([f"tickers.{symbol}", f"kline.{interval}.{symbol}", f"orderbook.1.{symbol}"])
|
||||
return json.dumps({"op": "subscribe", "args": args})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user