Hi, Mark. Does this help you? I write include files =with the exchange rate for the various countries noted. That allows me =to show comparative pricing for used Irish dancing dresses on =irishdancingexchange.com...
<!-- Fetch today's exchange rates =from the Federal Reserve Bank of NY -->
<!-- Get the year, =month and day to insert in the URL below -->
[text show=3DF]year=3D[dat=e format=3D%Y][/text]
[text show=3DF]month=3D[date =format=3D%m][/text]
[text show=3DF]day=3D[date =format=3D%d][/text]
<BODY MARGINWIDTH=3D"0" MARGINHEIGHT=3D"0" =BGCOLOR=3D"#FFFFFF">
[TCPConnect host=3Dwww.ny.frb.org&port=3D80]
[text =show=3DF]ex_rates=3D[TCPSend skipheader=3DT]GET =/markets/fxrates/FXtoXML.cfm?FEXdate=3D[year]%2D[month]%2D[day]%2000%3A00%=3A00%2E0&FEXtime=3D1200 =HTTP/1.0[unURL]%0D%0A%0D%0A[/unURL][/TCPSend][/text]
[/TCPConnect]
<=br><!-- Don't write any of the include files unless we get the actual =XML data -->
[showIf [ex_rates]^frbny:]
<!-- Lose the ="frbny:" crap so we can parse the XML properly -->
[text =show=3DF]ex_rates=3D[grep =search=3Dfrbny:&replace=3D][ex_rates][/grep][/text]
[xmlparse =var=3Dxml_rates][ex_rates][/xmlparse]
[loop =start=3D1&end=3D23]
[xmlnode =ref=3Dxml_rates&var=3Dseries&path=3Dnamed:UtilityData/DataSet/Seri=es([index])]
[showIf [xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DAUD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/AUD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DUSD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/CAD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/CAD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DEUR][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/EUR.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DNZD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/NZD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DGBP][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/GBP.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][/xmlnod=e]
[/loop]
[/showIf]
<!-- End exchange rates =sequence -->
On Sep 10, 2008, at 11:58 AM, Mark Derrick =wrote:Hi,Does anyone =currently use a free feed for currency exchange =rates?We're looking =to move to offering multiple currency through our store, and would like =to pull the latest exchange rate 2-3 times a day to ensure our =advertised prices are correct.Google seems to =offer one through it's API, but I'm not able to find out much more about =it.Anyone used anything like =this?Thanks.Mark.-----------------------------------------------------------<=br>The information contained in =this e-mail and any attachments are intended only for the addressees. If =you are not the intended recipient, please return the message to the =sender by replying to it and then delete the message from your =computer.The views expressed =in this e-mail are those of the individual author and not necessarily =those of Computer Warehouse Ltd. Prior to taking any action based upon =this e-mail you should seek appropriate confirmation of its =authenticity. This email is not intended to impose nor shall it be =construed as imposing any legally binding obligation upon Computer =Warehouse Limited. Although Computer Warehouse Ltd routinely screens for =viruses, addressees should also scan this e-mail and any attachments for =viruses and Computer Warehouse Ltd makes no representation or warranty =as to the absence of viruses in this e-mail or any =attachments.----------------------------------------------------------1 Amalgamated Drive . West =Cross Centre . Great West RoadBrentford . Middlesex TW8 =9EZRegistered in England no. =2111018----------------------------------------------------------Computer Warehouse - The UK's =favourite Apple Mac Resellerhttp://www.computerwarehouse.c=o.ukVote for =Computer Warehouse at this years MacUser awards, and get the chance to =win prizes worth =A33,500.http://www.compu=terwarehouse.co.uk/MacUserAwards---------------------------------------------------------This message is sent to you =because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>
--
Gil Poulsen, =Mac Wirehead
************************
AltiM@c Consulting
23 =Marco Polo Court
Franklin Park, NJ 08823-1703
Voice: =609-359-0103
http://altimac.com
********************=****
---------------------------------------------------------
T=his message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
|
Hi, Mark. Does this help you? I write include files =with the exchange rate for the various countries noted. That allows me =to show comparative pricing for used Irish dancing dresses on =irishdancingexchange.com...
<!-- Fetch today's exchange rates =from the Federal Reserve Bank of NY -->
<!-- Get the year, =month and day to insert in the URL below -->
[text show=3DF]year=3D[dat=e format=3D%Y][/text]
[text show=3DF]month=3D[date =format=3D%m][/text]
[text show=3DF]day=3D[date =format=3D%d][/text]
<BODY MARGINWIDTH=3D"0" MARGINHEIGHT=3D"0" =BGCOLOR=3D"#FFFFFF">
[TCPConnect host=3Dwww.ny.frb.org&port=3D80]
[text =show=3DF]ex_rates=3D[TCPSend skipheader=3DT]GET =/markets/fxrates/FXtoXML.cfm?FEXdate=3D[year]%2D[month]%2D[day]%2000%3A00%=3A00%2E0&FEXtime=3D1200 =HTTP/1.0[unurl]%0D%0A%0D%0A[/unURL][/TCPSend][/text]
[/TCPConnect]
<=br><!-- Don't write any of the include files unless we get the actual =XML data -->
[showIf [ex_rates]^frbny:]
<!-- Lose the ="frbny:" crap so we can parse the XML properly -->
[text =show=3DF]ex_rates=3D[grep =search=3Dfrbny:&replace=3D][ex_rates][/grep][/text]
[xmlparse =var=3Dxml_rates][ex_rates][/xmlparse]
[loop =start=3D1&end=3D23]
[xmlnode =ref=3Dxml_rates&var=3Dseries&path=3Dnamed:UtilityData/DataSet/Seri=es([index])]
[showIf [xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DAUD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/AUD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DUSD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/CAD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/CAD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DEUR][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/EUR.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DNZD][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/NZD.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][showIf =[xmlnodes =ref=3Dseries&path=3Dnamed:Key&name=3DCURR&exact=3DT][value][/x=mlnodes]=3DGBP][showIf [xmlNodeAttributes][name]/[value] =[/xmlNodeAttributes]^UNIT/USD][xmlnodes =ref=3Dseries&path=3Dnamed:Obs&name=3DOBS_VALUE&exact=3DT][writ=eFile =/includes/GBP.inc][value][/writeFile][/xmlnodes][/showIf][/showIf][/xmlnod=e]
[/loop]
[/showIf]
<!-- End exchange rates =sequence -->
On Sep 10, 2008, at 11:58 AM, Mark Derrick =wrote:Hi,Does anyone =currently use a free feed for currency exchange =rates?We're looking =to move to offering multiple currency through our store, and would like =to pull the latest exchange rate 2-3 times a day to ensure our =advertised prices are correct.Google seems to =offer one through it's API, but I'm not able to find out much more about =it.Anyone used anything like =this?Thanks.Mark.-----------------------------------------------------------<=br>The information contained in =this e-mail and any attachments are intended only for the addressees. If =you are not the intended recipient, please return the message to the =sender by replying to it and then delete the message from your =computer.The views expressed =in this e-mail are those of the individual author and not necessarily =those of Computer Warehouse Ltd. Prior to taking any action based upon =this e-mail you should seek appropriate confirmation of its =authenticity. This email is not intended to impose nor shall it be =construed as imposing any legally binding obligation upon Computer =Warehouse Limited. Although Computer Warehouse Ltd routinely screens for =viruses, addressees should also scan this e-mail and any attachments for =viruses and Computer Warehouse Ltd makes no representation or warranty =as to the absence of viruses in this e-mail or any =attachments.----------------------------------------------------------1 Amalgamated Drive . West =Cross Centre . Great West RoadBrentford . Middlesex TW8 =9EZRegistered in England no. =2111018----------------------------------------------------------Computer Warehouse - The UK's =favourite Apple Mac Resellerhttp://www.computerwarehouse.c=o.ukVote for =Computer Warehouse at this years MacUser awards, and get the chance to =win prizes worth =A33,500.http://www.compu=terwarehouse.co.uk/MacUserAwards---------------------------------------------------------This message is sent to you =because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>
--
Gil Poulsen, =Mac Wirehead
************************
AltiM@c Consulting
23 =Marco Polo Court
Franklin Park, NJ 08823-1703
Voice: =609-359-0103
http://altimac.com
********************=****
---------------------------------------------------------
T=his message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...