Browse More APIs

GetRealChart

Returns a standard real-time chart for a security.

The chart uses the GetTicks operation as its underlying data. Use GetRealChartCustom to customize the look and feel of the chart.



After signing up for a free trial, please contact sales to ensure the necessary exchange agreements are in place to finalize your access to XigniteRealTime data.
Exchange:
Symbol:
AdditionalSymbols:
StartTime:
EndTime:
Style:
Width:
Height:

URL

Already have an account? Please log in.
Already have an account? Please log in.
Already have an account? Please log in.
Already have an account? Please log in.

Outputs

NameDescriptionAlways Present
IntradayChart
Each instance represents an intraday chart.No
OutcomeThis field describes the outcome of the method. Possible values are: Success, SystemError, RequestError and RegistrationError.Yes
MessageA short message describing the error if the Outcome field contains a RequestError or RegistrationError.Yes
IdentityThis field describes how the call was authenticated. Possible values are: IP, Cookie, Header and Request.Yes
DelayThis field reports the time it took for the server to complete a request, in a decimal format measured in seconds (Example: 0.0016). This does not take into account any latency experienced by the caller.Yes
Design
No
OutcomeNo
MessageNo
IdentityNo
DelayNo
SecureNo
TextTitleNo
TextHeaderNo
TextFooterNo
TextPriceLineNo
TextVolumeBarNo
TextHighestNo
TextLowestNo
TextOpenNo
TextCloseNo
TextUpNo
TextDownNo
ColorBackgroundNo
ColorBackWallNo
ColorVolumeBackWallNo
ShowVolumeBackWallNo
ColorHighlightNo
ColorPriceLineNo
ColorVolumeBarNo
ColorVolumeBarFillNo
ColorHighNo
ColorStickUpNo
ColorStickLowNo
ColorConstantNo
ColorLowNo
ColorPointNo
ColorTitleNo
ColorFooterNo
ColorHeaderNo
ColorAxisNo
ColorGridNo
ColorFontsNo
ColorStripeNo
ColorOpenNo
ColorCloseNo
ColorVerticalGridNo
ColorHorizontalGridNo
ColorUpNo
ColorDownNo
ColorHighLowLineNo
ColorCollectionNo
GridHorizontalStyleNo
GridVerticalStyleNo
GridHorizontalWidthNo
GridVerticalWidthNo
ColorFrameNo
FrameBorderNo
FormatPriceLineNo
FormatVolumeNo
FormatDateNo
GradeBackgroundNo
GradeBackwallNo
WaterMarkNo
WaterMarkTopMarginNo
WaterMarkLeftMarginNo
WaterMarkTransparencyNo
PointSizeNo
StackVariationLabelsNo
ShowAxisLabelInLegendNo
LineWidthNo
SplitPercentNo
ShowHighNo
ShowLowNo
ShowOpenNo
ShowCloseNo
ShowVolumeNo
ShowUpVariationNo
ShowDownVariationNo
ShowLegendNo
VariationYearNo
VolumeDividerNo
VolumeTextOffsetNo
PriceTextOffsetNo
FrameTypeNo
ProjectionNo
MarginTopNo
MarginBottomNo
MarginLeftNo
MarginRightNo
FontFamilyNo
FontSizeHeaderNo
FontSizeFooterNo
HeightNo
WidthNo
ZoomPercentNo
LegendBoxNo
ColorLegendBackgroundNo
ColorLegendBorderNo
LegendVerticalPositionNo
LegendHorizontalPositionNo
ReloadNo
ShowPriceChartLabelsNo
TickPrecisionNo
TickPeriodsNo
WaterMarkHorizontalAlignNo
LightSchemeNo
FontSizeLegendNo
FontSizeAxesNo
FontSizeTitleNo
DaysForHourDisplayNo
DaysForDayDisplayNo
DaysForWeekDisplayNo
DaysForBiWeeklyDisplayNo
DaysForMonthDisplayNo
DaysForQuarterDisplayNo
DaysForSemiAnnualDisplayNo
DaysForAnnualDisplayNo
DaysForBiAnnualDisplayNo
DaysForPentaAnnualDisplayNo
Security
Each instance represents a Security.No
OutcomeThis field describes the outcome of the method. Possible values are: Success, SystemError, RequestError and RegistrationError.Yes
MessageA short message describing the error if the Outcome field contains a RequestError or RegistrationError.Yes
IdentityThis field describes how the call was authenticated. Possible values are: IP, Cookie, Header and Request.Yes
DelayThis field reports the time it took for the server to complete a request, in a decimal format measured in seconds (Example: 0.0016). This does not take into account any latency experienced by the caller.Yes
CIKThe CIK for the Security. CIK are SEC identifiers and are only available for firms reporting with the SEC. CIKs are not unique per Security.No
CusipThe CUSIP ( Committee on Uniform Security Identification Procedures) identifier for the security.No
SymbolThe symbol for the Security.Yes
ISINThe ISIN identifier for the Security.No
ValorenThe SIX Financial Valoren identifier for the Security.No
NameThe name for the security.Yes
MarketThe market for the Security (If the Security trades on an exchange).Yes
CategoryOrIndustryThe Category Or Industry for the Security.No
StartTimeThe start time for the chart.Yes
EndTimeThe end time for the chart.Yes
WidthThe height in pixels.Yes
HeightThe width in pixels.Yes
TitleThe title for the chart.Yes
StyleThe style of the chart.Yes
UrlThe URL of the chart on the xignite Server. This URL is valid for 24 hours.Yes
Create custom API splice
Select Output Fields Select None
IntradayChart
Outcome
Message
Identity
Delay
Design
Outcome
Message
Identity
Delay
Secure
TextTitle
TextHeader
TextFooter
TextPriceLine
TextVolumeBar
TextHighest
TextLowest
TextOpen
TextClose
TextUp
TextDown
ColorBackground
ColorBackWall
ColorVolumeBackWall
ShowVolumeBackWall
ColorHighlight
ColorPriceLine
ColorVolumeBar
ColorVolumeBarFill
ColorHigh
ColorStickUp
ColorStickLow
ColorConstant
ColorLow
ColorPoint
ColorTitle
ColorFooter
ColorHeader
ColorAxis
ColorGrid
ColorFonts
ColorStripe
ColorOpen
ColorClose
ColorVerticalGrid
ColorHorizontalGrid
ColorUp
ColorDown
ColorHighLowLine
ColorCollection
GridHorizontalStyle
GridVerticalStyle
GridHorizontalWidth
GridVerticalWidth
ColorFrame
FrameBorder
FormatPriceLine
FormatVolume
FormatDate
GradeBackground
GradeBackwall
WaterMark
WaterMarkTopMargin
WaterMarkLeftMargin
WaterMarkTransparency
PointSize
StackVariationLabels
ShowAxisLabelInLegend
LineWidth
SplitPercent
ShowHigh
ShowLow
ShowOpen
ShowClose
ShowVolume
ShowUpVariation
ShowDownVariation
ShowLegend
VariationYear
VolumeDivider
VolumeTextOffset
PriceTextOffset
FrameType
Projection
MarginTop
MarginBottom
MarginLeft
MarginRight
FontFamily
FontSizeHeader
FontSizeFooter
Height
Width
ZoomPercent
LegendBox
ColorLegendBackground
ColorLegendBorder
LegendVerticalPosition
LegendHorizontalPosition
Reload
ShowPriceChartLabels
TickPrecision
TickPeriods
WaterMarkHorizontalAlign
LightScheme
FontSizeLegend
FontSizeAxes
FontSizeTitle
DaysForHourDisplay
DaysForDayDisplay
DaysForWeekDisplay
DaysForBiWeeklyDisplay
DaysForMonthDisplay
DaysForQuarterDisplay
DaysForSemiAnnualDisplay
DaysForAnnualDisplay
DaysForBiAnnualDisplay
DaysForPentaAnnualDisplay
Security
Outcome
Message
Identity
Delay
CIK
Cusip
Symbol
ISIN
Valoren
Name
Market
CategoryOrIndustry
StartTime
EndTime
Width
Height
Title
Style
Url

