From b8fe8668260006772d87aa2d3d3ec73f889517a4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 16 Dec 2025 16:15:30 -0500 Subject: [PATCH] binance: handle new `TRADIFI_PERPETUAL`.. --- piker/brokers/binance/venues.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/piker/brokers/binance/venues.py b/piker/brokers/binance/venues.py index 23995c21..3c55c5e1 100644 --- a/piker/brokers/binance/venues.py +++ b/piker/brokers/binance/venues.py @@ -220,7 +220,10 @@ class FutesPair(Pair): assert pair == self.pair # sanity return f'{expiry}' - case 'PERPETUAL': + case ( + 'PERPETUAL' + | 'TRADIFI_PERPETUAL' + ): return 'PERP' case '': @@ -249,7 +252,10 @@ class FutesPair(Pair): margin: str = self.marginAsset match ctype: - case 'PERPETUAL': + case ( + 'PERPETUAL' + | 'TRADIFI_PERPETUAL' + ): return f'{margin}M' case (