Fix price parsing

This commit is contained in:
2022-11-02 19:04:05 +00:00
parent 1f75da40af
commit 48858bf20b
4 changed files with 20 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ class OANDAExchange(BaseExchange):
print("Positions", response)
for item in response["itemlist"]:
item["account"] = self.account.name
item["account_id"] = self.account_id
item["account_id"] = self.account.id
item["unrealized_pl"] = float(item["unrealized_pl"])
items.append(item)
return (True, items)