The E*TRADE Developer Platform enables E*TRADE customers and developers to create their own investment applications that leverage E*TRADE's extensive market data offerings, order-routing capabilities, and other services.
Questions tagged [etrade-api]
50 questions
25
votes
5 answers
How do I use OAuth to connect to the Etrade API?
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…

Maher
- 481
- 1
- 6
- 12
6
votes
2 answers
Getting an oauth request token from etrade
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…

ethann
- 199
- 3
- 10
4
votes
1 answer
How to generate oauth1 signature for access token in javascript?
I am one the final piece of an etrade oauth integration- (i.e. sending the GET request for access token.) This oauth is taking place in the meteor.js environment so all code is written in javascript.
Currently I am getting a 401 error -…

Alex P
- 407
- 6
- 15
3
votes
1 answer
Configuring ETrade PHP API OAuth
I'm trying to set up the ETrade PHP API...
In the sandbox configuration I set my ETWS_APP_KEY and ETWS_APP_SECRET with the keys ETrade Provided.
What do I set for the OAUTH information shown below? I'm confused.. do I leave these blank or where do I…

cpcdev
- 1,130
- 3
- 18
- 45
3
votes
1 answer
Warning: fgets() expects parameter 1 to be resource, string given in
I am somewhat new to php, but I do understand some of the key concepts of it, however nothing about STDIN, what it is and why I am getting this error.
I am developing with the eTrade API PHP SDK and the development community over there seems to be a…

Bruce
- 107
- 1
- 3
- 8
2
votes
1 answer
Pyetrade / Etrade API for option-chains function only returns options for apple?
I'm trying to get some option chains using the pyetrade package. I'm working in Sandbox mode for a newly made Etrade account.
When I execute the following code, it executes fine, but the returned information is incorrect: I keep getting options for…

Vee Kalkunte
- 23
- 2
2
votes
3 answers
E*Trade API frequently returns HTTP 401 Unauthorized when fetching an access token but not always
Summary
I have written a simple C# .NET Core application to authenticate against the E*Trade API using OAuthv1 with the intention of fetching stock quotes. I am able to authenticate and get a request token, redirect to the authorization page and…

CAS
- 125
- 1
- 9
2
votes
3 answers
ETrade API unattended authentication
Background
The ETrade authentication system has me creating a RequestToken, then executing an Authorization URL, which opens an ETrade page.
The user logs in to authorize the activity on their account.
They receive a pin, which they enter in my…

BWhite
- 713
- 1
- 7
- 24
2
votes
1 answer
E*Trade API Streaming with CometD
I have been using a .net library to create an oauth session, and submit, modify and cancel orders using the ETRADE api. Now I need to listen for account & order events. As per the ETRADE API documentation, they use CometD & long poling. I did find a…

Jimmy
- 5,131
- 9
- 55
- 81
2
votes
1 answer
Why is the Etrade API returning a missing parameters error?
I have successively obtained a request token, and am now using it in conjunction with my consumer key to create the following request
https://us.etrade.com/e/etws/authorize?key=2fc*******c323d6&token=IIrs6BsIrGQ********duC60GAmLq8
where the…

almel
- 7,178
- 13
- 45
- 58
2
votes
1 answer
What is wrong with my ETrade OAuth get token request?
The server is responding with a less than helpful message.
Unable to get a request token: Request for…

Chloe
- 25,162
- 40
- 190
- 357
1
vote
1 answer
quote query fails in eTrade api
I am getting protocol error on following url for quote query. What is wrong here in the url?
*/market/rest/quote/GOOG:2012:2:18:CALL:400?detailFlag=OPTIONS
Any help would be much appreciated.
Thx.

kuhajeyan
- 10,727
- 10
- 46
- 71
1
vote
0 answers
eTrade API - Downloaded Sample Error: onnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
I hope someone can give me a hand here. I am new to python programming, and I downloaded the eTrade API sample and trying to get it to run and I am getting this error. I have alos tried this in C# and VB.NET with no luck.
Exception has occurred:…

paris_tj
- 13
- 4
1
vote
1 answer
Use Etrade API's query parameters returns unauthorized (401)
I cannot understand how to properly use the query parameters using Etrade's production API. Regardless of the query parameter used, the response is always unauthorized. Here's the documentation relevant to this example. Most of the code is taken…

Riley Finn
- 918
- 1
- 7
- 19
1
vote
0 answers
Etrade API Oauth 1.0 flow fails with invalid oauth_signature
I would like to authenticate against the Etrade API using Go and Postman. I am following the official Etrade API Developer Docs:
I successfully completed the Oauth 1.0 flow using the Python example they provided (with some slight modifications to…

nmurthy
- 1,337
- 1
- 12
- 24