TrueFX Market Data Web API



Similar documents
Live Trading Webinar and Daily Trading Plan Setups Log

Swap Value in Points** As low as Average Long Short

Phone: (Press '1' for Trade Desk or '2' for Enquiries)

Forex Spreads for Classic Accounts Majors. Forex Spreads for Advantage Accounts Majors

Contract Specifications 2015 Mini Trading Account

Forex Pair Performance Strength Score

Contract Specifications 2015 Dynamic STP Trading Account

INTRODUCING BROKER PROSPECTUS

AUTOCHARTIST TRADE IDEAS

This proposal is for the internal purposes of the recipient and its management only. The material is property of FXCM and its content cannot be

Margin Foreign Exchange

Symbol Instrument name Trading hours in CET Currencies AUDCAD Australian Dollar to Canadian Dollar 24h from Sunday 11:00pm to Friday 10:00 pm AUDCHF

Learn to Trade FOREX II

Instrument Tick Value* Tick Size Currency Trading Days Trading Hours Contract size (1 lot) Notes Financing Charges Spot FX AUD/USD USD

The Currency Cross Trader

Basic Forex Trading Guide

Monthly Statistics September 2015

DEALING HANDBOOK FOR FX TRADERS

Scandinavian. Exotic and Emerging

LMAX Exchange, UK s No.1 fastest growing technology firm in The Sunday Times 2014 Tech Track 100. A unique vision for global FX

TRADITION SEF PLATFORM SUPPLEMENT 2 VOLBROKER CURRENCY OPTIONS TRADING PLATFORM. ( Platform )

PIP INDEX CAPITAL MARKETS CONTRACT SPECIFICATIONS FOREX & PRECIOUS METALS

CFDs Market Information

TRADITION SEF PLATFORM SUPPLEMENT 2 VOLBROKER CURRENCY OPTIONS TRADING PLATFORM. ( Platform )

Please Note, the Predictive Franklin Volatility Gauge is analyzing the target currency pair against the US Dollar Index (USDX).

TRADING RULES ONLINE FX AND PRECIOUS METAL Effective August 10, 2015

CROSS PAIRS CURRENCY GUIDE

An Overview of the Fibozachi FOREX Force : A FOREX Command Center Page 3. Fibozachi FOREX Force : A Birds-Eye View of the FX Market Page 5

Dual Currency Investment. Product Sheet

FOREX Markets & Trading Currencies

How To Chart The Euro/Dollar With A 45 Degree Trendline

Vanilla FX OTC Options with Saxo Bank

Authorised and regulated by the Financial Services Authority, members of the NFA in the USA and regulated by ASIC in Australia

Lower Target Target Upper Target

SPOT FX Trading Strategies. Copyright Powerup Capital Sdn Bhd

Basket Method Made Easy!

O.K lets get started.

How To Get A Currency Price Chart On The Eurodollar

TFS-ICAP LIMITED VOLBROKER CURRENCY OPTIONS TRADING PLATFORM

High-frequency Trading Using Hlaiman EA Generator. Usage of the High-frequency Trading Module (HFT) for МТ4

Getting Started With Forex Trading: A Forex Primer. Member NASD, NYSE, SIPC, and NFA

Intraday spot foreign exchange market. Analysis of efficiency, liquidity and volatility.

Introduction to Forex Trading

Limit and Stop levels*** SIC Commission. > 500K$ < 500K$ $ per lot. Minimum Price Fluctuation. Currency Pair

Trading Forex. TradeStation. with. michael burke and jesus nava

Galvan Derivative Trading - CFD Market Information Sheets

Appendix C to Tradition SEF Rulebook Foreign Currency Product Listing

Currency Cross Trader

What Are the Best Times to Trade for Individual Currency Pairs?

The foreign exchange market operates 24 hours a day and as a result it

Evaluation of Super Trend indicator s parameters for major FOREX pairs over 12 years

Chapter 1.2. Currencies Come in Pairs

When you do this, you have just participated in the Forex market! You've exchanged one currency for another.

PRODUCT GUIDE AND CALENDAR FX2016 PRODUCTS

Chapter 1.2. Currencies Come in Pairs

FX Growth Manager Manual

CitiFX Risk Advisory Group. Trend Models. can simple trend strategies work long term? Dr Jessica James. Investor Risk Advisory Group

ActTrader Forex Trading Guide

FOREX. made easy. UNDERSTANDING THE BASICS. An educational tool by Blackwell Global.

Best Times to Trade Forex

BEST TIMES TO TRADE THE FOREX MARKET

The purpose of this ebook is to introduce newcomers to the forex marketplace and CMTRADING. Remember that trading in forex is inherently risky, and

F X Products Product Guide & Calendar

WallStreet FOREX Robot User Guide

A New Way to Trade. The Essential E-guide to Binary Options Trading

Forex Trading Guide & Tutorial For Beginner

Messaging API. API Specification Document Messaging API. Functionality: Send SMS Messages.

Renko Ashi Trading System 2

