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

Request:
 Ticks
Sample Code:
 Coldfusion
 ASP
 JSP
 PHP
 Perl
 
INTRADAY
About Finwin Intraday
FinWin can provide Tick data on a per request basis throughout the day. Tick data can be very resource intensive to request and retrieve, so it should be used judiciously. The best use is for sites that have a small fixed number of symbols that users are interested in. In these cases, intraday charts can be drawn periodically to visually represent how the issue is doing throughout the day.

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/ProcessTickHistory.cfm Username = myUsername
Password = myPassword
Id = myFinWinID
Symbol = AVD
Request = Ticks | TickDay | Minute
Type = Query | Array | Delimited
Count = 10
 
Optional Parmeters
Interval - Minute data interval
Delimiter = | - we strongly recommend NOT using a comma (,) or a space if you wish to have a tab delimiter please enter the word "tab".
IncludeBidAsk - TRUE | FALSE - Includes the Bid and Ask
Version 3 Parameters:
Required Parameters
URL = http://www.finwin.com/ProcessCT/ProcessTickHistory.cfm Username = myUsername
Password = myPassword
Id = myFinWinID
Symbol = AVD
Request = Tick_V3 | Intraday_V3
Type = Query | Array | Delimited
 
Optional Parmeters
Interval - Minute data interval
Delimiter = | - we strongly recommend NOT using a comma (,) or a space if you wish to have a tab delimiter please enter the word "tab".
IncludeBidAsk - TRUE | FALSE - Includes the Bid and Ask
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.
Filter_Start - Time of day, for each day returned, that data should start being returned. Format is HHMM
Filter_Stop - Time of day, for each day returned, that data should stop being returned. Format is HHMM
Interval_ReferenceTime of day that intervals are built from. With a reference tim of '0000' (default), 45-minute intervals will land on 9:00, 9:45, etc. With a reference time of 9:30, however, they land on 9:30, 10:15, 11:00, etc. Format is HHMM.
Label_Before_Datapoint - Set to TRUE to have datapoints times marked at the start of the interval, instead of the end. For example, 15-minute intervals for data from 09:30 to 09:45 will be labeled as 09:30, instead of 09:45. Defaults to FALSE.
 
Example WDDX Packets
Minute data example
Tick data example
TickDay data example
Tick data (Delimited) example
 
Cold Fusion Example
Returns the last 'X' ticks:
<cfhttp url="http://www.finwin.com/ProcessCT/ProcessTickHistory.cfm" method="POST">
   <cfhttpparam type="formfield" name="id" value="YourFinWinID">
   <cfhttpparam type="formfield" name="username" value="UserName">
   <cfhttpparam type="formfield" name="password" value="Password">
   <cfhttpparam type="formfield" name="request" value="Ticks">
   <cfhttpparam type="formfield" name="type" value="query">
   <cfhttpparam type="formfield" name="Symbol" value="AVD">
   <cfhttpparam type="formfield" name="count" value="10">
</cfhttp>

-or-

Returns all ticks for the current day:
<cfhttp url="http://www.finwin.com/ProcessCT/ProcessTickHistory.cfm" method="POST">
   <cfhttpparam type="formfield" name="id" value="YourFinWinID">
   <cfhttpparam type="formfield" name="username" value="UserName">
   <cfhttpparam type="formfield" name="password" value="Password">
   <cfhttpparam type="formfield" name="request" value="TICKDAY">
   <cfhttpparam type="formfield" name="type" value="query">
   <cfhttpparam type="formfield" name="Symbol" value="AVD">
   <cfhttpparam type="formfield" name="count" value="1">
</cfhttp>

-or-

Returns minute data for the current day:
<cfhttp url="http://www.finwin.com/ProcessCT/ProcessTickHistory.cfm" method="POST">
   <cfhttpparam type="formfield" name="id" value="YourFinWinID">
   <cfhttpparam type="formfield" name="username" value="UserName">
   <cfhttpparam type="formfield" name="password" value="Password">
   <cfhttpparam type="formfield" name="request" value="MINUTE">
   <cfhttpparam type="formfield" name="type" value="query">
   <cfhttpparam type="formfield" name="Symbol" value="AVD">
   <cfhttpparam type="formfield" name="count" value="1">
   <cfhttpparam type="formfield" name="Interval" value="15">
</cfhttp>

To deserialize WDDX packet:
<cfwddx action="WDDX2CFML" input="#cfhttp.filecontent#" output="Intradayticks">

-or-

Returns the last 'X' ticks:
<cfhttp url="http://www.finwin.com/ProcessCT/ProcessTickHistory.cfm" method="POST">
   <cfhttpparam type="formfield" name="id" value="YourFinWinID">
   <cfhttpparam type="formfield" name="username" value="UserName">
   <cfhttpparam type="formfield" name="password" value="Password">
   <cfhttpparam type="formfield" name="request" value="TICKS">
   <cfhttpparam type="formfield" name="type" value="delimited">
   <cfhttpparam type="formfield" name="Symbol" value="AVD">
   <cfhttpparam type="formfield" name="count" value="10">
</cfhttp>
ASP Example
Dim strSymbol
strSymbol   	= Request.Form("Symbol")
  
Request_POST = 	1
Set HttpObj  = Server.CreateObject("SOFTWING.AspTear")
FinwinURL 	 = "http://www.finwin.com/processct/ProcessTickHistory.cfm"

PostData = "username=myUsername&password=myPassword&id=myFinWinID&
Request=Minute&type=query&count=1&Interval=15&Symbol=AVD

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