| gif | history | intraday | java | news | objects | options | quote | soap | spots | tickers | weather | end of day | wddx |

Request:
 Chartdata
Sample Code:
 Coldfusion
 ASP
 JSP
 PHP
 Perl
 
About Finwin History

FinWin provides up to 2 years worth of history on any stock, future, index or mutual fund. The history is compiled and stored each night on Finwin's historical archive servers. The fields are slightly different for each type of instrument retrieved.
FinWin History provides data on 4 types of instruments:
  • Equity (Stocks) - Equity data is returned with the fields: Date, Open, High, Low, Close, and Volume.
  • Fut (Futures) - Futures data is returned with the fields: Date, Open, High, Low, Close, OpenInterest and Volume.
  • Mutual (Mutual Funds) - Mutual Fund Data is returned with the fields: Date and Close.
  • Index (Indices) - Index data is returned with the fields: Date, Open, High, Low and Close.

An updated server has been installed to provide you with many additional features. These are implemented in Version 3 and the parameters are listed in the highlighted section below.
*Note: the data for Version 3 is returned in the opposite order (newest to oldest) as Version 2. This offers much improved performance over Version 2.
Required Parameters
URL = http://www.finwin.com/processct/processchartdata.cfm Username = myUsername
Password = myPassword
Id = 1183
Symbol = MSFT
 
Optional Parmeters
Queryname = Becomes the name of the "key" in the structure that contains the historical recordset. A "key" is very much like the index of an array - except a "key" pertains to a structure - often called an associative array. If you are using the CF tag, this value automatically becomes available to you as a query.
Range - If you want less than the default 500 points of data then you may set the "range" variable to the number datapoints you desire.
ChartType - FinWin History can return both daily and weekly data. You can use Charttype to switch the type of data you receive.
  1. day - Daily data. (default)
  2. wky - Weekly data.
  3. mhy - Monthly data.
Delimited - Default is false. Set to true if you want a delimited list.
Delimiter = default= "|". If you wish to have a tab delimiter please enter the word "tab".
 
Version 3 Parameters:
Required Parameters
URL = http://www.finwin.com/processct/processchartdata.cfm Username = myUsername
Password = myPassword
Id = 1183
Symbol = MSFT
Request = chartData_V3
ChartType - DAILY_V3 | WEEKLY_V3 | MONTHLY_V3
 
Optional Parmeters
Delimited - Default is false. Set to true if you want a delimited list.
Delimiter = Default = "|". If you wish to have a tab delimiter please enter the word "tab".
Start - Start date or date/time for the data. In the format CCYYMMDD or CCYYMMDDHHMM
Stop - Stop date or date/time for the data. Same format as Start
Num_Days - Number of days to return
Num_Datapoints - Number of datapoints to return
*Note: Use either Start/Stop OR Num_days OR Num_Datapoints per request.
 
Example WDDX Packet
History XML
History Delimited
 
Cold Fusion Example
<cf_fwhistory
     request="chartdata"
     queryname="GetHistory"
     symbol="MSFT"
     charttype="day"
     username="myusername"
     password="mypassword"
     id="1183">
ASP Example
Dim strSymbol
strSymbol   	= Request.Form("Symbol")
  
Request_POST = 	1
Set HttpObj  = Server.CreateObject("SOFTWING.AspTear")
FinwinURL 	 = "http://www.finwin.com/processct/processchartdata.cfm"

PostData = "username=MyUserName&password=mypassword&id=1183&request=chartdata&Symbol=" 
& strSymbol
 	
content = HttpObj.Retrieve(FinwinURL, Request_POST,PostData, "", "")
Response.write(content)

DTN Market Access
9110 West Dodge Road, Suite 200   Omaha, Nebraska 68114
Copyright 2010, All rights reserved