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

Request:
 Spots
  Types:
   ·Query
   ·StandardXML
   ·Chart
Sample Code:
 Coldfusion
 ASP
 JSP
 PHP
 Perl
 
Chart
Required Parameters
URL = http://www.finwin.com/processct/processspottag.cfm Username = myUsername
Password = myPassword
Id = 1183
Request = SPOTS
Type = chart
HUB = WHHUB

Optional Parmeters
Border_Width - The width in pixels around the chart
Line_Width - The width of chart lines
Font_Name - The name of the font to use in the chart
Font_Size - The size of the font to use in the chart
Font_Weight - The weight of the font, 100=Normal, 400=Bold
BG_Color - The background color in RRGGBB format
FG_Color - The foreground color in RRGGBB format
Grid_Color - The Grid color in RRGGBB format
BG_Chart - The background color of the Chart, if unset, it uses the BG_Color. Use RRGGBB format.
BG_Study - The background color for Studies, if unset, it uses the BG_Color. Use RRGGBB format.
Grid_Type - Grid line type. Use the following values to choose the style Name Value to pass
  • SOLID = 0
  • DASH = 1
  • DOT = 2
  • DASHDOT = 3
  • DASHDOTDOT = 4
Grid_Lines - Flag to turn grid lines on and off, values should be 1 or 0
Grid_On_Top - Flags the grid to be on top of area charts. Default is 1. Values should be 1 or 0.
Study_Height - The height of the study of each study in pixels
Value_Inside - Flags the chart value to be inside the chart
Value_Precision - Sets the number of places after the decimal to display for the value axis. Set this value to negative one (-1) to use default precision calculation.
Time_Inside - Flags the time axis to be inside the chart
Time_Axis - Flag to turn the time axis on and off, values should be 1 or 0
AM_PM - Flags the time of day to use AM/PM or 24 Hour time. A value of 1 uses AM/PM time.
Vert_Axis - Flag to turn the vertical axis on and off, values should be 1 or 0
Range_Begin - Initial date to use in the SQL format 'YYYY-MM-DD hh:mm:ss'
Range_End - End date to use in the SQL format 'YYYY-MM-DD hh:mm:ss'
Right_Labels - Flags the labels to be on the right-hand-side of the chart
Symbol_Labels - Flags the Symbol names to be displayed on the chart, values should be 0 for off or 1 for on.
Title - The text for a title
  • Desc = This will display the description of the symbol being requested (default)
  • Hub = This will display the hub symbol as the title
Title_Font_Name - The font name for the title
Title_Font_Size - The size of the font for the title
Title_Inside - Flags the title to be inside the chart boundary
Chart_Style - Style of Chart. Use the following Values to choose the style of Chart you wish to display
  • Line - A simple line chart (default)
  • Hloc - A chart with high-low-open-close bars
  • Candlestick - A candlestick chart
  • Channel - A channel chart displaying the volitality and close price
  • Area - A "Mountain" style chart displaying the chart as an area group
    Study_Height - Height of the chart. (default="320")
    Study_Width - Width of the chart. (default="640")
    Chart_Type - Type of Chart. Use the following values to choose the type of chart you wish to display.
    • Intraday = displays todays data at 5 minute intervals (default)
    • Daily = displays daily datapoints. Use Range_begin and end to determine the time frame.
    • Weekly = displays weekly datapoints. Use Range_begin and end to determine the time frame.
    • Monthly = display monthly datapoints. Use Range_begin and end to determine the time frame.
  •  
    Cold Fusion Example
    <cfhttp url="http://www.finwin.com/processCT/processSpotTag.cfm" method="post">
       <cfhttpparam name="username" type="formfield" value="myUsername">
       <cfhttpparam name="password" type="formfield" value="myPassword">
       <cfhttpparam name="id" type="formfield" value="1183">
       <cfhttpparam name="type" type="formfield" value="chart">
       <cfhttpparam name="request" type="formfield" value="spots">
       <cfhttpparam name="hub" type="formfield" value="whhub">
       <cfhttpparam name="font_size" type="formfield" value="12">
       <cfhttpparam name="bg_color" type="formfield" value="ffffff">
       <cfhttpparam name="line_width" type="formfield" value=2>
       <cfhttpparam name="am_pm" type="formfield" value=1>
       <cfhttpparam name="grid_on_top" type="formfield" value=1>
       <cfhttpparam name="grid_type" type="formfield" value=2>
       <cfhttpparam name="fg_color" type="formfield" value="0000ff">
       <cfhttpparam name="bg_chart" type="formfield" value="ffffff">
       <cfhttpparam name="title_inside" type="formfield" value=1>
       <cfhttpparam name="title" type="formfield" value="desc">
       <cfhttpparam name="Title_Font_Name" type="formfield" value="Arial">
       <cfhttpparam name="chart_style" type="formfield" value="line">
       <cfhttpparam name="study_height" type="formfield" value="320">
       <cfhttpparam name="study_width" type="formfield" value="600">
    </cfhttp>
    <cfoutput>#cfhttp.filecontent#</cfoutput>
    ASP Example
    Request_POST = 	1
    Set HttpObj  = Server.CreateObject("SOFTWING.AspTear")
    FinwinURL 	 = "http://www.finwin.com/processct/processSpotTag.cfm"
    
    PostData = "username=myUsername&password=myPassword&id=1183&request=spots&Hub=WHHUB" & 
    "&type=chart"
    
    content = HttpObj.Retrieve(FinwinURL, Request_POST,PostData, "", "")
    Response.write(content)

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