Add trend MACD spot strategy

This commit is contained in:
Codex
2026-06-21 09:15:38 +03:00
parent f19856ca6e
commit 8a211acf98
18 changed files with 593 additions and 81 deletions
+2 -2
View File
@@ -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})