Advanced Trading Systems Collection FOREX TREND BREAK OUT SYSTEM

RBC s Forecast Currency Returns (against the USD) in Forecast FX returns vs USD, 2007, % including carry

Cointegration Pairs Trading Strategy on Derivatives

IB partnership manual

PRODUCTS PRODUCT GUIDE AND CALENDAR

Harvest Group. (Since 1994)

FOREX CURRENCY FORECAST ( )

The World s Elite Trading School. The Trusted Source for Online Investing and Day Trading Education Since What is a Forex?

Dynamic Pro Scalper. User Guide

AS DNB banka. DNB Link specification (B2B functional description)

FOREX CURRENCY FORECAST ( )

TRAITS OF SUCCESSFUL TRADERS: a four part series

Guide to Online Forex Trading

This document is to provide help and illustrations to users who wish to deliver SMS using the Pinnacle SMS Gateway via the HTTP Protocol.

Maverick FX Trading. Forex 101 Session #2 Forex Market Basics

Transcription:

TrueFX Market Data Web API Developer Guide The TrueFX Market Data Web API is a simple HTTP query/response protocol used by clients to access rates from TrueFX. Connecting to TrueFX Clients use HTTP queries to establish sessions that define the set of currency pairs, response format, and other details of the session. All requests are made to the following base URL: http://webrates.truefx.com/rates/connect.html Clients can interact with TrueFX in unauthenticated or authenticated sessions. Unauthenticated Sessions Unauthenticated requests using the base URL with no query parameters return a default response in the form of a snapshot session that includes data for a subset of 10 currency pairs. See Default Rate Format on page 3 for information about the snapshot response. Unauthenticated requests do not support the more powerful query-based API functionality, including incremental responses containing only the changed currency pairs. Example 1: URL for Snapshot Rates http://webrates.truefx.com/rates/connect.html Unauthenticated sessions can access the following currency pairs: EUR/USD USD/JPY GBP/USD EUR/GBP USD/CHF Authenticated Sessions EUR/JPY EUR/CHF USD/CAD AUD/USD GBP/JPY For a client to establish an authenticated session, you must have a registered TrueFX account with a registered, confirmed username and password. Authenticated sessions can access the following currency pairs: EUR/USD USD/JPY GBP/USD EUR/GBP CAD/CHF CAD/JPY CHF/JPY EUR/AUD Page 1

USD/CHF EUR/JPY EUR/CHF USD/CAD AUD/USD GBP/JPY AUD/CAD AUD/CHF AUD/JPY AUD/NZD EUR/CAD EUR/NOK EUR/NZD GBP/CAD GBP/CHF NZD/JPY NZD/USD USD/NOK USD/SEK Register with TrueFX To register with TrueFX, go to www.truefx.com. Establish an Authenticated Session Authenticated TrueFX rate access requires that a client establish a session by forming a query with a registered TrueFX username, password, and session qualifier. Optionally, you can specify properties of the session on the query, such as currency pairs and response format. See Market Data Web API Query Parameters on page 2 for query details. TrueFX substitutes default values for any missing session parameters in a query. The client can then make requests for rates by quoting the returned session ID in any further queries. On each poll, your custom client can override the session specification for that poll only by adding query parameters to the poll URL. For example, you can request different currency pairs or vary the format of the response. Market Data Web API Query Parameters Use the following parameters to build your TrueFX rate queries: Parameter Value Example u=username Required to establish an authenticated session. u=jstrader A registered TrueFX user name, one or more alphanumeric characters. See Register with TrueFX on page 2. p=password Required to establish an authenticated session. p=ou812 A registered TrueFX password, one or more alphanumeric characters. q=qualifier Required to establish an authenticated session. q=eurates One or more alpha numeric characters id=session ID Server-generated value returned with a id=jstrader:ou812:eurates:188290ef92 successful authenticated session request in the format username:password:qualifier:sessionid di=session ID The server-generated session ID, presented di=jstrader:ou812:eurates:188290ef92 when terminating a session c=currency Comma-separated ISO currency-pair names c=eur/usd,usd/jpy pairs f=format For more information about the response formats, see HTTP Responses on page 3. f=csv Page 2

