From 133d72b11145da165c927295eaa2f1a25dffde9e Mon Sep 17 00:00:00 2001 From: hamin Date: Thu, 4 Jun 2026 10:41:00 +0900 Subject: [PATCH] chore(codegen): regen endpoints from openapi spec Adds liquidation_stats endpoint and updates funding-rate symbols exchange parameter to optional (no longer requires a single exchange). Co-Authored-By: Claude Opus 4.7 --- datamaxi/_endpoints.py | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/datamaxi/_endpoints.py b/datamaxi/_endpoints.py index 63ba797..5d0ac7e 100644 --- a/datamaxi/_endpoints.py +++ b/datamaxi/_endpoints.py @@ -706,9 +706,9 @@ "group": "funding_rate", "params": { "exchange": { - "required": True, + "required": False, "type": "str", - "description": "Specifies exchange name", + "description": "Specifies exchange name. Omit to receive symbols for all exchanges; constrain to a single exchange when filtering.", }, }, }, @@ -852,6 +852,33 @@ }, }, }, + "liquidation_stats": { + "path": "/api/v1/liquidation/stats", + "method": "GET", + "tag": "liquidation", + "summary": "Liquidation KPI stats", + "requires_auth": True, + "group": "liquidation", + "params": { + "window": { + "required": False, + "type": "str", + "default": "1h", + "enum": ["1h", "4h", "24h"], + "description": "Rolling window", + }, + "exchange": { + "required": False, + "type": "str", + "description": "Exchange filter", + }, + "minVolumeUsd": { + "required": False, + "type": "float", + "description": "Minimum VolumeUsd filter", + }, + }, + }, "liquidation_symbol_history": { "path": "/api/v1/liquidation/symbol-history", "method": "GET",