Skip to content

Commit

Permalink
Bybit: funding display corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
evgrmn committed Jun 14, 2024
1 parent c9ae099 commit 75d1172
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def transaction(self: Markets, row: dict, info: str = "") -> None:
calc = Function.calculate(
self,
symbol=row["symbol"],
price=row["price"],
price=row["lastPx"],
qty=float(self.robots[emi]["POS"]),
rate=row["commission"],
fund=0,
Expand All @@ -327,7 +327,7 @@ def transaction(self: Markets, row: dict, info: str = "") -> None:
"Fund",
self.robots[emi]["POS"],
0,
row["price"],
row["lastPx"],
0,
row["price"],
calc["sumreal"],
Expand All @@ -349,7 +349,7 @@ def transaction(self: Markets, row: dict, info: str = "") -> None:
calc = Function.calculate(
self,
symbol=row["symbol"],
price=row["price"],
price=row["lastPx"],
qty=float(diff),
rate=row["commission"],
fund=0,
Expand Down Expand Up @@ -378,7 +378,7 @@ def transaction(self: Markets, row: dict, info: str = "") -> None:
"Fund",
diff,
0,
row["price"],
row["lastPx"],
0,
row["price"],
calc["sumreal"],
Expand Down
4 changes: 2 additions & 2 deletions history.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Bybit 2000-06-14 09:11:31
Bitmex 2000-06-14 04:00:00
Bybit 2000-06-14 09:42:40
Bitmex 2000-06-14 09:41:22

0 comments on commit 75d1172

Please sign in to comment.