Hit Calculation

Requests against this operation count as one hit.


Authentication

In order to authenticate calls to our APIs, you must pass the token either:

  • As the _Token parameter in the query string of a REST request, or
  • In the Username value in the soap header of a SOAP request.
You can manage your API Tokens from your account page.


WSDL

If you are using SOAP, you can access the WSDL (Web Service Definition Language) file for the service using the link below: http://www.xignite.com/xRealTime.asmx?wsdl


Sample Code

Because they use open standards, Xignite’s APIs are easily accessible from any development environment without requiring any software installation. There are many flexible ways to integrate our APIs in your apps. The sections below provide sample code in popular programming languages you can easily copy, paste, and re-use.

Sample Code for GetRealChart

ASPX

<%@ Page Language="vb" %>
<%@ Import Namespace="System.Net" %>
<!-- here, XigniteRealTime is the name of this assembly-->
<%@ Import Namespace="XigniteRealTime" %>
<HTML>
<HEAD>
<script language="vb" runat="server">
' declare the return object globally so that you can reuse it around the page
Dim objIntradayChart As IntradayChart
' call the service inside the Page_Load routine
Sub Page_Load(obj as object, e as eventargs)
' create an instance of the web service
Dim objRealTimeService As New XigniteRealTime()
' add authentication info
Dim objHeader As New RemoteRealTime.Header = new Header();
objHeader.Username = "YOUR_TOKEN" objIntradayChart.HeaderValue = objHeader

' call the operation and load the return object
objIntradayChart = objRealTimeService.
GetRealChart(RemoteRealTime.ECNTypes.INET, "msft", "orcl, dell", "8:00", "10:00", RemoteRealTime.StockChartStyles.Line, 1, 14, 62, 91, 186, 365, 1000, 1000, 14, 3500, 600, 400)
If Not objIntradayChart Is Nothing Then
Select Case objIntradayChart.Outcome
Case OutcomeTypes.RegistrationError
' add processing for handling subscription problems, e.g.
Response.Write("Our subscription to this service has expired.")
Case OutcomeTypes.RequestError
' add processing for handling request problems, e.g.
' you could pass back the info message received from the service
Response.Write(objIntradayChart.Message)
Case OutcomeTypes.SystemError
' add processing for handling system problems, e.g.
Response.Write("Service is unavailable at this time.")
End Select
Else
' add error processing here
' this condition could be caused by an HTTP error (404,500...)
Response.Write("Service is unavailable at this time.")
End If
End Sub
</script>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD>
<!-- add processing for displaying the results, e.g. -->
<!-- display the value for objIntradayChart.Url-->
<!-- other values could be consumed in the same manner-->
<%Response.Write(objIntradayChart.Url)%>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

C# (CSharp)

RemoteRealTime.XigniteRealTime objRealTimeService;
objRealTimeService = new RemoteRealTime.XigniteRealTime();
/// add authentication info
RemoteRealTime.Header objHeader = new RemoteRealTime.Header();
objHeader.Username = "YOUR_TOKEN";
objRealTimeService.HeaderValue = objHeader;

RemoteRealTime.IntradayChart objIntradayChart;
objIntradayChart = objRealTimeService.
GetRealChart(RemoteRealTime.ECNTypes.INET, "msft", "orcl, dell", "8:00", "10:00", RemoteRealTime.StockChartStyles.Line, 1, 14, 62, 91, 186, 365, 1000, 1000, 14, 3500, 600, 400);

if (objIntradayChart == null)
{
/// add error processing here
/// this condition could be caused by an HTTP error (404,500...)
Console.Write("Service is unavailable at this time.");
}
else
{
switch(objIntradayChart.Outcome)
{
case RemoteRealTime.OutcomeTypes.Success:
/// add processing for displaying the results, e.g.
/// display the value for objIntradayChart.Url
/// other values could be consumed in the same manner
Console.Write(objIntradayChart.Url);
break;
default:
/// add processing for handling request problems, e.g.
/// you could pass back the info message received from the service
Console.Write(objIntradayChart.Message);
break;
}
}

Classic ASP

This code requires the Microsoft SOAP Toolkit 3.0 and MSXML 4.0. You can download these from the Microsoft site.

Dim objSOAPClient
Set objSOAPClient = Server.CreateObject("MSSOAP.SoapClient30")
' the node list is of type MSXML2.IXMLDOMNodeList
Dim objXMLNodeList
' the node is of type MSXML2.IXMLDOMNode
Dim objXMLNode

' initialize the soap engine
objSOAPClient.ClientProperty("ServerHTTPRequest") = True
objSOAPClient.MSSoapInit("http://www.xignite.com/xRealTime.asmx?WSDL")

' Set the header values for authentication
objSOAPClient.ConnectorProperty("Username") = "YOUR_TOKEN"
' load the node list with the records received from the service
Set objXMLNodeList = objSOAPClient.GetRealChart(RemoteRealTime.ECNTypes.INET, "msft", "orcl, dell", "8:00", "10:00", RemoteRealTime.StockChartStyles.Line, 1, 14, 62, 91, 186, 365, 1000, 1000, 14, 3500, 600, 400)

' loop through the index records and load in the document
For Each objXMLNode In objXMLNodeList
' your can print out the content of each node
Response.Write objXMLNode.xml
Next

Java/Axis

This section assumes that you have Axis installed on your machine and that you are fairly familiar with it.

Because all our web services return complex types, the best way to use Axis (Apache Axis2 1.4+) is to first generate a proxy class using the 'WSDL2Java' tool'. By default, the tool will put all generated classes into the package "com.xignite.www.services".

You should then compile the classes (including the axis dependencies):


