Skip to content

Commit

Permalink
2.1.0rc19
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Jan 16, 2024
1 parent 096b8a4 commit 9cf242f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion martin_binance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "2.1.0rc18"
__version__ = "2.1.0rc19"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
7 changes: 5 additions & 2 deletions martin_binance/margin_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "2.1.0rc18"
__version__ = "2.1.0rc19"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down Expand Up @@ -696,7 +696,10 @@ def load_from_csv() -> []:
row_count = len(pd.read_csv(file_name, usecols=[0]).index)
with open(file_name, "r") as csvfile:
reader = csv.reader(csvfile)
[next(reader) for _ in range(row_count - TRADES_LIST_LIMIT)]
try:
[next(reader) for _ in range(row_count - TRADES_LIST_LIMIT)]
except StopIteration:
pass
for row in reader:
if row[0] in ('TRADE', 'TRADE_BY_MARKET'):
trade = {
Expand Down

0 comments on commit 9cf242f

Please sign in to comment.