Make account required for trade information

This commit is contained in:
2022-12-08 07:20:46 +00:00
parent 312ddb4dc1
commit 633894ae75
5 changed files with 15 additions and 7 deletions

View File

@@ -103,7 +103,10 @@ class OANDAExchange(BaseExchange):
def get_position_info(self, symbol):
r = positions.PositionDetails(self.account_id, symbol)
return self.call(r)
response = self.call(r)
response["account"] = self.account.name
response["account_id"] = self.account.id
return response
def get_all_positions(self):
items = []