Fixer

The Switchboard Fixer.io connector provides daily currency conversion data using services provide by Fixer.io.

Prerequisites

To configure access to the Fixer.io Connector you need:

  • API Key - this value is your Fixer.io API Key. It is stored securely in the field “API Key” in the Key you will create for Fixer.io in our Key Editor. You will refer to the Key Name of this Key in your connector script (see below).

Scheduling

The Fixer.io connector can be scheduled to ingest data once per day at a user-defined hour and timezone. By default, the connector will run once at 6am PT. See Daily Scheduling for more information.

Parameters

Parameter Description Required/Optional?
base_currency string three-letter currency code of your preferred base currency Required
exchange_currencies list of three-letter currency codes to limit output currencies Required

The Fixer.io connector supports the majority of standard three letter currency codes defined by ISO 4217.

Sample Switchboard Script

download historical_currency_rates_raw from {
    type: "fixer:historical";
    key: "fixer_api_key";
    base_currency: "USD";
    exchange_currencies: [
        "USD",
        "AUD",
        "CAD",
        "JPY"
    ]; 
} using {
    date: date; 
    base_currency: string;
    exchange_currency: string;
    exchange_rate: float;
};