Skip to content

Commit

Permalink
1.3.7.post2
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Oct 5, 2023
1 parent abff4aa commit 5fae85a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 1.3.7.post2 - 2023-10-05
### Fix
* Fix: Refine exception handling when deleting a grid of orders, one of which is partially filled

### Update
* Up requirements for exchanges-wrapper==1.3.7.post3

## 1.3.7.post1 - 2023-09-30
### Fix
* Sonarcloud issues
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__ = "1.3.7.post2.dev3"
__version__ = "1.3.7.post2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down
27 changes: 13 additions & 14 deletions martin_binance/client.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__ = "1.3.4rc4"
__version__ = "1.3.7.post2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

Expand Down Expand Up @@ -36,20 +36,19 @@ def __init__(self, channel_options, account_name, rate_limiter):
self.trade_id = shortuuid.uuid()

async def get_client(self):
if not self.wait_connection:
self.wait_connection = True
client = None
while client is None:
try:
client = await self.connect()
except UserWarning:
client = None
else:
self.wait_connection = False
self.client = client
return True
else:
if self.wait_connection:
return False
self.wait_connection = True
client = None
while client is None:
try:
client = await self.connect()
except UserWarning:
client = None
else:
self.wait_connection = False
self.client = client
return True

async def connect(self):
try:
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__ = "1.3.7.post2.dev2"
__version__ = "1.3.7.post2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = 'https://github.com/DogsTailFarmer'
##################################################################
Expand Down
2 changes: 1 addition & 1 deletion 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__ = "1.3.7.post2.dev3"
__version__ = "1.3.7.post2"
__maintainer__ = "Jerry Fedorenko"
__contact__ = "https://github.com/DogsTailFarmer"

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.3.7.post2",
"exchanges-wrapper==1.3.7.post3",
"margin-strategy-sdk==0.0.11",
"jsonpickle==3.0.2",
"psutil==5.9.5",
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.3.7.post2
exchanges-wrapper==1.3.7.post3
margin-strategy-sdk==0.0.11
jsonpickle==3.0.2
psutil==5.9.5
Expand Down

0 comments on commit 5fae85a

Please sign in to comment.