Home > XE Community Forums > XE Currency Data > URL

AD

XE Currency Data

Topics3 Posts4
By rmalou February 24, 2015 8:10 am
    rmalou's picture
    rmalou Posts: 1
    URL

    Hello,

    I found on XE currency  Document an URL like this :https://xecdapi.xe.com/v1/convert_from.csv/?from=EUR&to=USD,CAD&amount=1

    he allow me to convert from one base currency to one or multiple counter currencies.

    how i can convert from one or multiple base currencies to one or multiple counter currencies? 
    something like this
    :https://xecdapi.xe.com/v1/convert_from.csv/?from=EUR,USD&to=USD,CAD,EUR&amount=1

    thanks for help

    MX DATA

     

    Replies: URL

    ▲ Sort Comments
      XE-Jay's picture
      XE-Jay Posts: 1

      Hi MX DATA,

      To achieve multiple base currencies you would need to call multiple times like this:

      https://xecdapi.xe.com/v1/convert_from.csv/?from=EUR&to=USD,CAD&amount=1
      https://xecdapi.xe.com/v1/convert_from.csv/?from=USD&to=CAD,EUR&amount=1

      In this example you would receive two CSV responses.   One for the base EUR, and one for the base USD.

      I hope this helps.  Thanks for your feedback.

      XE-Jay

      Paste link in email or IM