Closed freekeys closed 1 year ago
Hi! This is weird. My paper account is also empty and it returns an empty array just fine. It seems you are not getting any response from the server. Can you run the following code and see what happens?
import requests as rq
import easyib
ib = easyib.REST() # put URL argument if port is not 5000
response = rq.get(f"{ib.url}portfolio/{ib.id}/positions/0", verify=ib.ssl)
print(response.json())
cash = ib.get_cash()
print(cash)
Hi, I keep getting the error below when I try to get my portfolio. This is a new paper account with no portfolio in place yet, so I'd expect it to return an empty portfolio instead of an error? I've tried restarting ibeam and my server but the error persists. Other service calls work. Any ideas much appreciated! Thanks