-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
def get_cash_funds(self):
"""
Get cash funds info from server
"""
Degiro:changed it from Value 5 to 6
update_url = '{trading_url}v5/update/'.format(trading_url=self.trading_url)
res = self.session.get(
"{update_url}{account_id};""jsessionid={jsession_id}".format(
update_url=update_url,
account_id=self.account_no,
jsession_id=self.session_id),
params={'cashFunds': 0})
if res.status_code == requests.codes.ok or res.status_code == 201:
return res.json()['cashFunds']['value']**[6]**['value'][2]['value'] #return EUR
else:
print("Get Cash Funds Error: ", res.status_code)
And the example is setorder(account,order)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels