From e3518b5bc2725a815e444b6b7c98e3a984623da9 Mon Sep 17 00:00:00 2001 From: Guillaume De Saint Martin Date: Sun, 25 Aug 2024 17:24:37 +0200 Subject: [PATCH] [Binance] set SUPPORTS_CUSTOM_LIMIT_ORDER_BOOK_FETCH --- Trading/Exchange/binance/binance_exchange.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Trading/Exchange/binance/binance_exchange.py b/Trading/Exchange/binance/binance_exchange.py index 14a9ca660..ea581b5ae 100644 --- a/Trading/Exchange/binance/binance_exchange.py +++ b/Trading/Exchange/binance/binance_exchange.py @@ -37,6 +37,8 @@ class Binance(exchanges.RestExchange): SUPPORTS_SET_MARGIN_TYPE_ON_OPEN_POSITIONS = False # set False when the exchange refuses to change margin type # when an associated position is open # binance {"code":-4048,"msg":"Margin type cannot be changed if there exists position."} + # Set True when the "limit" param when fetching order books is taken into account + SUPPORTS_CUSTOM_LIMIT_ORDER_BOOK_FETCH = True # should be overridden locally to match exchange support SUPPORTED_ELEMENTS = {