jessecooper / pyetrade

Python E-Trade API Wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTPError: 401 Client Error: Unauthorized for url: https://apisb.etrade.com/v1/accounts/list.json

spanchan opened this issue · comments

Sandbox env worked well and when switched production keys, get the error

HTTPError: 401 Client Error: Unauthorized for url: https://apisb.etrade.com/v1/accounts/list.json

Is there setting or call that will switch dev to false?

Thanks for the work on pyetrade!

I see. I can see param dev being passed in the accounts method in unit tests but not exposed?

In 1.2 the dev arg has been moved from the method level to the class init.
https://github.com/jessecooper/pyetrade/blob/master/pyetrade/accounts.py#L24

Thanks Jesse.