Skip to content

Commit

Permalink
Merge pull request hummingbot#3135 from CoinAlpha/cleanup/pass_correc…
Browse files Browse the repository at this point in the history
…t_argument_to_binance_perp_funding_payment_function

[v0.38] (fix) fix binance perp funding payment function
  • Loading branch information
dennisocana authored Apr 1, 2021
2 parents 809ad21 + 91f0e0f commit 6ccb628
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ async def _user_stream_event_listener(self):
update_data = event_message.get("a", {})
event_reason = update_data.get("m", {})
if event_reason == "FUNDING_FEE":
await self.get_funding_payment(event_message.get("E", int(time.time())))
await self.get_funding_payment()
else:
# update balances
for asset in update_data.get("B", []):
Expand Down Expand Up @@ -933,7 +933,7 @@ async def get_funding_payment(self):
funding_payment_tasks = []
for pair in self._trading_pairs:
funding_payment_tasks.append(self.request(path="/fapi/v1/income",
params={"symbol": convert_to_exchange_trading_pair(pair), "incomeType": "FUNDING_FEE", "limit": 1},
params={"symbol": convert_to_exchange_trading_pair(pair), "incomeType": "FUNDING_FEE", "limit": len(self._account_positions)},
method=MethodType.POST,
add_timestamp=True,
is_signed=True))
Expand Down

0 comments on commit 6ccb628

Please sign in to comment.