From 75d1d007fb805a86a98a0c50fc0735b8857b55cd Mon Sep 17 00:00:00 2001 From: Nelson Torres Date: Fri, 15 Nov 2024 14:41:47 -0300 Subject: [PATCH] move constants to venue --- piker/brokers/deribit/api.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/piker/brokers/deribit/api.py b/piker/brokers/deribit/api.py index f998954a..05b025f1 100644 --- a/piker/brokers/deribit/api.py +++ b/piker/brokers/deribit/api.py @@ -58,6 +58,7 @@ from cryptofeed.symbols import Symbol # types for managing the cb callbacks. # from cryptofeed.types import L1Book from .venues import ( + _ws_url, MarketType, PAIRTYPES, Pair, @@ -95,11 +96,6 @@ _spawn_kwargs = { } -_url = 'https://www.deribit.com' -_ws_url = 'wss://www.deribit.com/ws/api/v2' -_testnet_ws_url = 'wss://test.deribit.com/ws/api/v2' - - # convert datetime obj timestamp to unixtime in milliseconds def deribit_timestamp(when): return int((when.timestamp() * 1000) + (when.microsecond / 1000))