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.

50 questions
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
  • 483
  • 7
  • 19
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
  • 483
  • 7
  • 19
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

Invalid Signature for E*TRADE API POST request (preview order, place order)

Back again. I have successfully learned how to sign my GET requests for the E*TRADE API, but now I am up to POST requests for placing orders. I build the order and use a REST POST to send the request. The string to encode for the signature is the…
0
votes
2 answers

OAuth 1.0 Signature Calculation for E*TRADE API

The ETRADE Developer Platform uses the OAuth authorization protocol, version 1.0a. The eTrade developers guides (https://developer.etrade.com/getting-started/developer-guides) contains the following…
0
votes
0 answers

How to fetch e-trade portfolio with a larger-than-default page size?

The e-trade people provided some sample API code which provides a working example of fetching a portfolio, which I implemented, and which met my needs, until I owned >50 stocks, then suddenly I started noticing incomplete portfolio retrievals. How…
ClioCJS
  • 64
  • 3
  • 11
0
votes
0 answers

How can I create order in Pine Script with specific settings according to current price and specific time

hello i want to creat a simple pin scripte that make me place an order when the value of the current candle are supperior than start value (+40 for example ) and close at the final of candle //@version=5 strategy("test", "test", true) //variable…
0
votes
0 answers

Product Key for Etrade Individual Development is Returning 401 Client Error

So a follow up on this question, where I still have the same code: to start working with some live data, I switched from sandbox to individual key, and started getting this error with code that did work in sandbox mode: HTTPError: 401 Client Error:…
0
votes
0 answers

E-Trade API GET requests work great; faila any POST attempt with "invalid_signature"

I am mostly seeking guidance on how to debug a problem. I've made great progress building out a Ruby client to use the etrade api. All of the GET requests succeed without error. I have finally gotten to where I'm ready to preview orders. The preview…
0
votes
1 answer

Etrade API response indicates missing "stopPrice" field/value when its in the request payload

Technical issue with etrade API. I am constructing a trailing stop sell-to-close order with the following preview in…
John Kelly
  • 39
  • 1
  • 4
0
votes
1 answer

Change equity order in etrade api?

Does anyone know how to change an equity order utilizing the etrade API? I can do place order just fine but for some reason changing an equity order seems impossible! I have poured over the documentation and have failed at understanding how to do…
0
votes
1 answer

ETrade api - invalid Consumer key and/or session token

When I attempt to make a request to Etrade's Account List endpoint in sandbox (https://apisb.etrade.com/v1/accounts/list), I am getting an HTTP 401 - "Unauthorized request - invalid Consumer key and/or session token". I don't understand why this…
mark
  • 4,678
  • 7
  • 36
  • 46
0
votes
2 answers

ETrade Authorization API - what are shared secret and token secret?

On the E*Trade authorization api documentation for Get Request Token, it states that the oauth_signature is generated with "the shared secret and token secret". When I generated my sandbox key, I was presented with the following…
mark
  • 4,678
  • 7
  • 36
  • 46
0
votes
1 answer

Getting Quotes from eTrade API in Python3

I'm trying to get quotes from the etrade API. I'm able to list accounts, get transactions, but not get quotes. I've tried removing the accounts and transactions api calls but it makes no difference. I get an "oauth_problem=signature_invalid"…
0
votes
2 answers

How to sign oauth signature for request token with etrade api?

I'm trying to hook into eTrade's API for a project. They use an OAuth v1 flow. I'm running into error's on the very first step of the flow- getting the request token. The info from their doc's can be found here. The error I'm getting is 401- invalid…
Ryne
  • 1,195
  • 2
  • 14
  • 32