C:\axis>java org.apache.axis.wsdl.WSDL2Java http://www.xignite.com/xRealTime.asmx?WSDL
C:\axis>javac com\xignite\*.java
C:\axis>
C:\axis>YOUR_AXIS_INSTALLATION\bin\wsdl2java.bat -ap -uri http://www.xignite.com/xRealTime.asmx?WSDL
C:\axis>javac -classpath "YOUR_AXIS_INSTALLATION/lib/*" com/xignite/www/services/*.java

You can then create your source file. See below


After creating your source file, you can compile it like this:

C:\axis>javac -classpath .;"YOUR_AXIS_INSTALLATION/lib/*" XigniteRealTimeDemo.java

// By default, all of the classes auto-generated by the Axis2 
// "WSDL2Java" tool are placed into the package "com.xignite.www.services"
// for our Xignite WSDL, so we need an import.
import com.xignite.www.services.XigniteRealTimeXigniteRealTimeSoapStub; import com.xignite.www.services.XigniteRealTimeXigniteRealTimeSoapStub.*;
public class XigniteRealTimeDemo {
public static void main(String[] args) throws Exception { // Instantiate the XigniteRealTime proxy
// proxy object using the Helper class.
// This class was autogenerated by the WSDL2Java tool

try { XigniteRealTimeXigniteRealTimeSoapStub stub = new XigniteRealTimeXigniteRealTimeSoapStub(); // Instantiate the return class from the operation
// This class was autogenerated by the WSDL2Java tool
GetRealChart getRealChartArguments = new GetRealChart(); getRealChartArguments.setExchange("ECNTypes.INET");
getRealChartArguments.setSymbol("msft");
getRealChartArguments.setAdditionalSymbols("orcl, dell");
getRealChartArguments.setStartTime("8:00");
getRealChartArguments.setEndTime("10:00");
getRealChartArguments.setStyle("StockChartStyles.Line");
getRealChartArguments.setDaysForHourDisplay(1);
getRealChartArguments.setDaysForDayDisplay(14);
getRealChartArguments.setDaysForWeekDisplay(62);
getRealChartArguments.setDaysForBiWeeklyDisplay(91);
getRealChartArguments.setDaysForMonthDisplay(186);
getRealChartArguments.setDaysForQuarterDisplay(365);
getRealChartArguments.setDaysForSemiAnnualDisplay(1000);
getRealChartArguments.setDaysForAnnualDisplay(1000);
getRealChartArguments.setDaysForBiAnnualDisplay(14);
getRealChartArguments.setDaysForPentaAnnualDisplay(3500);
getRealChartArguments.setWidth(600);
getRealChartArguments.setHeight(400);
// Add authentication info
HeaderE header = new HeaderE(); Header myHeader = new Header(); myHeader.setUsername("YOUR_TOKEN"); header.setHeader(myHeader);

GetRealChartResponse response = stub.getRealChart(getRealChartArguments, header); IntradayChart objIntradayChart = response.getGetRealChartResult(); // objIntradayChart is pointing to the result of the operation
if (objIntradayChart.getOutcome() == OutcomeTypes.RegistrationError) { // code to handle registration errors
System.out.println(OutcomeTypes.RegistrationError.toString() + ": " + objIntradayChart.getMessage()); } else if (objIntradayChart.getOutcome() == OutcomeTypes.RequestError) { // code to handle request errors
System.out.println(OutcomeTypes.RequestError.toString() + ": " + objIntradayChart.getMessage()); } else if (objIntradayChart.getOutcome() == OutcomeTypes.SystemError) { // code to handle system errors
System.out.println(OutcomeTypes.SystemError.toString() + ": " + objIntradayChart.getMessage()); } else // Success
{ System.out.println(objIntradayChart.getUrl()); } } catch (Exception ex) { // add exception handling code here

} } }

PHP/NuSoap

NuSoap is one of the three major SOAP implementations for PHP: PEAR::SOAP, NuSOAP, and PHP-SOAP.

If you use PHP, we recommend you use NuSoap to access our web services. NuSoap uses our web services for demonstration in their own documentation and it works well.

This section assumes that you have PHP installed on your machine and that you are fairly familiar with it. We have tested this implementation for PHP 4.2.1 on Windows 2000. It should also work with more recent versions on more recent platforms. Note that PHP 5.0 supports SOAP natively (without extension), please follow their documentation for upgrade or code changes required.

To install NuSoap, download the latest package from this location. You can unzip the package in your PHP application directory. The package includes libraries (/lib) and samples (/samples). The sample code below is based on the wsdlclient1.php sample.

If you use one of the older version or PHP (i.e. 4.2.1) , you will need to comment out one line in the /lib/nusoap.php file. That section is not supported in earlier version. The line to comment out is line 1877 as shown below.


1876 // set response timeout
1877 //socket_set_timeout( $this->fp, $response_timeout);

You can then create your source file.


<?php
// need to use the NuSoap extension
require_once('../lib/nusoap.php');

// if you access the internet through a proxy server
$proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
$proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
$proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
$proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';

// define the SOAP client using the url for the service
$client = new soapclient('http://www.xignite.com/xRealTime.asmx?WSDL',
true, $proxyhost, $proxyport, $proxyusername, $proxypassword);

// assess the results
$err = $client->getError();
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}

// create an array of parameters
$param = array(
'Exchange' => "INET",
'Symbol' => "msft",
'AdditionalSymbols' => "orcl, dell",
'StartTime' => "8:00",
'EndTime' => "10:00",
'Style' => "Line",
'DaysForHourDisplay' => 1,
'DaysForDayDisplay' => 14,
'DaysForWeekDisplay' => 62,
'DaysForBiWeeklyDisplay' => 91,
'DaysForMonthDisplay' => 186,
'DaysForQuarterDisplay' => 365,
'DaysForSemiAnnualDisplay' => 1000,
'DaysForAnnualDisplay' => 1000,
'DaysForBiAnnualDisplay' => 14,
'DaysForPentaAnnualDisplay' => 3500,
'Width' => 600,
'Height' => 400);
// call the service, passing the parameters and the name of the operation
$result = $client->call('GetRealChart', array('parameters' => $param), '', '', false, true);
// assess the results
if ($client->fault) {
echo '<h2>Fault</h2><pre>';
print_r($result);
echo '</pre>';
} else {
$err = $client->getError();
if ($err) {
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
// display the results
echo '<h2>Result</h2><pre>';
// this function exposes the complete structure of the return class
print_r($result);
echo '</pre>';
}
}
// print the SOAP request
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
// print the SOAP response
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
// print the PHP debugging trace
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
?>

PHP5

PHP-SOAP is one of the three major SOAP implementations for PHP: PEAR::SOAP, NuSOAP, and PHP-SOAP.

This section assumes that you have PHP5.0 installed on your machine and that you are fairly familiar with it.

Note that PHP 5.0 supports SOAP, please follow their documentation for code changes required.

Here is a sample source for this operation.

<?php
// define the SOAP client using the url for the service
$client = new soapclient('http://www.xignite.com/xRealTime.asmx?WSDL');
// create an array of parameters
$param = array( 'Exchange' => "INET",
'Symbol' => "msft",
'AdditionalSymbols' => "orcl, dell",
'StartTime' => "8:00",
'EndTime' => "10:00",
'Style' => "Line",
'DaysForHourDisplay' => 1,
'DaysForDayDisplay' => 14,
'DaysForWeekDisplay' => 62,
'DaysForBiWeeklyDisplay' => 91,
'DaysForMonthDisplay' => 186,
'DaysForQuarterDisplay' => 365,
'DaysForSemiAnnualDisplay' => 1000,
'DaysForAnnualDisplay' => 1000,
'DaysForBiAnnualDisplay' => 14,
'DaysForPentaAnnualDisplay' => 3500,
'Width' => 600,
'Height' => 400);
// add authentication info
$xignite_header = new SoapHeader('http://www.xignite.com/services/',
"Header", array("Username" => "YOUR_TOKEN"));
$client->__setSoapHeaders(array($xignite_header));

// call the service, passing the parameters and the name of the operation
$result = $client->GetRealChart($param); // assess the results
if (is_soap_fault($result)) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } // print the SOAP request
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->__getLastRequest(), ENT_QUOTES) . '</pre>'; // print the SOAP request Headers
echo '<h2>Request Headers</h2><pre>' . htmlspecialchars($client->__getLastRequestHeaders(), ENT_QUOTES) . '</pre>'; // print the SOAP response
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->__getLastResponse(), ENT_QUOTES) . '</pre>'; ?>

Perl/SoapLite

This section assumes that you have SOAP::Lite for Perl installed on your machine and that you are fairly familiar with it. But just in case your are not:

You can then use a text editor to create the source code below. You can execute it by running:


C:\perl\perl demo.pl

Note that there are some unique steps to follow to use SOAP::Lite with .Net web Services. For detailed info, check this article on MSDN.

Here is a sample source for this operation.
# the maptype instruction is critical for compatibility 
use SOAP::Lite maptype => {};
use Data::Dumper;

# this is our namespace
my $namespace = 'http://www.xignite.com/services/';

# declare the service using the namespace, the SOAP action and the uri
my $service = SOAP::Lite
-> uri($namespace)
-> on_action( sub { join '/', 'http://www.xignite.com/services', $_[1] } )
-> proxy('http://www.xignite.com/xRealTime.asmx');

# .Net requires the method, header, and attributes to be fully qualified
my $method = SOAP::Data->name('GetRealChart')
->attr({xmlns => $namespace});

# this section is required for authentication
# you can skip it if you use IP-based authentication
my $header = SOAP::Header->name(Header => {
Username => '<your username here>'})->uri($namespace)->prefix('');

# same here, you can omit $header if you use IP-based authentication

my @params = ( $header,
SOAP::Data->name(Exchange => "INET")->uri($namespace),
SOAP::Data->name(Symbol => "msft")->uri($namespace),
SOAP::Data->name(AdditionalSymbols => "orcl, dell")->uri($namespace),
SOAP::Data->name(StartTime => "8:00")->uri($namespace),
SOAP::Data->name(EndTime => "10:00")->uri($namespace),
SOAP::Data->name(Style => "Line")->uri($namespace),
SOAP::Data->name(DaysForHourDisplay => 1)->uri($namespace),
SOAP::Data->name(DaysForDayDisplay => 14)->uri($namespace),
SOAP::Data->name(DaysForWeekDisplay => 62)->uri($namespace),
SOAP::Data->name(DaysForBiWeeklyDisplay => 91)->uri($namespace),
SOAP::Data->name(DaysForMonthDisplay => 186)->uri($namespace),
SOAP::Data->name(DaysForQuarterDisplay => 365)->uri($namespace),
SOAP::Data->name(DaysForSemiAnnualDisplay => 1000)->uri($namespace),
SOAP::Data->name(DaysForAnnualDisplay => 1000)->uri($namespace),
SOAP::Data->name(DaysForBiAnnualDisplay => 14)->uri($namespace),
SOAP::Data->name(DaysForPentaAnnualDisplay => 3500)->uri($namespace),
SOAP::Data->name(Width => 600)->uri($namespace),
SOAP::Data->name(Height => 400)->uri($namespace));
# you can now call the service
my $result = $service->call($method => @params);
if ($result->fault)
{
print $result->faultstring;
}
else
{
# here we parse the output using the main return class
# and one of its attributes
# Uncoment the line below to print the full result object graph:
# print Dumper($result);
print $result->valueof('//GetRealChartResult/objIntradayChart/Url'), "\n";
}

Ruby

This section assumes that you have some knowledge of the Ruby language, and in particular the SOAP library Savon.

require 'rubygems'
require 'savon'
require 'pp'
url = "http://www.xignite.com/xRealTime.asmx?WSDL"
client = Savon::Client.new(url) response = client.request :GetRealChart do
soap.env_namespace = ""
soap.element_form_default = false
soap.namespaces["xmlns:xignite"] = "http://www.xignite.com/services/"
soap.input = "xignite:GetRealChart"
soap.header => {
xignite:Header => {
xignite:Username => "YOUR_TOKEN"
}
}
soap.body = {
'xignite:Exchange' => "INET",
'xignite:Symbol' => "msft",
'xignite:AdditionalSymbols' => "orcl, dell",
'xignite:StartTime' => "8:00",
'xignite:EndTime' => "10:00",
'xignite:Style' => "Line",
'xignite:DaysForHourDisplay' => 1,
'xignite:DaysForDayDisplay' => 14,
'xignite:DaysForWeekDisplay' => 62,
'xignite:DaysForBiWeeklyDisplay' => 91,
'xignite:DaysForMonthDisplay' => 186,
'xignite:DaysForQuarterDisplay' => 365,
'xignite:DaysForSemiAnnualDisplay' => 1000,
'xignite:DaysForAnnualDisplay' => 1000,
'xignite:DaysForBiAnnualDisplay' => 14,
'xignite:DaysForPentaAnnualDisplay' => 3500,
'xignite:Width' => 600,
'xignite:Height' => 400
}
end
pp response.to_hash

VB.NET

Dim objRealTimeService As New RemoteRealTime.XigniteRealTime()
Dim objHeader As New RemoteRealTime.Header = new RemoteRealTime.Header();
objHeader.Username = "YOUR_TOKEN" objRealTime.HeaderValue = objHeader

Dim objIntradayChart As RemoteRealTime.IntradayChart _
= objRealTimeService.GetRealChart(RemoteRealTime.ECNTypes.INET, "msft", "orcl, dell", "8:00", "10:00", RemoteRealTime.StockChartStyles.Line, 1, 14, 62, 91, 186, 365, 1000, 1000, 14, 3500, 600, 400)

If Not objIntradayChart Is Nothing Then
Select Case objIntradayChart.Outcome
Case RemoteRealTime.OutcomeTypes.RegistrationError
' display the error to facilitate diagnostics, e.g.
Console.WriteLine(objIntradayChart.Message)
Case RemoteRealTime.OutcomeTypes.RequestError
' add processing for handling request problems, e.g.
' you could pass back the info message received from the service
Console.WriteLine(objIntradayChart.Message)
Case RemoteRealTime.OutcomeTypes.SystemError
' add processing for handling system problems, e.g.
Console.WriteLine("Service is unavailable at this time.")
Case Else
' add processing for displaying the results, e.g.
' display the value for objIntradayChart.Url
' other values could be consumed in the same manner
Console.WriteLine(objIntradayChart.Url)
End Select
Else
' add error processing here
' this condition could be caused by an HTTP error (404,500...)
Console.WriteLine("Service is unavailable at this time.")
End If

VB6

' this DOM object will contain the result of the call
Dim objResult As IXMLDOMSelection
' create an instance of the soap toolkit
Dim objService As New MSSOAPLib30.SoapClient30
' if your network uses a proxy server, add this line
objService.ConnectorProperty("ProxyServer") = "ip of your proxy server"
' SOAP headers are not supported in the toolkit, so we will fake it with this handler
Dim objHeader As ClientHeaderHandler
Set objHeader = New ClientHeaderHandler
' set the username and passwords to your values
objHeader.Username = "YOUR_TOKEN"
Set objService.HeaderHandler = objHeader

' point the the toolkit to the WSDL
objService.mssoapinit "http://www.xignite.com/xRealTime.asmx?WSDL"

' load the result into the DOM object
Set objResult = objService.GetRealChart(RemoteRealTime.ECNTypes.INET, "msft", "orcl, dell", "8:00", "10:00", RemoteRealTime.StockChartStyles.Line, 1, 14, 62, 91, 186, 365, 1000, 1000, 14, 3500, 600, 400)

' you can access the properties this way:
' where objResult(5).nodeName is the name of the 5th field of the instance returned
' and objResult(5).Text is the value
MsgBox objResult(5).nodeName & " = " & objResult(5).Text


' you must also add this class to your code.
' it will create the SOAP header to pass with your request
Class Module "ClientHeaderHandler"
Option Explicit
Implements IHeaderHandler

Private m_uid As String
Private m_pwd As String
Private m_tracer As String

Property Let Username(ByVal value As String)
m_uid = value
End Property

Property Let Password(ByVal value As String)
m_pwd = value
End Property

Property Let Tracer(ByVal value As String)
m_tracer = value
End Property

Private Function iHeaderHandler_ReadHeader( _
ByVal par_reader As MSSOAPLib30.ISoapReader, _
ByVal par_HeaderNode As MSXML2.IXMLDOMNode, _
ByVal par_object As Object) As Boolean
iHeaderHandler_ReadHeader = False
End Function

Private Function iHeaderhandler_willWriteHeaders() As Boolean
iHeaderhandler_willWriteHeaders = True
End Function

Private Sub iHeaderHandler_WriteHeaders( _
ByVal par_serializer As MSSOAPLib30.ISoapSerializer, _
ByVal par_object As Object)

Dim XigniteHeaderString As String

XigniteHeaderString = "<Header xmlns="http://www.xignite.com/services/"> " & _
"<Username>" & m_uid & "</Username>" & _
"<Password>" & m_pwd & "</Password>" & _
"<Tracer>" & m_tracer & "</Tracer>" & _
"</Header>"

par_serializer.WriteXml XigniteHeaderString
End Sub

XSLT

When working with XSL, you only need to worry about properly dealing with namespaces.

The general principle in working with XSL is to apply the stylesheet (the XSL document) to the output of the web service (XML document). The code required to accomplish this varies based on your envirobment. For instance, using VB.Net it would be:

Dim objSOAPClient
Dim objTemplate As New System.Xml.Xsl.XslTransform()
objTemplate.Load(<url_of_XSL_template>)
objTemplate.Transform(<url_of_input_document>,<url_of_output_document>)

In the code above, you want to replace the <url_of_input_document> with the following URL.

http://www.xignite.com/xRealTime.asmx/GetRealChart?Exchange=ECNTypesINET&Symbol=msft&AdditionalSymbols=orcl, dell&StartTime=8:00&EndTime=10:00&Style=StockChartStylesLine&DaysForHourDisplay=1&DaysForDayDisplay=14&DaysForWeekDisplay=62&DaysForBiWeeklyDisplay=91&DaysForMonthDisplay=186&DaysForQuarterDisplay=365&DaysForSemiAnnualDisplay=1000&DaysForAnnualDisplay=1000&DaysForBiAnnualDisplay=14&DaysForPentaAnnualDisplay=3500&Width=600&Height=400


And this is how you could write the XSL stylesheet. Note that all node names are prefixed.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xi="http://www.xignite.com/services/"
version="1.0" exclude-result-prefixes="xi">
<xsl:template match="xi:IntradayChart">
<p>
<xsl:value-of select="xi:Url"/>
</p>
</xsl:template>
</xsl:template></xsl:stylesheet>

The sample code is provided "as is" without any express or implied warranty. You are solely responsible for obtaining any necessary licenses or ownership rights, including for Xignite APIs and open source code, to use this sample code. Xignite has no obligation to test, certify, or support its use.


Sample Requests

All Xignite APIs support multiple, easy-to-use, open standard protocols. You can place requests against the API using a simple REST request using POST or GET or you can place a request using SOAP. The sections below show how properly formed requests and corresponding outputs look like for each protocol.

SOAP Request for GetRealChart

Request

POST http://www.xignite.com/xRealTime.asmx HTTP/1.1
Host: www.xignite.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.xignite.com/services/GetRealChart"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <Header xmlns="http://www.xignite.com/services/"> <Username>string</Username> <Password>string</Password> <Tracer>string</Tracer> </Header> </soap:Header> <soap:Body> <GetRealChart xmlns="http://www.xignite.com/services/"> <Exchange>Island or INET</Exchange> <Symbol>string</Symbol> <AdditionalSymbols>string</AdditionalSymbols> <StartTime>string</StartTime> <EndTime>string</EndTime> <Style>Line or Candle or Stick or Area or Percentage or LinePercentage
or CandlePercentage or StickPercentage or AreaPercentage
</Style> <Width>int</Width> <Height>int</Height> </GetRealChart> </soap:Body> </soap:Envelope>

Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetRealChartResponse xmlns="http://www.xignite.com/services/"> <GetRealChartResult> <StockChart> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Design> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Secure>boolean</Secure> <TextTitle>string</TextTitle> <TextHeader>string</TextHeader> <TextFooter>string</TextFooter> <TextPriceLine>string</TextPriceLine> <TextVolumeBar>string</TextVolumeBar> <TextHighest>string</TextHighest> <TextLowest>string</TextLowest> <TextOpen>string</TextOpen> <TextClose>string</TextClose> <TextUp>string</TextUp> <TextDown>string</TextDown> <ColorBackground>string</ColorBackground> <ColorBackWall>string</ColorBackWall> <ColorVolumeBackWall>string</ColorVolumeBackWall> <ShowVolumeBackWall>boolean</ShowVolumeBackWall> <ColorHighlight>string</ColorHighlight> <ColorPriceLine>string</ColorPriceLine> <ColorVolumeBar>string</ColorVolumeBar> <ColorVolumeBarFill>string</ColorVolumeBarFill> <ColorHigh>string</ColorHigh> <ColorStickUp>string</ColorStickUp> <ColorStickLow>string</ColorStickLow> <ColorConstant>string</ColorConstant> <ColorLow>string</ColorLow> <ColorPoint>string</ColorPoint> <ColorTitle>string</ColorTitle> <ColorFooter>string</ColorFooter> <ColorHeader>string</ColorHeader> <ColorAxis>string</ColorAxis> <ColorGrid>string</ColorGrid> <ColorFonts>string</ColorFonts> <ColorStripe>string</ColorStripe> <ColorOpen>string</ColorOpen> <ColorClose>string</ColorClose> <ColorVerticalGrid>string</ColorVerticalGrid> <ColorHorizontalGrid>string</ColorHorizontalGrid> <ColorUp>string</ColorUp> <ColorDown>string</ColorDown> <ColorHighLowLine>string</ColorHighLowLine> <ColorCollection>string</ColorCollection> <GridHorizontalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridHorizontalStyle> <GridVerticalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridVerticalStyle> <GridHorizontalWidth>int</GridHorizontalWidth> <GridVerticalWidth>int</GridVerticalWidth> <ColorFrame>string</ColorFrame> <FrameBorder>string</FrameBorder> <FormatPriceLine>string</FormatPriceLine> <FormatVolume>string</FormatVolume> <FormatDate>string</FormatDate> <GradeBackground>boolean</GradeBackground> <GradeBackwall>boolean</GradeBackwall> <WaterMark>string</WaterMark> <WaterMarkTopMargin>int</WaterMarkTopMargin> <WaterMarkLeftMargin>int</WaterMarkLeftMargin> <WaterMarkTransparency>int</WaterMarkTransparency> <PointSize>float</PointSize> <StackVariationLabels>boolean</StackVariationLabels> <ShowAxisLabelInLegend>boolean</ShowAxisLabelInLegend> <LineWidth>int</LineWidth> <SplitPercent>int</SplitPercent> <ShowHigh>boolean</ShowHigh> <ShowLow>boolean</ShowLow> <ShowOpen>boolean</ShowOpen> <ShowClose>boolean</ShowClose> <ShowVolume>boolean</ShowVolume> <ShowUpVariation>boolean</ShowUpVariation> <ShowDownVariation>boolean</ShowDownVariation> <ShowLegend>boolean</ShowLegend> <VariationYear>int</VariationYear> <VolumeDivider>int</VolumeDivider> <VolumeTextOffset>int</VolumeTextOffset> <PriceTextOffset>int</PriceTextOffset> <FrameType>None or Colonial or Common or Embed or Emboss or FrameOpenRight
or FrameOpenRL or OneBarGradient or RoundedUp or SlimRoundedShadowed
</FrameType> <Projection>Orthogonal or OrthogonalElevated or OrthogonalHorizontalLeft
or OrthogonalHorizontalRight or OrthogonalHalf or OrthogonalHalfHorizontalLeft
or OrthogonalHalfHorizontalRight or OrthogonalHalfRotated
or OrthogonalHalfElevated or Perspective or PerspectiveHorizontalLeft
or PerspectiveHorizontalRight or PerspectiveRotated
or PerspectiveElevated or PerspectiveTilted</Projection> <MarginTop>int</MarginTop> <MarginBottom>int</MarginBottom> <MarginLeft>int</MarginLeft> <MarginRight>int</MarginRight> <FontFamily>string</FontFamily> <FontSizeHeader>int</FontSizeHeader> <FontSizeFooter>int</FontSizeFooter> <Height>double</Height> <Width>double</Width> <ZoomPercent>int</ZoomPercent> <LegendBox>boolean</LegendBox> <ColorLegendBackground>string</ColorLegendBackground> <ColorLegendBorder>string</ColorLegendBorder> <LegendVerticalPosition>int</LegendVerticalPosition> <LegendHorizontalPosition>int</LegendHorizontalPosition> <Reload>boolean</Reload> <ShowPriceChartLabels>boolean</ShowPriceChartLabels> <TickPrecision>Tick or Millisecond or Second or Minute or Hour or Day
or Week or Month</TickPrecision> <TickPeriods>int</TickPeriods> <WaterMarkHorizontalAlign>Center or Left or Right</WaterMarkHorizontalAlign> <LightScheme>None or SoftTopLeft or SoftFrontal or SoftTopRight or ShinyTopLeft
or ShinyFrontal or ShinyTopRight or MetallicLustre
or NorthernLights</LightScheme> <FontSizeLegend>int</FontSizeLegend> <FontSizeAxes>int</FontSizeAxes> <FontSizeTitle>int</FontSizeTitle> <DaysForHourDisplay>int</DaysForHourDisplay> <DaysForDayDisplay>int</DaysForDayDisplay> <DaysForWeekDisplay>int</DaysForWeekDisplay> <DaysForBiWeeklyDisplay>int</DaysForBiWeeklyDisplay> <DaysForMonthDisplay>int</DaysForMonthDisplay> <DaysForQuarterDisplay>int</DaysForQuarterDisplay> <DaysForSemiAnnualDisplay>int</DaysForSemiAnnualDisplay> <DaysForAnnualDisplay>int</DaysForAnnualDisplay> <DaysForBiAnnualDisplay>int</DaysForBiAnnualDisplay> <DaysForPentaAnnualDisplay>int</DaysForPentaAnnualDisplay> </Design> </StockChart> <Security> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <CIK>string</CIK> <Cusip>string</Cusip> <Symbol>string</Symbol> <ISIN>string</ISIN> <Valoren>string</Valoren> <Name>string</Name> <Market>string</Market> <CategoryOrIndustry>string</CategoryOrIndustry> </Security> <StartTime>string</StartTime> <EndTime>string</EndTime> <Width>int</Width> <Height>int</Height> <Title>string</Title> <Style>Line or Candle or Stick or Area or Percentage or LinePercentage
or CandlePercentage or StickPercentage or AreaPercentage
</Style> <Url>string</Url> </GetRealChartResult> </GetRealChartResponse> </soap:Body> </soap:Envelope>

REST GET Request for GetRealChart

Request

GET http://www.xignite.com/xRealTime.asmx/GetRealChart?
Exchange=string&Symbol=string&AdditionalSymbols=string&StartTime=string
&EndTime=string&Style=string&Width=string&Height=string HTTP/1.1 Host: www.xignite.com

Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<IntradayChart xmlns="http://www.xignite.com/services/">
  <StockChart>
    <Common>
      <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Design> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Secure>boolean</Secure> <TextTitle>string</TextTitle> <TextHeader>string</TextHeader> <TextFooter>string</TextFooter> <TextPriceLine>string</TextPriceLine> <TextVolumeBar>string</TextVolumeBar> <TextHighest>string</TextHighest> <TextLowest>string</TextLowest> <TextOpen>string</TextOpen> <TextClose>string</TextClose> <TextUp>string</TextUp> <TextDown>string</TextDown> <ColorBackground>string</ColorBackground> <ColorBackWall>string</ColorBackWall> <ColorVolumeBackWall>string</ColorVolumeBackWall> <ShowVolumeBackWall>boolean</ShowVolumeBackWall> <ColorHighlight>string</ColorHighlight> <ColorPriceLine>string</ColorPriceLine> <ColorVolumeBar>string</ColorVolumeBar> <ColorVolumeBarFill>string</ColorVolumeBarFill> <ColorHigh>string</ColorHigh> <ColorStickUp>string</ColorStickUp> <ColorStickLow>string</ColorStickLow> <ColorConstant>string</ColorConstant> <ColorLow>string</ColorLow> <ColorPoint>string</ColorPoint> <ColorTitle>string</ColorTitle> <ColorFooter>string</ColorFooter> <ColorHeader>string</ColorHeader> <ColorAxis>string</ColorAxis> <ColorGrid>string</ColorGrid> <ColorFonts>string</ColorFonts> <ColorStripe>string</ColorStripe> <ColorOpen>string</ColorOpen> <ColorClose>string</ColorClose> <ColorVerticalGrid>string</ColorVerticalGrid> <ColorHorizontalGrid>string</ColorHorizontalGrid> <ColorUp>string</ColorUp> <ColorDown>string</ColorDown> <ColorHighLowLine>string</ColorHighLowLine> <ColorCollection>string</ColorCollection> <GridHorizontalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridHorizontalStyle> <GridVerticalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridVerticalStyle> <GridHorizontalWidth>int</GridHorizontalWidth> <GridVerticalWidth>int</GridVerticalWidth> <ColorFrame>string</ColorFrame> <FrameBorder>string</FrameBorder> <FormatPriceLine>string</FormatPriceLine> <FormatVolume>string</FormatVolume> <FormatDate>string</FormatDate> <GradeBackground>boolean</GradeBackground> <GradeBackwall>boolean</GradeBackwall> <WaterMark>string</WaterMark> <WaterMarkTopMargin>int</WaterMarkTopMargin> <WaterMarkLeftMargin>int</WaterMarkLeftMargin> <WaterMarkTransparency>int</WaterMarkTransparency> <PointSize>float</PointSize> <StackVariationLabels>boolean</StackVariationLabels> <ShowAxisLabelInLegend>boolean</ShowAxisLabelInLegend> <LineWidth>int</LineWidth> <SplitPercent>int</SplitPercent> <ShowHigh>boolean</ShowHigh> <ShowLow>boolean</ShowLow> <ShowOpen>boolean</ShowOpen> <ShowClose>boolean</ShowClose> <ShowVolume>boolean</ShowVolume> <ShowUpVariation>boolean</ShowUpVariation> <ShowDownVariation>boolean</ShowDownVariation> <ShowLegend>boolean</ShowLegend> <VariationYear>int</VariationYear> <VolumeDivider>int</VolumeDivider> <VolumeTextOffset>int</VolumeTextOffset> <PriceTextOffset>int</PriceTextOffset> <FrameType>None or Colonial or Common or Embed or Emboss or FrameOpenRight
or FrameOpenRL or OneBarGradient or RoundedUp or SlimRoundedShadowed
</FrameType> <Projection>Orthogonal or OrthogonalElevated or OrthogonalHorizontalLeft
or OrthogonalHorizontalRight or OrthogonalHalf or OrthogonalHalfHorizontalLeft
or OrthogonalHalfHorizontalRight or OrthogonalHalfRotated
or OrthogonalHalfElevated or Perspective or PerspectiveHorizontalLeft
or PerspectiveHorizontalRight or PerspectiveRotated
or PerspectiveElevated or PerspectiveTilted</Projection> <MarginTop>int</MarginTop> <MarginBottom>int</MarginBottom> <MarginLeft>int</MarginLeft> <MarginRight>int</MarginRight> <FontFamily>string</FontFamily> <FontSizeHeader>int</FontSizeHeader> <FontSizeFooter>int</FontSizeFooter> <Height>double</Height> <Width>double</Width> <ZoomPercent>int</ZoomPercent> <LegendBox>boolean</LegendBox> <ColorLegendBackground>string</ColorLegendBackground> <ColorLegendBorder>string</ColorLegendBorder> <LegendVerticalPosition>int</LegendVerticalPosition> <LegendHorizontalPosition>int</LegendHorizontalPosition> <Reload>boolean</Reload> <ShowPriceChartLabels>boolean</ShowPriceChartLabels> <TickPrecision>Tick or Millisecond or Second or Minute or Hour or Day
or Week or Month</TickPrecision> <TickPeriods>int</TickPeriods> <WaterMarkHorizontalAlign>Center or Left or Right</WaterMarkHorizontalAlign> <LightScheme>None or SoftTopLeft or SoftFrontal or SoftTopRight or ShinyTopLeft
or ShinyFrontal or ShinyTopRight or MetallicLustre
or NorthernLights</LightScheme> <FontSizeLegend>int</FontSizeLegend> <FontSizeAxes>int</FontSizeAxes> <FontSizeTitle>int</FontSizeTitle> <DaysForHourDisplay>int</DaysForHourDisplay> <DaysForDayDisplay>int</DaysForDayDisplay> <DaysForWeekDisplay>int</DaysForWeekDisplay> <DaysForBiWeeklyDisplay>int</DaysForBiWeeklyDisplay> <DaysForMonthDisplay>int</DaysForMonthDisplay> <DaysForQuarterDisplay>int</DaysForQuarterDisplay> <DaysForSemiAnnualDisplay>int</DaysForSemiAnnualDisplay> <DaysForAnnualDisplay>int</DaysForAnnualDisplay> <DaysForBiAnnualDisplay>int</DaysForBiAnnualDisplay> <DaysForPentaAnnualDisplay>int</DaysForPentaAnnualDisplay> </Design> </StockChart> <Security> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <CIK>string</CIK> <Cusip>string</Cusip> <Symbol>string</Symbol> <ISIN>string</ISIN> <Valoren>string</Valoren> <Name>string</Name> <Market>string</Market> <CategoryOrIndustry>string</CategoryOrIndustry> </Security> <StartTime>string</StartTime> <EndTime>string</EndTime> <Width>int</Width> <Height>int</Height> <Title>string</Title> <Style>Line or Candle or Stick or Area or Percentage or LinePercentage
or CandlePercentage or StickPercentage or AreaPercentage
</Style> <Url>string</Url> </IntradayChart>

REST POST Request for GetRealChart

Request

POST http://www.xignite.com/xRealTime.asmx/GetRealChart HTTP/1.1
Host: www.xignite.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Exchange=string&Symbol=string&AdditionalSymbols=string&StartTime=string
&EndTime=string&Style=string&Width=string&Height=string

Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<IntradayChart xmlns="http://www.xignite.com/services/">
  <StockChart>
    <Common>
      <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Design> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <Secure>boolean</Secure> <TextTitle>string</TextTitle> <TextHeader>string</TextHeader> <TextFooter>string</TextFooter> <TextPriceLine>string</TextPriceLine> <TextVolumeBar>string</TextVolumeBar> <TextHighest>string</TextHighest> <TextLowest>string</TextLowest> <TextOpen>string</TextOpen> <TextClose>string</TextClose> <TextUp>string</TextUp> <TextDown>string</TextDown> <ColorBackground>string</ColorBackground> <ColorBackWall>string</ColorBackWall> <ColorVolumeBackWall>string</ColorVolumeBackWall> <ShowVolumeBackWall>boolean</ShowVolumeBackWall> <ColorHighlight>string</ColorHighlight> <ColorPriceLine>string</ColorPriceLine> <ColorVolumeBar>string</ColorVolumeBar> <ColorVolumeBarFill>string</ColorVolumeBarFill> <ColorHigh>string</ColorHigh> <ColorStickUp>string</ColorStickUp> <ColorStickLow>string</ColorStickLow> <ColorConstant>string</ColorConstant> <ColorLow>string</ColorLow> <ColorPoint>string</ColorPoint> <ColorTitle>string</ColorTitle> <ColorFooter>string</ColorFooter> <ColorHeader>string</ColorHeader> <ColorAxis>string</ColorAxis> <ColorGrid>string</ColorGrid> <ColorFonts>string</ColorFonts> <ColorStripe>string</ColorStripe> <ColorOpen>string</ColorOpen> <ColorClose>string</ColorClose> <ColorVerticalGrid>string</ColorVerticalGrid> <ColorHorizontalGrid>string</ColorHorizontalGrid> <ColorUp>string</ColorUp> <ColorDown>string</ColorDown> <ColorHighLowLine>string</ColorHighLowLine> <ColorCollection>string</ColorCollection> <GridHorizontalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridHorizontalStyle> <GridVerticalStyle>Solid or Dot or Dash or DashDot or DashDotDot</GridVerticalStyle> <GridHorizontalWidth>int</GridHorizontalWidth> <GridVerticalWidth>int</GridVerticalWidth> <ColorFrame>string</ColorFrame> <FrameBorder>string</FrameBorder> <FormatPriceLine>string</FormatPriceLine> <FormatVolume>string</FormatVolume> <FormatDate>string</FormatDate> <GradeBackground>boolean</GradeBackground> <GradeBackwall>boolean</GradeBackwall> <WaterMark>string</WaterMark> <WaterMarkTopMargin>int</WaterMarkTopMargin> <WaterMarkLeftMargin>int</WaterMarkLeftMargin> <WaterMarkTransparency>int</WaterMarkTransparency> <PointSize>float</PointSize> <StackVariationLabels>boolean</StackVariationLabels> <ShowAxisLabelInLegend>boolean</ShowAxisLabelInLegend> <LineWidth>int</LineWidth> <SplitPercent>int</SplitPercent> <ShowHigh>boolean</ShowHigh> <ShowLow>boolean</ShowLow> <ShowOpen>boolean</ShowOpen> <ShowClose>boolean</ShowClose> <ShowVolume>boolean</ShowVolume> <ShowUpVariation>boolean</ShowUpVariation> <ShowDownVariation>boolean</ShowDownVariation> <ShowLegend>boolean</ShowLegend> <VariationYear>int</VariationYear> <VolumeDivider>int</VolumeDivider> <VolumeTextOffset>int</VolumeTextOffset> <PriceTextOffset>int</PriceTextOffset> <FrameType>None or Colonial or Common or Embed or Emboss or FrameOpenRight
or FrameOpenRL or OneBarGradient or RoundedUp or SlimRoundedShadowed
</FrameType> <Projection>Orthogonal or OrthogonalElevated or OrthogonalHorizontalLeft
or OrthogonalHorizontalRight or OrthogonalHalf or OrthogonalHalfHorizontalLeft
or OrthogonalHalfHorizontalRight or OrthogonalHalfRotated
or OrthogonalHalfElevated or Perspective or PerspectiveHorizontalLeft
or PerspectiveHorizontalRight or PerspectiveRotated
or PerspectiveElevated or PerspectiveTilted</Projection> <MarginTop>int</MarginTop> <MarginBottom>int</MarginBottom> <MarginLeft>int</MarginLeft> <MarginRight>int</MarginRight> <FontFamily>string</FontFamily> <FontSizeHeader>int</FontSizeHeader> <FontSizeFooter>int</FontSizeFooter> <Height>double</Height> <Width>double</Width> <ZoomPercent>int</ZoomPercent> <LegendBox>boolean</LegendBox> <ColorLegendBackground>string</ColorLegendBackground> <ColorLegendBorder>string</ColorLegendBorder> <LegendVerticalPosition>int</LegendVerticalPosition> <LegendHorizontalPosition>int</LegendHorizontalPosition> <Reload>boolean</Reload> <ShowPriceChartLabels>boolean</ShowPriceChartLabels> <TickPrecision>Tick or Millisecond or Second or Minute or Hour or Day
or Week or Month</TickPrecision> <TickPeriods>int</TickPeriods> <WaterMarkHorizontalAlign>Center or Left or Right</WaterMarkHorizontalAlign> <LightScheme>None or SoftTopLeft or SoftFrontal or SoftTopRight or ShinyTopLeft
or ShinyFrontal or ShinyTopRight or MetallicLustre
or NorthernLights</LightScheme> <FontSizeLegend>int</FontSizeLegend> <FontSizeAxes>int</FontSizeAxes> <FontSizeTitle>int</FontSizeTitle> <DaysForHourDisplay>int</DaysForHourDisplay> <DaysForDayDisplay>int</DaysForDayDisplay> <DaysForWeekDisplay>int</DaysForWeekDisplay> <DaysForBiWeeklyDisplay>int</DaysForBiWeeklyDisplay> <DaysForMonthDisplay>int</DaysForMonthDisplay> <DaysForQuarterDisplay>int</DaysForQuarterDisplay> <DaysForSemiAnnualDisplay>int</DaysForSemiAnnualDisplay> <DaysForAnnualDisplay>int</DaysForAnnualDisplay> <DaysForBiAnnualDisplay>int</DaysForBiAnnualDisplay> <DaysForPentaAnnualDisplay>int</DaysForPentaAnnualDisplay> </Design> </StockChart> <Security> <Common> <Outcome>Success or SystemError or RequestError or RegistrationError
</Outcome> <Message>string</Message> <Identity>string</Identity> <Delay>double</Delay> </Common> <CIK>string</CIK> <Cusip>string</Cusip> <Symbol>string</Symbol> <ISIN>string</ISIN> <Valoren>string</Valoren> <Name>string</Name> <Market>string</Market> <CategoryOrIndustry>string</CategoryOrIndustry> </Security> <StartTime>string</StartTime> <EndTime>string</EndTime> <Width>int</Width> <Height>int</Height> <Title>string</Title> <Style>Line or Candle or Stick or Area or Percentage or LinePercentage
or CandlePercentage or StickPercentage or AreaPercentage
</Style> <Url>string</Url> </IntradayChart>

Knowledge Base Search

Find answers to your questions - search our FAQs by keyword.

Loading FAQs...

Here are our most popular FAQs. Alternatively you can search our FAQs by using the search box above or browse our FAQs.

Contact Support

Email

Standard Support: 1 Business Day
Premium Support: 2 Business Hours
support@xignite.com

Phone

Monday-Friday 9:00am-6:00pm Eastern US Time
Toll-Free: 1-866-965-7627
Phone: (650) 655-3700

See more information

Request a Consultation

We're here to assist you with your questions
Talk to an expert now