XML Data Feed Specifications

Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding information in a format that is both human-readable and machine-readable. Many programming languages or application programming interfaces (APIs) have been developed for software developers to use to process XML data.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE forexfeed [
<!ELEMENT forexfeed (head*,quotes*)>
<!ELEMENT head (name,value)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT value (#PCDATA)>
<!ELEMENT quote (symbol,title,timestamp,open,high,low,close)>
<!ELEMENT symbol (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT timestamp (#PCDATA)>
<!ELEMENT bid (#PCDATA)>
<!ELEMENT ask (#PCDATA)>
<!ELEMENT mid (#PCDATA)>
]>
<forexfeed>
<head>
        <name>Status</name>
        <value>OK</value>
</head>
<head>
        <name>Version</name>
        <value>1.0</value>
</head>
<head>
        <name>License</name>
        <value>ALL USE OF THIS DATA IS REGULATED UNDER THE TERMS OF SERVICE...</value>
</head>

<head>
        <name>UTC Time</name>
        <value>[EPOCH TIMESTAMP HERE]</value>
</head>
<head>
        <name>UTC Timestamp</name>
        <value>YYYY-MM-DD hh:mm:ss</value>
</head>

[...ADDITIONAL HEADER LINES HERE...]

<quote>
        <symbol>EURUSD</symbol>
        <title>EUR/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>1.27169</bid>
        <ask>1.27179</ask>
        <mid>1.27174</mid>
</quote>

<quote>
        <symbol>GBPUSD</symbol>
        <title>GBP/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>1.5884</bid>
        <ask>1.5886</ask>
        <mid>1.5885</mid>
</quote>

<quote>
        <symbol>USDCHF</symbol>
        <title>USD/CHF</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>0.9465</bid>
        <ask>0.9467</ask>
        <mid>0.9466</mid>
</quote>

<quote>
        <symbol>USDCAD</symbol>
        <title>USD/CAD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>1.0011</bid>
        <ask>1.0013</ask>
        <mid>1.0012</mid>
</quote>

<quote>
        <symbol>AUDUSD</symbol>
        <title>AUD/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>1.0448</bid>
        <ask>1.0450</ask>
        <mid>1.0449</mid>
</quote>

<quote>
        <symbol>USDJPY</symbol>
        <title>USD/JPY</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>79.52</bid>
        <ask>79.52</ask>
        <mid>79.52</mid>
</quote>

<quote>
        <symbol>XAUUSD</symbol>
        <title>XAU/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>1728.92</bid>
        <ask>1729.23</ask>
        <mid>1729.07</mid>
</quote>

<quote>
        <symbol>XAGUSD</symbol>
        <title>XAG/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <bid>32.6347</bid>
        <ask>32.6627</ask>
        <mid>32.6487</mid>
</quote>
</forexfeed>


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE forexfeed [
<!ELEMENT forexfeed (head*,quotes*)>
<!ELEMENT head (name,value)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT value (#PCDATA)>
<!ELEMENT quote (symbol,title,timestamp,open,high,low,close)>
<!ELEMENT symbol (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT timestamp (#PCDATA)>
<!ELEMENT open (#PCDATA)>
<!ELEMENT high (#PCDATA)>
<!ELEMENT low (#PCDATA)>
<!ELEMENT close (#PCDATA)>
]>
<forexfeed>
<head>
        <name>Status</name>
        <value>OK</value>
</head>
<head>
        <name>Version</name>
        <value>1.0</value>
</head>
<head>
        <name>License</name>
        <value>ALL USE OF THIS DATA IS REGULATED UNDER THE TERMS OF SERVICE...</value>
</head>

<head>
        <name>UTC Time</name>
        <value>[EPOCH TIMESTAMP HERE]</value>
</head>
<head>
        <name>UTC Timestamp</name>
        <value>YYYY-MM-DD hh:mm:ss</value>
</head>

[...ADDITIONAL HEADER LINES HERE...]

<quote>
        <symbol>EURUSD</symbol>
        <title>EUR/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>1.27095</open>
        <high>1.27291</high>
        <low>1.27037</low>
        <close>1.27225</close>
</quote>

<quote>
        <symbol>GBPUSD</symbol>
        <title>GBP/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>1.5875</open>
        <high>1.5893</high>
        <low>1.5871</low>
        <close>1.5886</close>
</quote>

<quote>
        <symbol>USDCHF</symbol>
        <title>USD/CHF</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>0.9473</open>
        <high>0.9475</high>
        <low>0.9456</low>
        <close>0.9462</close>
</quote>

<quote>
        <symbol>USDCAD</symbol>
        <title>USD/CAD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>1.0019</open>
        <high>1.0024</high>
        <low>1.0009</low>
        <close>1.0010</close>
</quote>

<quote>
        <symbol>AUDUSD</symbol>
        <title>AUD/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>1.0444</open>
        <high>1.0456</high>
        <low>1.0435</low>
        <close>1.0453</close>
</quote>

<quote>
        <symbol>USDJPY</symbol>
        <title>USD/JPY</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>79.47</open>
        <high>79.54</high>
        <low>79.40</low>
        <close>79.53</close>
</quote>

<quote>
        <symbol>XAUUSD</symbol>
        <title>XAU/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>1726.43</open>
        <high>1729.71</high>
        <low>1726.02</low>
        <close>1728.65</close>
</quote>

<quote>
        <symbol>XAGUSD</symbol>
        <title>XAG/USD</title>
        <timestamp>[TIMESTAMP]</timestamp>
        <open>32.5151</open>
        <high>32.6733</high>
        <low>32.5150</low>
        <close>32.6373</close>
</quote>
</forexfeed>