Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: Kenjo
About
User Name: Kenjo
Groups: Gold User, Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Thursday, October 7, 2004
Last Visit: Saturday, February 9, 2013 5:12:08 PM
Number of Posts: 12
[0.00% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Tool for TDAmeritrade Option Series
Posted: Tuesday, May 15, 2007 2:57:51 AM
You might want to try the following URLs to access Ameritrade option chains:

For Ameritrade Apex:

https://wwws.ameritrade.com/cgi-bin/apps/u/OptionChain?pagehandler=PHOptionChain&source=&symbol={Sym}&type=CP&range=&expire=A&strike=&action=Y

For Ameritrade iZone:

https://wwws.izone.com/cgi-bin/apps/u/OptionChain?pagehandler=PHOptionChain&source=&symbol={Sym}&type=CP&range=&expire=A&strike=&action=Y

The procedure I use is to first load TeleChart, then load the Blocks Player along with the page containing the option chain URL, then a login to Ameritrade pops up and I log on, and finally I return to TeleChart and click on another symbol and the options chain is displayed.

You can log onto Ameritrade and then put the above URLs in the address bar of the browser to get full-page option chains.

The ?pagehandler= routine is what governs here, and the &symbol=, &type=, and &expire= etc. are parameters. This routine and it's parameters are a way of querying data from Ameritrade's servers. I made educated guesses as to the parameter values, and I got lucky! &type=CP is for Calls and Puts. &symbol={Sym} was easy enough. &expire=A (for All) was the hardest. These are the settings I prefer, which was why I tried to guess them.

By the way, there are two pages: pagehandler=PHOptionChain and pagehandler=PHAnalyticalOptionChain. So, I first set up two sheets, one for the options chain and one for the analytics. Things keep changing and improving at Ameritrade, and now they put the little calculator in the upper right corner above the put or call on the options chain, and clicking on this calculator icon gives the analytics. As a for instance, the URL for the analytics page is:

For Ameritrade Apex:

https://wwws.ameritrade.com/cgi-bin/apps/u/OptionChain?pagehandler=PHAnalyticalOptionChain&source=&symbol={Sym}&type=CP&range=&expire=&strike=&action=Y

For Ameritrade iZone:

https://wwws.izone.com/cgi-bin/apps/u/OptionChain?pagehandler=PHAnalyticalOptionChain&source=&symbol={Sym}&type=CP&range=&expire=&strike=&action=Y

Notice that I've taken the A out of &expire=A, and the result is I have to click on the View Chain button. You, of course, can experiment.

How did I find out about this URL? You know where I said I got lucky on guessing parameter values, well, I got lucky other ways, too.

Ken