Recognia™ Leaders in chart pattern recognition
Home Site Index Contact Us
Private Label Services
Pattern Recognition
Services FAQ
Multimedia Intro
Interactive Demo
Example Site
Programmer's Corner
Recognia API
Programmer's FAQ
Trader's Reference
Technical Analysis Concepts
Pattern Descriptions
Pattern Characteristics
Pattern Statistics
Reference Materials
Trader's FAQ
About Recognia
Corporate Overview
News and Press
Careers
Investor Information
Corporate FAQ
Contact Us
Site Index & Search

Canadian Society of Technical Analysts

For Technical Analysis news visit:

Canadian Society of Technical Analysts (CSTA)

Canadian Securities Institute

For Industry Education visit:

Canadian Securities Institute


 

Programmer's Corner
Overview | XML and XSLT | API Documentation

 


XML and XSLT


The Recognia API returns XML by default. Recognia's XML returns have a standard XML header to provide information to the developer about the API, such as version information, and the API call, such as warning messages. A sample XML return from the fictional "query" command is provided below.

The API supports applying XSL Transforms (XSLT) to the results of an API call in order to transform the XML into an alternate format such as HTML or Text. For example, it may desirable to return the following results as an HTML table so that it can be directly embedded in a web page. To apply a transform the XSLT must have be registered with the API. Then the XSLT identifier can be specified in the API call (as a parameter) to transform the XML into the alternate format. Recognia's clients may develop their own XSLT style-sheets or may use or modify sample XSLT style-sheets developed by Recognia.

<?xml version="1.0" encoding="UTF-8" ?>
<pri>
 <header>
  <api version="2.0000" />
  <pricing_data>     All information copyright respective trademark holders.   </pricing_data>
  <authenticated value="true" />
  <transaction value="13201" />
  <errors count="0" />
  <warnings count="1">
   <parameter>
    <name>qty</name>
    <message>Quantity not specified; default of 100 used</message>
   </parameter>
  </warnings>
 </header>  <list count="100">
  <event class="C">
   <breakout_price>13.210000</breakout_price>
   <confirmation_type>C</confirmation_type>
   <confirmed_timestamp>2002-05-09-00.00.00.000000</confirmed_timestamp>
   <consensus_rating>45</consensus_rating>
   <duration>54</duration>
   <end_timestamp>2002-05-09-00.00.00.000000</end_timestamp>
   <event_id>3839997</event_id>
   <event_type_id>5</event_type_id>
   <event_type_name>Double Top</event_type_name>
   <event_type_specific />
   <exchange_symbol>TORONTO</exchange_symbol>
   <expected_percentage_move>0.138531</expected_percentage_move>
   <expected_price_move>-1.830000</expected_price_move>
   <inbound_trend_duration>111</inbound_trend_duration>
   <inbound_trend_start_timestamp>      2001-09-21-00.00.00.000000    </inbound_trend_start_timestamp>
   <instrument_name>Abitibi Price Inc</instrument_name>
   <instrument_symbol>A</instrument_symbol>
   <instrument_type>S</instrument_type>
   <price_period>D</price_period>
   <pricing>
    <volume>2719100</volume>
    <open>13.640000</open>
    <low>13.000000</low>
    <open_interest />
    <high>13.640000</high>
    <close>13.160000</close>
    <timestamp>2002-05-09-00.00.00.000000</timestamp>
   </pricing>
   <start_timestamp>2002-02-22-00.00.00.000000</start_timestamp>
   <symmetry_rating>20</symmetry_rating>
   <trade_type>S</trade_type>
   <trend_change_type>R</trend_change_type>
  </event>    ...    ...    ...  </list> </pri>


Copyright © 2007 Recognia Inc. All rights reserved. Technical Event® and Recognia® are registered trade-marks of Recognia Inc. Information contained within this site is provided for informational purposes only. Please read our disclaimer and terms of use for more information.

Site design by LightMix