Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DogsTailFarmer committed Feb 4, 2023
1 parent de5b7dc commit 1f31eb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## v1.2.9-2 - 2023-01-xx
## v1.2.9-2 - 2023-02-04
### Fixed
* Fix DogsTailFarmer/martin-binance#50

### Update
* Remove unnecessary shebang

Expand Down
17 changes: 1 addition & 16 deletions exchanges_wrapper/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,25 +812,11 @@ async def fetch_order( # lgtm [py/similar-function]
params["origClientOrderId"] = origin_client_order_id
if receive_window:
params["recvWindow"] = receive_window
res = await self.http.send_api_call(
binance_res = await self.http.send_api_call(
"/api/v3/order",
params=params,
signed=True,
)
binance_res = {
"symbol": res.get('symbol'),
"orderId": res.get('orderId'),
"orderListId": res.get('orderListId'),
"clientOrderId": res.get('clientOrderId'),
"price": res.get('price'),
"origQty": res.get('origQty'),
"executedQty": res.get('executedQty'),
"cummulativeQuoteQty": res.get('cummulativeQuoteQty'),
"status": res.get('status'),
"timeInForce": res.get('timeInForce'),
"type": res.get('type'),
"side": res.get('side'),
}
elif self.exchange == 'bitfinex':
params = {'id': [order_id]}
res = await self.http.send_api_call(
Expand All @@ -846,7 +832,6 @@ async def fetch_order( # lgtm [py/similar-function]
signed=True,
**params
)
logger.debug(f"fetch_order(closed).res: {res}")
if res:
binance_res = bfx.order(res[0], response_type=response_type)
elif self.exchange == 'huobi':
Expand Down

0 comments on commit 1f31eb3

Please sign in to comment.