URL

An example call to GetChartBars would be:
http://globalcurrencies.xignite.com/xGlobalCurrencies.json/GetChartBars?_token=[YOUR_TOKEN]&Symbol=EURUSD&StartTime=11/17/2017 9:30 am&EndTime=11/24/2017 10:00 am&PriceType=Mid&Precision=Minutes&Period=15

Inputs

Parameter Description Example Required
Symbol Currency pairs for which period bar is requested EURUSD Yes
StartTime <p>The starting time for the set of summarized trade bars (in the exchange's local time zone).</p><p>Note that the system's schedule runs on UTC time so to retrieve data without ambiguity, please use the following format: {date} {time}, where the date and time correspond to the local time of the exchange.</p><p>Multiple formats are supported. The date may be entered as YYYY/MM/DD or D/M/YY. Time may be entered in 12-hr or 24-hr format: HH:MM AM/PM or HH:MM</p> 11/17/2017 9:30 am Yes
EndTime <p>The ending time for the set of summarized trade bars (in the exchange's local time zone).</p><p>Note that the system's schedule runs on UTC time so to retrieve data without ambiguity, please use the following format: {date} {time}, where the date and time correspond to the local time of the exchange.</p><p>Multiple formats are supported. The date may be entered as YYYY/MM/DD or D/M/YY. Time may be entered in 12-hr or 24-hr format: HH:MM AM/PM or HH:MM</p> 11/24/2017 10:00 am Yes
PriceType Specified the type (Bid, Ask, Mid) of historical exchange rate quoted in Open, High, Low and Close. Mid is assumed if blank. Mid Yes
Precision <p>The precision unit to apply to the summarized quote bars. Choose:</p><ul><li><b>Minutes</b> to summarize quotes by the number of minutes specified by Periods. </li><li><b>Hours</b> to summarize quotes by the number of hours specified by Periods. </li></ul><p>For instance, Precision=Minutes and Period=15 will return one quote bar every fifteen minutes, including the open, high, low and close within that fifteen minute period.</p><p>Note: This API restricts the number of bars that may be requested per API call. Bar sizes smaller than 1 minute are limited to one week’s worth of data, and bar sizes between 1 minute and 5 minutes are limited to one year’s worth of data. A request error will be returned if you call for bars beyond those limits.</p> Minutes Yes
Period <p>Used in combination with Precision to define the number of units to apply to summarized quote bars. For instance, Precision=Minutes and Period=15 will return one summarized quote bar every fifteen minutes.</p> 15 Yes

Outputs

Parameter Description
CurrencyChartBars Returns a set of ChartBars.
Outcome The outcome of the call. Possible values are: Success, SystemError, RequestError and RegistrationError.
Message A short message describing the error if the Outcome field contains RequestError, RegistrationError, or SystemError. An informational message is sometimes provided when Outcome is Success.
Identity A description of how the call was authenticated. Possible values are: IP, Cookie, Header and Request.
Delay 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 network latency experienced by the caller.
Timing The timing, or delay frequency, of the data being returned. Valid values are Real Time, Delayed and Historical. At this time, only Real Time timing is supported for XigniteGlobalCurrencies.
PriceType The specified the type (Bid, Ask, Mid) of historical exchange rate quoted in Open, High, Low and Close.
CurrencyDescription Instance of Currency Description
Symbol Currency pairs for which period bar is requested
BaseCurrency Base currency of the currency pair.
QuoteCurrency Quote currency of the currency pair.
ChartBars Returns an array of ChartBar objects.
ChartBar Each instance represents a summarized quote bar.
StartDate The start date for the quote bar.
StartTime The start time for the quote bar.
EndDate The end date for the quote bar.
EndTime The end time for the quote bar.
UTCOffset <p>The offset or difference, in hours, from the local exchange time to UTC. For example, the offset is -5 for Eastern Standard Time. This offset value is applicable to the Last price time (the DateTime output parameter) returned. </p><p>This property can be used to convert the (local) DateTime to UTC: </p><ul><li><b>Formula</b>: DateTime - UTCOffset = DateTime UTC </li><li><b>Example</b>: DateTime=2015-01-15 15:00:00 and UTCOffset=-5 results in DateTime UTC=2015-01-15 20:00:00 </li></ul>
Open First currency exchange rate quote in the Bar.
High Highest currency exchange rate quote in the Bar.
Low Lowest currency exchange rate quote in the Bar.
Close Last currency exchange rate quote in the Bar.
Volume This field is currently not supported. A default value of 0 (zero) will be returned.
Trades This field is currently not supported. A default value of 0 (zero) will be returned.
TWAP The time-weighted average price during the period.
VWAP This field is currently not supported. A default value of 0 (zero) will be returned.
Currency The currency of the quote.
Session This field is currently not supported. A default value of Market will be returned.
AdjustmentRatio This field is currently not supported. A default value of 1 (one) will be returned.


API Test Form

Try out the API for yourself from our API Test Form.



Sample Code for GetChartBars

ASPX/ASP.NET

<%@ Page Language="vb" %>
<%@ Import Namespace="System.Net" %>
<!-- here, XigniteGlobalCurrencies is the name of this assembly-->
<%@ Import Namespace="XigniteGlobalCurrencies" %>
<HTML>
<HEAD>
<script language="vb" runat="server">
' declare the return object globally so that you can reuse it around the page
Dim objCurrencyChartBars As CurrencyChartBars
' 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 objGlobalCurrenciesService As New XigniteGlobalCurrencies()
' add authentication info
Dim objHeader As New RemoteGlobalCurrencies.Header = new Header();
objHeader.Username = "YOUR_TOKEN" objCurrencyChartBars.HeaderValue = objHeader

' call the operation and load the return object
objCurrencyChartBars = objGlobalCurrenciesService.
GetChartBars("EURUSD", "11/17/2017 9:30 am", "11/24/2017 10:00 am", "Mid", RemoteGlobalCurrencies.TickPrecisions.Minutes, 15)
If Not objCurrencyChartBars Is Nothing Then
Select Case objCurrencyChartBars.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(objCurrencyChartBars.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 objCurrencyChartBars.ChartBars(0).AdjustmentRatio-->
<!-- other values could be consumed in the same manner-->
<%Response.Write(objCurrencyChartBars.ChartBars(0).AdjustmentRatio)%>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

C# (CSharp)

This code could be used in any type of application (Windows, console ...). Here, RemoteGlobalCurrencies is the web reference to the web service. Note that the default name for a web reference is generally "com.xignite.www". You will need to rename your web reference to use to use this code.

RemoteGlobalCurrencies.XigniteGlobalCurrencies objGlobalCurrenciesService;
objGlobalCurrenciesService = new RemoteGlobalCurrencies.XigniteGlobalCurrencies();
// add authentication info
RemoteGlobalCurrencies.Header objHeader = new RemoteGlobalCurrencies.Header();
objHeader.Username = "YOUR_TOKEN";
objGlobalCurrenciesService.HeaderValue = objHeader;

RemoteGlobalCurrencies.CurrencyChartBars objCurrencyChartBars;
objCurrencyChartBars = objGlobalCurrenciesService.
GetChartBars("EURUSD", "11/17/2017 9:30 am", "11/24/2017 10:00 am", "Mid", RemoteGlobalCurrencies.TickPrecisions.Minutes, 15);

if (objCurrencyChartBars == 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(objCurrencyChartBars.Outcome)
{
case RemoteGlobalCurrencies.OutcomeTypes.Success:
// add processing for displaying the results, e.g.
// display the value for objCurrencyChartBars.ChartBars[0].AdjustmentRatio
// other values could be consumed in the same manner
Console.Write(objCurrencyChartBars.ChartBars[0].AdjustmentRatio);
break;
default:
// add processing for handling request problems, e.g.
// you could pass back the info message received from the service
Console.Write(objCurrencyChartBars.Message);
break;
}
}

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://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?WSDL
C:\axis>javac com\xignite\*.java
C:\axis>
C:\axis>YOUR_AXIS_INSTALLATION\bin\wsdl2java.bat -ap -uri http://globalcurrencies.xignite.com/xGlobalCurrencies.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/*" XigniteGlobalCurrenciesDemo.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.XigniteGlobalCurrenciesXigniteGlobalCurrenciesSoapStub; import com.xignite.www.services.XigniteGlobalCurrenciesXigniteGlobalCurrenciesSoapStub.*;
public class XigniteGlobalCurrenciesDemo {
public static void main(String[] args) throws Exception { // Instantiate the XigniteGlobalCurrencies proxy
// proxy object using the Helper class.
// This class was autogenerated by the WSDL2Java tool

try { XigniteGlobalCurrenciesXigniteGlobalCurrenciesSoapStub stub = new XigniteGlobalCurrenciesXigniteGlobalCurrenciesSoapStub(); // Instantiate the return class from the operation
// This class was autogenerated by the WSDL2Java tool
GetChartBars getChartBarsArguments = new GetChartBars(); getChartBarsArguments.setSymbol("EURUSD");
getChartBarsArguments.setStartTime("11/17/2017 9:30 am");
getChartBarsArguments.setEndTime("11/24/2017 10:00 am");
getChartBarsArguments.setPriceType("Mid");
getChartBarsArguments.setPrecision("TickPrecisions.Minutes");
getChartBarsArguments.setPeriod(15);
// Add authentication info
HeaderE header = new HeaderE(); Header myHeader = new Header(); myHeader.setUsername("YOUR_TOKEN"); header.setHeader(myHeader);

GetChartBarsResponse response = stub.getChartBars(getChartBarsArguments, header); CurrencyChartBars objCurrencyChartBars = response.getGetChartBarsResult(); // objCurrencyChartBars is pointing to the result of the operation
if (objCurrencyChartBars.getOutcome() == OutcomeTypes.RegistrationError) { // code to handle registration errors
System.out.println(OutcomeTypes.RegistrationError.toString() + ": " + objCurrencyChartBars.getMessage()); } else if (objCurrencyChartBars.getOutcome() == OutcomeTypes.RequestError) { // code to handle request errors
System.out.println(OutcomeTypes.RequestError.toString() + ": " + objCurrencyChartBars.getMessage()); } else if (objCurrencyChartBars.getOutcome() == OutcomeTypes.SystemError) { // code to handle system errors
System.out.println(OutcomeTypes.SystemError.toString() + ": " + objCurrencyChartBars.getMessage()); } else // Success
{ System.out.println(objCurrencyChartBars.getChartBars()[0].getAdjustmentRatio()); } } catch (Exception ex) { // add exception handling code here

} } }

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://globalcurrencies.xignite.com/xGlobalCurrencies.asmx');

# .Net requires the method, header, and attributes to be fully qualified
my $method = SOAP::Data->name('GetChartBars')
->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(Symbol => "EURUSD")->uri($namespace),
SOAP::Data->name(StartTime => "11/17/2017 9:30 am")->uri($namespace),
SOAP::Data->name(EndTime => "11/24/2017 10:00 am")->uri($namespace),
SOAP::Data->name(PriceType => "Mid")->uri($namespace),
SOAP::Data->name(Precision => "Minutes")->uri($namespace),
SOAP::Data->name(Period => "15")->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('//GetChartBarsResult/objCurrencyChartBars/ChartBars[0]/AdjustmentRatio'), "\n";
}

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://globalcurrencies.xignite.com/xGlobalCurrencies.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(
"Symbol" => "EURUSD",
"StartTime" => "11/17/2017 9:30 am",
"EndTime" => "11/24/2017 10:00 am",
"PriceType" => "Mid",
"Precision" => "Minutes",
"Period" => "15");
// call the service, passing the parameters and the name of the operation
$result = $client->call('GetChartBars', 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>';
?>

PHP 5

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://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?WSDL');
// create an array of parameters
$param = array( "Symbol" => "EURUSD",
"StartTime" => "11/17/2017 9:30 am",
"EndTime" => "11/24/2017 10:00 am",
"PriceType" => "Mid",
"Precision" => "Minutes",
"Period" => "15");
// 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->GetChartBars($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>'; ?>

Ruby

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

require 'rubygems'
require 'savon'
require 'pp'

url = "http://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?WSDL"

soap_header = { "Header" => { "@xmlns" => "http://www.xignite.com/services/", "Username" => "YOUR_TOKEN" } }
client = Savon.client(wsdl: url, :soap_header => soap_header, convert_request_keys_to: :none, env_namespace: 'soap')
response = client.call(:get_chart_bars, message: {
"@xmlns" => "http://www.xignite.com/services/",
Symbol: 'EURUSD',
StartTime: '11/17/2017 9:30 am',
EndTime: '11/24/2017 10:00 am',
PriceType: 'Mid',
Precision: 'Minutes',
Period: '15'
})

pp response.to_hash

VB.NET

Dim objGlobalCurrenciesService As New RemoteGlobalCurrencies.XigniteGlobalCurrencies()
Dim objHeader As New RemoteGlobalCurrencies.Header = new RemoteGlobalCurrencies.Header();
objHeader.Username = "YOUR_TOKEN" objGlobalCurrencies.HeaderValue = objHeader

Dim objCurrencyChartBars As RemoteGlobalCurrencies.CurrencyChartBars _
= objGlobalCurrenciesService.GetChartBars("EURUSD", "11/17/2017 9:30 am", "11/24/2017 10:00 am", "Mid", RemoteGlobalCurrencies.TickPrecisions.Minutes, 15)

If Not objCurrencyChartBars Is Nothing Then
Select Case objCurrencyChartBars.Outcome
Case RemoteGlobalCurrencies.OutcomeTypes.RegistrationError
' display the error to facilitate diagnostics, e.g.
Console.WriteLine(objCurrencyChartBars.Message)
Case RemoteGlobalCurrencies.OutcomeTypes.RequestError
' add processing for handling request problems, e.g.
' you could pass back the info message received from the service
Console.WriteLine(objCurrencyChartBars.Message)
Case RemoteGlobalCurrencies.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 objCurrencyChartBars.ChartBars(0).AdjustmentRatio
' other values could be consumed in the same manner
Console.WriteLine(objCurrencyChartBars.ChartBars(0).AdjustmentRatio)
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://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?WSDL"

' load the result into the DOM object
Set objResult = objService.GetChartBars("EURUSD", "11/17/2017 9:30 am", "11/24/2017 10:00 am", "Mid", RemoteGlobalCurrencies.TickPrecisions.Minutes, 15)

' 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://globalcurrencies.xignite.com/xGlobalCurrencies.asmx/GetChartBars?Symbol=EURUSD&StartTime=11/17/2017 9:30 am&EndTime=11/24/2017 10:00 am&PriceType=Mid&Precision=TickPrecisionsMinutes&Period=15


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:CurrencyChartBars">
<p>
<xsl:value-of select="xi:ChartBars/xi:AdjustmentRatio"/>
</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.