Skip to content

Commit

Permalink
Merge branch 'development' into feat/oracle_on_arb_xemm
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-en authored Apr 1, 2021
2 parents 68334c1 + 6ccb628 commit 03dc1c5
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 03dc1c5

Please sign in to comment.