Skip to content

Commit

Permalink
Merge pull request #441 from mraniki/dev
Browse files Browse the repository at this point in the history
⬆️ 🤖 - You look like a million dollars  All green and wrinkled
  • Loading branch information
mraniki authored Apr 11, 2024
2 parents bb6a975 + b6cc807 commit 63bcfdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cefi/handler/capitalcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,9 @@ async def get_account_pnl(self, period=None):
formatted_end_date = end_date.strftime("%Y-%m-%dT%H:%M:%S")
logger.debug("{} {}", start_date, formatted_end_date)
# history = self.client.account_activity_history(
# fr=start_date, to=formatted_end_date, detailed=True, type="TRADE"
# fr=start_date, to=formatted_end_date, detailed=True
# )
# logger.debug("History: {}", history)
# no pnl info available via openapi endpoint
return 0

Expand Down
3 changes: 3 additions & 0 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ async def main():
order = await cex.submit_order(order)
print("order ", order)

# pnl = await cex.get_pnls()
# print("pnl ", pnl)


if __name__ == "__main__":
asyncio.run(main())

0 comments on commit 63bcfdf

Please sign in to comment.