Skip to content

Commit

Permalink
Merge pull request yql#147 from spier/ecb
Browse files Browse the repository at this point in the history
ECB
  • Loading branch information
pjdonnelly committed Dec 19, 2011
2 parents 123aba3 + 0e0793a commit f74a75e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 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>
23 changes: 23 additions & 0 deletions 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.