From 74c88f77c0e1ad0a9cc3cf338a4ade898dc61691 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 25 Jan 2026 10:49:50 +0100 Subject: [PATCH] test: allow maxNotional to be None --- tests/exchange_online/test_ccxt_compat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/exchange_online/test_ccxt_compat.py b/tests/exchange_online/test_ccxt_compat.py index 10ca5d730..b0161cbf2 100644 --- a/tests/exchange_online/test_ccxt_compat.py +++ b/tests/exchange_online/test_ccxt_compat.py @@ -517,12 +517,13 @@ class TestCCXTExchange: for tier in pair_tiers: for key in ["maintenanceMarginRate", "minNotional", "maxNotional", "maxLeverage"]: assert key in tier - assert tier[key] >= 0.0 - assert tier["maxNotional"] > tier["minNotional"] + # maxNotional can be None (no limit) + assert tier[key] is None or tier[key] >= 0.0 + assert tier["maxNotional"] is None or tier["maxNotional"] > tier["minNotional"] assert tier["maxLeverage"] <= oldLeverage assert tier["maintenanceMarginRate"] >= oldMaintenanceMarginRate assert tier["minNotional"] > oldminNotional - assert tier["maxNotional"] > oldmaxNotional + assert tier["maxNotional"] is None or tier["maxNotional"] > oldmaxNotional oldLeverage = tier["maxLeverage"] oldMaintenanceMarginRate = tier["maintenanceMarginRate"] oldminNotional = tier["minNotional"]