Skip to content

Commit

Permalink
pandas bug fix and bug fix for ccxt decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesir committed Apr 29, 2023
1 parent d7fba0f commit 0b4c738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lumibot/brokers/ccxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import datetime
import logging
import traceback

# from asyncio import CancelledError
from datetime import timezone
from decimal import Decimal, getcontext
Expand Down Expand Up @@ -385,7 +386,7 @@ def _submit_order(self, order):

limits = market["limits"]
precision = market["precision"]
if self.api.exchangeId == "binance" or "kucoin":
if self.api.exchangeId == "binance" or self.api.exchangeId == "kucoin":
precision_amount = str(10 ** -precision["amount"])
else:
precision_amount = str(precision["amount"])
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def increment_version():

setuptools.setup(
name="lumibot",
version="2.5.6",
version="2.5.7",
author="Robert Grzesik",
author_email="rob@lumiwealth.com",
description="Backtesting and Trading Library, Made by Lumiwealth",
Expand All @@ -35,7 +35,7 @@ def increment_version():
"yfinance>=0.2.18",
"matplotlib>=3.3.3",
"quandl",
"pandas>=1.4.0",
"pandas>=1.4.0,<2.0.0", # pandas v2 currently causing issues with quant stats (v0.0.59)
"pandas_datareader",
"pandas_market_calendars>=4.1.2",
"plotly",
Expand Down

0 comments on commit 0b4c738

Please sign in to comment.