Skip to content

Commit

Permalink
[Kucoin] enable ALLOW_TRADES_FROM_CLOSED_ORDERS
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume De Saint Martin authored and GuillaumeDSM committed Feb 15, 2023
1 parent 5fc7bd5 commit 49e01cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Trading/Exchange/kucoin/kucoin_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class Kucoin(exchanges.RestExchange):
FUTURES_CCXT_CLASS_NAME = "kucoinfutures"
MAX_INCREASED_POSITION_QUANTITY_MULTIPLIER = decimal.Decimal("0.95")

# get_my_recent_trades only covers the last 24h on kucoin
ALLOW_TRADES_FROM_CLOSED_ORDERS = True # set True when get_my_recent_trades should use get_closed_orders

# order that should be self-managed by OctoBot
# can be overridden locally to match exchange support
UNSUPPORTED_ORDERS = [
Expand Down Expand Up @@ -157,7 +160,7 @@ async def get_balance(self, **kwargs: dict):
Margin and leverage
"""

async def set_symbol_leverage(self, symbol: str, leverage: int, **kwargs):
async def set_symbol_leverage(self, symbol: str, leverage: float, **kwargs):
"""
Set the symbol leverage
:param symbol: the symbol
Expand Down

0 comments on commit 49e01cc

Please sign in to comment.