Skip to content

Commit

Permalink
3.0.6.post1
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Apr 25, 2024
1 parent 839de60 commit bc0ca3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.6.post1 - 2024-04-xx
### Update
* `RATE_LIMITER` initial settings changed

## 3.0.6 - 2024-04-19
### Fix
* Unattended cancelling keepalive 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.6"
__version__ = "3.0.6.post1"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
6 changes: 3 additions & 3 deletions martin_binance/strategy_base.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__ = "3.0.6"
__version__ = "3.0.6.post1"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down Expand Up @@ -51,7 +51,7 @@

color_init()

RATE_LIMITER = HEARTBEAT * 5
RATE_LIMITER = HEARTBEAT * (60 if prm.GRID_ONLY else 10)
KLINES_LIM = 50 # Number of candles must be <= 1000
CANCEL_ALL_ORDERS = True # Ask about cancel all active orders before start strategy and par.LOAD_LAST_STATE = 0
TRADES_LIST_LIMIT = 50
Expand Down Expand Up @@ -1378,7 +1378,7 @@ async def buffered_orders(self):
log_level=logging.WARNING, color=Style.B_RED, tlg=True)
if status_code == Status.RESOURCE_EXHAUSTED:
# Decrease requests frequency
self.rate_limiter += HEARTBEAT
self.rate_limiter += HEARTBEAT * 5
self.message_log(f"RATE_LIMITER set to {self.rate_limiter}s", log_level=logging.WARNING)
await asyncio.sleep(ORDER_TIMEOUT)
try:
Expand Down

0 comments on commit bc0ca3c

Please sign in to comment.