Specifying the Format
You can determine the response format using the{format} option in the URL structure (e.g., /json/..., /csv/...).
Please refer to specific endpoint documentation to see where the {format} parameter fits into the URL.
JSON (Default)
JSON is the standard format for most implementations.- Methods: Available as
GETandPOST. - Headers: Set
Content-Typetoapplication/json.
Shorthand URLsBecause JSON is the default format, you can omit the
{format} segment in the URL.
For example, /currencies/all is treated as a shorthand for /json/currencies/all.CSV (Comma-Separated Values)
CSV support is provided specifically to assist quantitative analysts (“quants”), data scientists, and researchers.- Why use it: It allows for easy import into spreadsheet software (like Excel) or dataframes (like Python Pandas) for backtesting and modeling.
- Methods: Available as
GETandPOST. - Structure: The first row of the response is a header row containing column names; subsequent rows contain the exchange rate data.
- Headers: When requesting CSV, the input parameters are still processed as JSON, so the
Content-Typeheader should be set toapplication/json.
XML
- Methods: Available as
GETandPOST. - Headers: Set
Content-Typetoapplication/xml. - Body: Requires an XML-formatted request body.
Detailed parameter descriptions and example requests for all formats can be found in the main JSON section.
