Skip to content

Commit

Permalink
3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Apr 16, 2024
1 parent a35a9b7 commit 0d5549b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.0.5 - 2024-04-16
### Update
* Up requirements for exchanges-wrapper==2.1.10
* Import from `params` module
* Some issues `Mismatch between signature and use of an overridden method`

## 3.0.4 - 2024-04-14
### Fix
* Creating and manage asynchronous tasks
Expand Down
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.4"
__version__ = "3.0.5"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
3 changes: 1 addition & 2 deletions martin_binance/backtest/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2024 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "3.0.4"
__version__ = "3.0.5"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"


import asyncio
import importlib.util as iu
import logging.handlers
import stat
Expand Down
7 changes: 4 additions & 3 deletions martin_binance/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "3.0.3"
__version__ = "3.0.5"
__maintainer__ = "Jerry Fedorenko"
__contact__ = 'https://github.com/DogsTailFarmer'
##################################################################
import logging
import sys
import gc
import statistics
import traceback
from decimal import ROUND_HALF_EVEN, ROUND_FLOOR, ROUND_CEILING, ROUND_HALF_DOWN, ROUND_HALF_UP
from decimal import Decimal, ROUND_HALF_EVEN, ROUND_FLOOR, ROUND_CEILING, ROUND_HALF_DOWN, ROUND_HALF_UP
from threading import Thread
import queue
import math
Expand Down Expand Up @@ -132,7 +133,7 @@ def __init__(self, call_super=True):
schedule.every(10).seconds.do(self.event_get_command_tlg)
schedule.every(6).seconds.do(self.event_report)

def init(self, check_funds=True) -> None: # skipcq: PYL-W0221
def init(self, check_funds=True) -> None:
self.message_log('Start Init section')
if COLLECT_ASSETS and GRID_ONLY:
init_params_error = 'COLLECT_ASSETS and GRID_ONLY: one only allowed'
Expand Down
15 changes: 14 additions & 1 deletion martin_binance/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,27 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "3.0.1"
__version__ = "3.0.5"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

import logging
from decimal import Decimal
from pathlib import Path

__all__ = [
'SYMBOL', 'EXCHANGE', 'ID_EXCHANGE', 'FEE_MAKER', 'FEE_TAKER', 'FEE_FIRST', 'FEE_SECOND', 'GRID_MAX_COUNT',
'START_ON_BUY', 'AMOUNT_FIRST', 'USE_ALL_FUND', 'AMOUNT_SECOND', 'PRICE_SHIFT', 'PRICE_LIMIT_RULES',
'ROUND_BASE', 'ROUND_QUOTE', 'PROFIT', 'PROFIT_MAX', 'OVER_PRICE', 'ORDER_Q', 'MARTIN', 'SHIFT_GRID_DELAY',
'GRID_UPDATE_INTERVAL', 'STATUS_DELAY', 'GRID_ONLY', 'LOG_LEVEL', 'HOLD_TP_ORDER_TIMEOUT', 'COLLECT_ASSETS',
'GRID_ONLY_DELAY', 'ADAPTIVE_TRADE_CONDITION', 'BB_CANDLE_SIZE_IN_MINUTES', 'BB_NUMBER_OF_CANDLES', 'KBB',
'LINEAR_GRID_K', 'ADX_CANDLE_SIZE_IN_MINUTES', 'ADX_NUMBER_OF_CANDLES', 'ADX_PERIOD', 'ADX_THRESHOLD',
'ADX_PRICE_THRESHOLD', 'REVERSE', 'REVERSE_TARGET_AMOUNT', 'REVERSE_INIT_AMOUNT', 'REVERSE_STOP',
'HEAD_VERSION', 'LOAD_LAST_STATE', 'LAST_STATE_FILE', 'VPS_NAME', 'PARAMS', 'TELEGRAM_URL', 'TOKEN',
'CHANNEL_ID', 'STOP_TLG', 'INLINE_BOT', 'MODE', 'XTIME', 'SAVE_DS', 'SAVE_PERIOD', 'LOGGING', 'SELF_OPTIMIZATION',
'N_TRIALS', 'SESSION_RESULT'
]

SYMBOL = str()
EXCHANGE = ()
# Exchange setup
Expand Down
8 changes: 4 additions & 4 deletions martin_binance/strategy_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ async def main(self, _symbol):
)
[self.trades.append(PrivateTrade(trade)) for trade in load_from_csv()]
#
self.restore_strategy_state(last_state, restore=False)
self.restore_strategy_state(strategy_state=last_state, restore=False)
#
self.init(check_funds=False)
else:
Expand Down Expand Up @@ -1716,23 +1716,23 @@ def get_sum_profit(self):
raise NotImplementedError

@abstractmethod
def get_free_assets(self, *args, **kwargs):
def get_free_assets(self, **kwargs):
raise NotImplementedError

@abstractmethod
def on_new_order_book(self, *args):
raise NotImplementedError

@abstractmethod
def restore_strategy_state(self, *args, **kwargs):
def restore_strategy_state(self, **kwargs):
raise NotImplementedError

@abstractmethod
def start(self, *args):
raise NotImplementedError

@abstractmethod
def init(self, *args, **kwargs):
def init(self, **kwargs):
raise NotImplementedError

@abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dynamic = ["version", "description"]
requires-python = ">=3.9"

dependencies = [
"exchanges-wrapper==2.1.9",
"exchanges-wrapper==2.1.10",
"jsonpickle==3.0.2",
"psutil==5.9.6",
"requests==2.31.0",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exchanges-wrapper==2.1.9
exchanges-wrapper==2.1.10
jsonpickle==3.0.2
psutil==5.9.6
requests==2.31.0
Expand Down

0 comments on commit 0d5549b

Please sign in to comment.