Parameter Value Example csv to get responses in CSV format html to get responses in HTML Absent implies the default encoding (concatenated string) s=snapshot y to get a snapshot update of all currency pairs, changed or not Absent or any other value indicates an incremental update of only the currency pairs that have moved since the last update. HTTP Responses s=y TrueFX can respond in one of three ways to a client s HTTP request: 1. An authorization failure results in a simple not authorized message. A request with malformed query parameters is likely to be interpreted by TrueFX as an unauthenticated request and result in a snapshot session request, but this behavior is not guaranteed. In case of server failure, TrueFXresponds with a not authorized message. Your client must reestablish a new authenticated session with the failover server by sending an authentication request with username, password, and qualifier. 2. A successful authentication request results in an HTTP response with the session ID to be used in subsequent queries. 3. A rate response. A rate response contains only the requested currency pairs for which TrueFX has rates. The rate response can be in one of three formats: Default Rate Format on page 3 CSV Format on page 4 HTML Format on page 4 Default Rate Format If the client does not request a format or if the client does not establish an authenticated session, TrueFX returns the rate in the default format as a concatenated string with the following characteristics: Currency-pair symbols of seven characters each Bid pips of 3 characters each (534860). Trailing (AUD/USDUSD/JPY) hash marks are used to pad pip values of less Bid big numbers of 4 characters each (0.86#89.). than 3 characters. Leading hash marks are used to pad big-number values of less than 4 characters. pair s roll time (0.87078#90.619) Bid pips of 3 characters each (519852). Trailing hash marks are used to pad pip values of less pair s roll time (0.86148#89.763) than 3 characters. Millisecond timestamps of 13 characters each. Offer big numbers of 4 characters each (0.86#89.). Leading hash marks are used to pad big-number values of less than 4 characters. (12549864542851254986454400) Page 3

Example 2: Example Default Rate Format, Authenticated Session AUD/USDUSD/JPY0.86#89.5198520.86#89.5348600.87078#90.6190.86148#89.763 12549864542851254986454400 Example 3: Example Default Rate Format, Unauthenticated Session EUR/USDUSD/JPYGBP/USDEUR/GBPUSD/CHFEUR/JPYEUR/CHFUSD/CADAUD/USDGBP/JPY1.46 #89.1.590.921.02131.1.501.080.86143.8877464641077608329589255481121.46#89.1.590.92 1.02131.1.501.080.86143.9007554821147698439789475611451.47206#90.6191.604650.92196 1.03428133.0851.512521.098420.87078145.2521.46233#89.7101.592040.915881.02584131.796 1.509481.087260.86148143.0581254986453711125498645440412549864541981254986454344 125498645427912549864544881254986454286125498645450112549864542001254986455393 CSV Format TrueFX returns rates in CSV format as a single string with each currency pair separated by a space. Each grouping of currency pair data contains the following information: Currency-pair symbol (AUD/USD) Millisecond timestamp (1253890249578) Bid big figure (for example, 0.86) Bid points (for example, 565) Offer big figure (for example, 0.86) Offer points (for example, 583) Example 4: Example CSV Rate Format pair s roll time (for example, 0.86148) pair s roll time (for example, 0.87078) Open, the mid price at the currency pair s roll time (for example, 0.86821) AUD/USD,1253890249578,0.86,565,0.86,583,0.86148,0.87078,0.86821 USD/JPY,1253890249628,89., 897,89.,907,89.763,90.619,90.526 HTML Format TrueFX returns rates in HTML format as a simple table containing one currency pair per row with the following information: Currency-pair symbol (EUR/USD) Millisecond timestamp (1253834856482) Bid big figure (for example, 1.46) Bid points (for example, 431) Offer big figure (for example, 1.46) Offer points (for example, 483) Example 5: Example HTML Rate Format pair s roll time (for example, 1.46428) pair s roll time (for example, 1.46715) Open, the mid price at the currency pair s roll time (for example, 1.46662) <table><tr><td>eur/usd</td><td>1253834856482</td><td>1.46</td><td>431</td> <td>1.46</td><td>483</td><td>1.46428</td><td>1.46715</td><td>1.46662</td></tr> <tr><td>usd/jpy</td><td>1253835143636</td><td>91.</td><td>240</td><td>91.</td> <td>297</td><td>91.222</td><td>91.406</td><td>91.267</td></tr></table> Example Session The following HTTP request/response conversation represents a typical TrueFX Market Data Widget authenticated session. Page 4

Example 6: Authentication request from client http://webrates.truefx.com/rates/connect.html?u=jstrader&p=ou812&q=ozrates&c=aud/usd,usd/jpy &f=html&s=n Example 7: Authentication response from TrueFX jstrader:ou812:ozrates:1253889202204 Example 8: Rate request from client http://webrates.truefx.com/rates/connect.html?id=jstrader:ou812:ozrates:1253889202204 Example 9: Rate response from TrueFX <table><tr><td>aud/usd</td><td>1253889660610</td><td>0.86</td><td>416</td> <td>0.86</td><td>430</td><td>0.86148</td><td>0.87078</td><td>0.86821</td></tr> <tr><td>usd/jpy</td><td>1253889660595</td><td>90.</td><td>147</td><td>90.</td> <td>157</td><td>89.962</td><td>90.619</td><td>90.526</td></tr></table> Example 10: Specific currency pair request from client using established session http://webrates.truefx.com/rates/connect.html?id=jstrader:ou812:ozrates:1253889202204&c=eur/usd Example 11: Rate response from TrueFX with requested currency pair <table><tr><td>eur/usd</td><td>1255973422340</td><td>1.49</td><td>449</td> <td>1.49</td><td>460</td><td>1.48280</td><td>1.49640</td><td>1.48880</td> </tr></table> Page 5