Make account required for trade information
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user