forked from yql/yql-tables
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request yql#147 from spier/ecb
ECB
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |