Questions tagged [etrade-api]

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.

43 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
  • 471
  • 1
  • 6
  • 12
6
votes
2 answers

Getting an oauth request token from etrade in Python

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
  • 189
  • 2
  • 10
3
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
  • 357
  • 3
  • 14
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,058
  • 3
  • 15
  • 38
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
2 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
  • 533
  • 4
  • 19
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
  • 4,610
  • 8
  • 51
  • 71
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
  • 5,614
  • 10
  • 36
  • 52
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
  • 21,167
  • 37
  • 143
  • 289
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
  • 9,602
  • 8
  • 40
  • 66
1
vote
2 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
  • 75
  • 7
1
vote
1 answer

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

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…
jsfa11
  • 394
  • 4
  • 18
1
vote
1 answer

generating oauth_signature for ETrade API using Python

The E*Trade API allows you to use RESTful to log on to the site and manipulate an account or retrieve quote information. Though I am having trouble generating an oauth_signature that matches their "practice problem" located toward the bottom of…
jsfa11
  • 394
  • 4
  • 18
1
vote
1 answer

Unknown SSL protocol error in connection to etws.etrade.com:443

I am trying to connect to the eTrade API which uses OAuth. I am trying to request a token. The domain I am trying to connect with has an SSL certificate. The connection uses TLS 1.2. The connection is encrypted and authenticated using AES_128_GCM…
Bruce
  • 107
  • 1
  • 3
  • 8
0
votes
0 answers

Trying to connect to E*Trade via Powershell

I'm trying to connect to the E*Trade API - https://developer.etrade.com/getting-started/developer-guides So for my header I have $global:header = @{ "Content-Type"="application/json" "name"="etrade" "Authorization:…
1
2 3