Skip to content

Commit

Permalink
2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Dec 8, 2023
1 parent 2ea1cc7 commit 1e53f8f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
## 2.0.4 - 2023-12-xx
## 2.0.4 - 2023-12-08
### Update
* `funds_rate_exporter.py`: average CPU load present as percent value at 1 minute period
* `solve()`, `calc_grid()`: use [scipy.optimize.minimize](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html#scipy-optimize-minimize)
for calculation Reverse cycle over price
* optimize CPU loads at last_state_update()
* convert_tp(): clear start_hold state and initialize restore grid orders
* convert_tp(): clear start_hold state and initialize restore grid orders
* Up requirements for exchanges-wrapper==1.4.1

## 2.0.3 - 2023-12-01
### Fix
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__ = "2.0.4b5"
__version__ = "2.0.4"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
2 changes: 1 addition & 1 deletion martin_binance/executor.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.0.4b5"
__version__ = "2.0.4"
__maintainer__ = "Jerry Fedorenko"
__contact__ = 'https://github.com/DogsTailFarmer'
##################################################################
Expand Down
6 changes: 2 additions & 4 deletions martin_binance/service/funds_rate_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__author__ = "Jerry Fedorenko"
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM"
__license__ = "MIT"
__version__ = "2.0.4b2"
__version__ = "2.0.4"
__maintainer__ = "Jerry Fedorenko"
__contact__ = 'https://github.com/DogsTailFarmer'

Expand Down Expand Up @@ -123,7 +123,6 @@ def get_rate(_currency_rate) -> {}:
for currency in _currency_rate:
_currency = replace.get(currency, currency)
price = -1
'''
parameters = {'amount': 1, 'symbol': 'USD', 'convert': _currency}
try:
response = session.get(URL, params=parameters)
Expand All @@ -140,9 +139,8 @@ def get_rate(_currency_rate) -> {}:
if response.status_code == 200:
data = response.json()
price = data['data'][0]['quote'][_currency]['price'] or -1
'''
_currency_rate[currency] = price
# time.sleep(request_delay)
time.sleep(request_delay)
return _currency_rate


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.8"

dependencies = [
"exchanges-wrapper==1.4.0",
"exchanges-wrapper==1.4.1",
"margin-strategy-sdk==0.0.11",
"jsonpickle==3.0.2",
"psutil==5.9.6",
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==1.4.0
exchanges-wrapper==1.4.1
margin-strategy-sdk==0.0.11
jsonpickle==3.0.2
psutil==5.9.6
Expand Down

0 comments on commit 1e53f8f

Please sign in to comment.