etrade-api

Having Issues with the E*Trade OAuth API (Java)

半城伤御伤魂 提交于 2019-12-12 04:09:29
问题 I'm trying to code a program that will trade stocks in a sandbox environment with the E*Trade API. I am using their sample code as a guideline and currently am getting an issue with the .getAuthorizeURL() method. It says that it is undefined for type String however, after decompiling the OAuth jar I am stuck in a rut about how to solve this issue. import com.etrade.etws.account.Account; import com.etrade.etws.account.AccountListResponse; import com.etrade.etws.oauth.sdk.client.IOAuthClient;

headers and oauth in get_quote for E*Trade API using Python3

北慕城南 提交于 2019-12-12 04:02:36
问题 After authorizing my application, I request an access token by passing the oauth credentials through the header. The signature and headers are generated through this code; API_module = 'oauth' API_RESTful = 'access_token' if renewal: API_RESTful = 'renew_access_token' production_url = 'https://etws.etrade.com/{0:s}/{1:s}'.format(API_module, API_RESTful) oauth_timestamp = int(time.time()) rand_str = lambda n: ''.join([random.choice(string.hexdigits) for i in range(n)]) oauth_nonce = rand_str

Getting an oauth request token from etrade in Python

好久不见. 提交于 2019-12-07 09:40:55
问题 I'm trying to get an oauth request token from the etrade api (sandbox) in Python with this thing: import requests from oauthlib.oauth1 import Client consumer_key = 'foo' # actual key used consumer_secret = 'bar' # actual secret used request_url = 'https://etwssandbox.etrade.com/oauth/sandbox/request_token' client = Client(consumer_key, client_secret = consumer_secret) uri, headers, body = client.sign(request_url) add_params = ', realm="", oauth_token= "", oauth_callback="oob"' headers[

Getting an oauth request token from etrade in Python

青春壹個敷衍的年華 提交于 2019-12-05 15:00:58
I'm trying to get an oauth request token from the etrade api (sandbox) in Python with this thing: import requests from oauthlib.oauth1 import Client consumer_key = 'foo' # actual key used consumer_secret = 'bar' # actual secret used request_url = 'https://etwssandbox.etrade.com/oauth/sandbox/request_token' client = Client(consumer_key, client_secret = consumer_secret) uri, headers, body = client.sign(request_url) add_params = ', realm="", oauth_token= "", oauth_callback="oob"' headers['Authorization'] += add_params r = requests.get(url = uri, headers = headers) print(r.text) # abbreviated resp

How do I use OAuth to connect to the Etrade API?

一个人想着一个人 提交于 2019-11-30 00:09:33
E-Trade released their API recently and provided technical documentation which is somewhat useful but not complete . Does anyone have a fully working example in C# that shows how this works? I have been able to do the authentication using OAuth correctly, but when it comes to getting information out of my account or market data, the servers fail. I was able to connect using the DevDefined OAuth Library, but i had to make some tweeks to the source to get it to work properly. I forked the repo so you can download the src i used, and build you a .dll. Repo: GitHub Example Class: public abstract

How do I use OAuth to connect to the Etrade API?

流过昼夜 提交于 2019-11-28 21:09:42
问题 E-Trade released their API recently and provided technical documentation which is somewhat useful but not complete. Does anyone have a fully working example in C# that shows how this works? I have been able to do the authentication using OAuth correctly, but when it comes to getting information out of my account or market data, the servers fail. 回答1: I was able to connect using the DevDefined OAuth Library, but i had to make some tweeks to the source to get it to work properly. I forked the