Any valid parameters to listCurrencyRates?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Flair
    Junior Member
    • Oct 2009
    • 2

    #1

    Any valid parameters to listCurrencyRates?

    I am currently migrating from the old SOAP API to the new API-NG, and I am still hammering out some of my misunderstandings.

    I have been trying to test my code by calling innocuous methods, like listCurrencyRates.

    listCurrencyRates takes a parameter, fromCurrency, which is defined as "The currency from which the rates are computed. GBP is used if no value is passed".

    However, when I try any currency apart from GBP (or no value), such as "USD", "CAD", "AUD", I get an error message: INVALID_INPUT_DATA: From currency is not supported.

    It also happens in the API-NG "Visualiser", so it isn't my code creating the JSON request that is the problem.

    Is this a bug? Is only one base currency supported at this time? If not, what are some legal, non-default, values for this parameter?
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi Flair,

    GBP is the only base currency supported by this service.

    I have updated the documentation to make this clear.

    Sorry for the inconvenience

    Neil

    Comment

    • Flair
      Junior Member
      • Oct 2009
      • 2

      #3
      Thanks for clearing this up, Neil.

      Happy to hear it wasn't a problem at my end.

      Comment

      Working...
      X