Skip to content

Commit

Permalink
Merge pull request #851 from Drakkar-Software/dev
Browse files Browse the repository at this point in the history
Master merge
  • Loading branch information
GuillaumeDSM authored Feb 16, 2023
2 parents 6518a5c + 49e01cc commit c4f4912
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 c4f4912

Please sign in to comment.