|
- Linking to Barchart.com
Linking to barchart.com is very easy.
The following code will add forms to your page for a quote, chart, opinion or profile.
To add a quote
<FORM ACTION="http://www2.barchart.com/quote.asp" METHOD="GET">
<INPUT TYPE="TEXT" NAME="sym" SIZE="7" MAXLENGTH="5" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="Get Quote">
</FORM>
To add a chart
<FORM ACTION="http://www2.barchart.com/chart.asp" METHOD="GET">
<INPUT TYPE="TEXT" NAME="sym" SIZE="7" MAXLENGTH="5" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="Get Chart">
</FORM>
To add a opinion
<FORM ACTION="http://www2.barchart.com/texpert.asp" METHOD="GET">
<INPUT TYPE="TEXT" NAME="sym" SIZE="7" MAXLENGTH="5" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="Get Opinion">
</FORM>
To add a profile
<FORM ACTION="http://www2.barchart.com/profile.asp" METHOD="GET">
<INPUT TYPE="TEXT" NAME="sym" SIZE="7" MAXLENGTH="5" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="Get Profile">
</FORM>
To add a radio button
<FORM ACTION="http://www2.barchart.com/quick.asp" METHOD="POST">
<INPUT TYPE="TEXT" NAME="sym" SIZE="7" MAXLENGTH="5" VALUE="">
<INPUT TYPE="RADIO" NAME="qs" CHECKED VALUE="quote">Quote
<INPUT TYPE="RADIO" NAME="qs" VALUE="chart">Chart
<INPUT TYPE="RADIO" NAME="qs" VALUE="opinion">Opinion
<INPUT TYPE="RADIO" NAME="qs" VALUE="profile">Profile
<INPUT TYPE="SUBMIT" VALUE="Get Barchart">
</FORM>
Enter a symbol into the box and submit to retrieve the information.
This will work for both stocks and commodities. For example:
- MSFT - MICROSOFT CORP
- SPZ4 - DEC 2004 S&P 500 FUTURES CONTRACT
The above information can also be co-branded to fit the design of your website.
For more information please visit the co-brands section of webmasters tools.
You can also link to Barchart.com for commodities contracts with the following code.
To add a commodity contract
<FORM ACTION="http://www2.barchart.com/dfutpage.asp" METHOD="GET">
<INPUT TYPE="TEXT" NAME="sym" SIZE="4" MAXLENGTH="2" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="Enter Commodity Symbol">
</FORM>
This commodities contract is different from the quote, chart and opinion in that it
needs a commodities symbol to work not the full contract. For example:
- C - CORN
- SP - S&P 500 FUTURES CONTRACT
A list of all Futures and Commodities contracts is available on the
Futures Lookup Page
|