From df6071ae9ed06c5f4419da73ccf5669c6fb331d5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 15 Dec 2022 14:30:03 -0500 Subject: [PATCH 1/3] `binance`: more fields.. `SelfTradePreventMode`.. --- piker/brokers/binance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/brokers/binance.py b/piker/brokers/binance.py index 9bc5891f..5ae29d9e 100644 --- a/piker/brokers/binance.py +++ b/piker/brokers/binance.py @@ -107,6 +107,8 @@ class Pair(Struct, frozen=True): filters: list[dict[str, Union[str, int, float]]] permissions: list[str] + allowedSelfTradePreventionModes: list[str] + defaultSelfTradePreventionMode: str class OHLC(Struct): From db11c3c0f828d6b1b370b5c92a7c26ea844aca43 Mon Sep 17 00:00:00 2001 From: algorandpa Date: Sat, 17 Dec 2022 21:51:49 +0000 Subject: [PATCH 2/3] add config dir on pikerd startup --- piker/data/marketstore.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index 09bfd680..096c9745 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -132,7 +132,10 @@ def start_marketstore( mktsdir = os.path.join(config._config_dir, 'marketstore') - # create when dne + # create dirs when dne + if not os.path.isdir(config._config_dir): + os.mkdir(config._config_dir) + if not os.path.isdir(mktsdir): os.mkdir(mktsdir) From f5bcd1d91c2bab4a0cd7a85657d7ddf441465fb4 Mon Sep 17 00:00:00 2001 From: algorandpa Date: Sat, 17 Dec 2022 21:53:57 +0000 Subject: [PATCH 3/3] remove binance additions --- piker/brokers/binance.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/piker/brokers/binance.py b/piker/brokers/binance.py index 5ae29d9e..9bc5891f 100644 --- a/piker/brokers/binance.py +++ b/piker/brokers/binance.py @@ -107,8 +107,6 @@ class Pair(Struct, frozen=True): filters: list[dict[str, Union[str, int, float]]] permissions: list[str] - allowedSelfTradePreventionModes: list[str] - defaultSelfTradePreventionMode: str class OHLC(Struct):