Skip to content

Commit

Permalink
3.0.0rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Mar 2, 2024
1 parent 5e4b64f commit 761e1d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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__ = "3.0.0rc1"
__version__ = "3.0.0rc2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
4 changes: 2 additions & 2 deletions martin_binance/backtest/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2024 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "3.0.0rc1"
__version__ = "3.0.0rc2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand All @@ -29,7 +29,7 @@


def notify_exception(*args):
pass
pass # Supress message from sys.excepthook


def any2str(_x) -> str:
Expand Down
12 changes: 6 additions & 6 deletions martin_binance/strategy_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import csv
import logging
import queue
import os
import random
import sqlite3
import time
Expand Down Expand Up @@ -1338,7 +1337,7 @@ async def buffered_orders(self):
diff_id.clear()
self.last_state = None
restore = False

except asyncio.CancelledError:
# print("buffered_orders.Cancelled")
self.operational_status = False
Expand Down Expand Up @@ -1633,11 +1632,10 @@ async def main(self, _symbol):
if restored:
loop.create_task(self.heartbeat(self.session))
loop.create_task(save_to_csv())
except (KeyboardInterrupt, SystemExit):
# noinspection PyProtectedMember, PyUnresolvedReferences
os._exit(1)
except SystemExit as e:
raise e

#
# region AbstractMethod
@abstractmethod
def restore_state_before_backtesting_ex(self, *args):
pass
Expand Down Expand Up @@ -1706,6 +1704,8 @@ def start(self, *args):
def init(self, *args, **kwargs):
pass

# endregion


async def save_to_csv() -> None:
"""
Expand Down

0 comments on commit 761e1d8

Please sign in to comment.