Permalink
Browse files

Merge pull request #147 from spier/ecb

ECB
  • Loading branch information...
2 parents 123aba3 + 0e0793a commit f74a75e6502fba742de61d6be342cefcd98b94b2 @pjdonnelly pjdonnelly committed Dec 19, 2011
Showing with 44 additions and 0 deletions.
  1. +21 −0 ecb/eurofx.daily.xml
  2. +23 −0 ecb/eurofx.xml
View
21 ecb/eurofx.daily.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>
+ Daily rates of the European Central Bank (ECB),
+ quoted against the euro (base currency)
+ </description>
+ <documentationURL>http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html</documentationURL>
+ <sampleQuery>SELECT * FROM {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="gesmes:Envelope.Cube.Cube.Cube" produces="XML">
+ <urls>
+ <url>http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml</url>
+ </urls>
+ <inputs>
+ </inputs>
+ </select>
+ </bindings>
+</table>
View
23 ecb/eurofx.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Sebastian Spier (http://twitter.com/#!/sebastianspier/)</author>
+ <description>
+ Historical rates of the European Central Bank (ECB),
+ quoted against the euro (base currency)
+ </description>
+ <documentationURL>http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE currency='huf'</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE currency="usd" AND TIME_PERIOD="2011-12-14"</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="CompactData.DataSet.Series.Obs" produces="XML">
+ <urls>
+ <url>http://www.ecb.int/stats/exchange/eurofxref/html/{currency}.xml</url>
+ </urls>
+ <inputs>
+ <key id="currency" type="xs:string" paramType="path" required="true" />
+ </inputs>
+ </select>
+ </bindings>
+</table>

0 comments on commit f74a75e

Please sign in to comment.