{
  "address": "c3d87e3271662ba4fc9066ddff764443",
  "category": "other",
  "question": "Using a rate of 1.1355 (units of the non-EUR currency per 1 EUR) dated 2026-09-30, sourced from https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html, how much is 100 USD in EUR?",
  "answer": "88.07 EUR",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Euro foreign exchange reference rates",
      "url": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html"
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "url",
    "value": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
    "retrieved_utc": "2026-09-30T19:29:48Z"
  },
  "qsha256": "7c17f5f48cbab6fbbfeeb6d485ea40c04cc11b6a02e6674c87830adf323ea975",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Currency conversion at a stated reference rate.",
    "version": "1",
    "source_url_or_file": "methods/currency-conversion-ecb.cjs",
    "sha256_of_method_file": "376d66ce5c648ca2558f4422d8cf2f70b8a97bdf38979e475a9ef63f12ca7a50"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "amount",
        "type": "number",
        "unit": "from_currency",
        "required": true,
        "description": "The amount to convert",
        "min": 0
      },
      {
        "name": "from_currency",
        "type": "string",
        "required": true,
        "description": "Currency of the input amount",
        "enum": [
          "EUR",
          "USD",
          "GBP",
          "JPY",
          "CHF",
          "CAD",
          "AUD"
        ]
      },
      {
        "name": "to_currency",
        "type": "string",
        "required": true,
        "description": "Currency to convert into",
        "enum": [
          "EUR",
          "USD",
          "GBP",
          "JPY",
          "CHF",
          "CAD",
          "AUD"
        ]
      },
      {
        "name": "rate",
        "type": "number",
        "required": true,
        "description": "Units of the non-EUR currency in this pair, per 1 EUR, at rate_date",
        "min": 0
      },
      {
        "name": "rate_date",
        "type": "string",
        "unit": "ISO date",
        "required": true,
        "description": "The date the rate applies to (for example an ECB reference rate date); change it and the rate together to use a different day."
      },
      {
        "name": "rate_source",
        "type": "string",
        "required": true,
        "description": "Citation for where the rate came from (for example the ECB reference-rate page URL, or another official central-bank table); change it together with rate and rate_date when using a different table."
      }
    ],
    "outputs": [
      {
        "name": "result",
        "unit": "to_currency",
        "description": "The converted amount at the stated rate"
      }
    ],
    "steps": [
      "Exactly one of from_currency and to_currency must be EUR (or both are EUR); for two non-EUR currencies use the currency-cross-rate card instead.",
      "The visitor supplies rate (units of the non-EUR currency per 1 EUR), rate_date (the date that rate applies to), and rate_source (the citation it came from); this method never looks up or fetches a rate itself, so any newer official table may be substituted for all three together.",
      "If from_currency is EUR: result = amount * rate (EUR converted into the foreign currency).",
      "If to_currency is EUR: result = amount / rate (the foreign currency converted into EUR).",
      "If from_currency equals to_currency: result = amount unchanged, regardless of rate.",
      "Round result to 2 decimal places."
    ],
    "constants": [
      {
        "name": "USD_per_EUR_2026_09_30",
        "value": 1.1355,
        "unit": "USD/EUR",
        "source": 0
      },
      {
        "name": "GBP_per_EUR_2026_09_30",
        "value": 0.85463,
        "unit": "GBP/EUR",
        "source": 0
      },
      {
        "name": "JPY_per_EUR_2026_09_30",
        "value": 178.27,
        "unit": "JPY/EUR",
        "source": 0
      },
      {
        "name": "CHF_per_EUR_2026_09_30",
        "value": 0.9478,
        "unit": "CHF/EUR",
        "source": 0
      },
      {
        "name": "CAD_per_EUR_2026_09_30",
        "value": 1.6105,
        "unit": "CAD/EUR",
        "source": 0
      },
      {
        "name": "AUD_per_EUR_2026_09_30",
        "value": 1.6297,
        "unit": "AUD/EUR",
        "source": 0
      }
    ],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "amount": 100,
          "from_currency": "USD",
          "to_currency": "EUR",
          "rate": 1.1355,
          "rate_date": "2026-09-30",
          "rate_source": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html"
        },
        "expected": {
          "answer": "88.07 EUR"
        },
        "check": "By hand: 100 USD / 1.1355 USD/EUR = 88.0669... EUR, rounded to 2 decimals is 88.07."
      },
      {
        "name": "test vector: EUR to JPY",
        "inputs": {
          "amount": 100,
          "from_currency": "EUR",
          "to_currency": "JPY",
          "rate": 178.27,
          "rate_date": "2026-09-30",
          "rate_source": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html"
        },
        "expected": {
          "answer": "17,827.00 JPY"
        },
        "check": "By hand: 100 EUR * 178.27 JPY/EUR = 17,827.00 JPY exactly."
      },
      {
        "name": "test vector: CAD to EUR",
        "inputs": {
          "amount": 200,
          "from_currency": "CAD",
          "to_currency": "EUR",
          "rate": 1.6105,
          "rate_date": "2026-09-30",
          "rate_source": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html"
        },
        "expected": {
          "answer": "124.19 EUR"
        },
        "check": "By hand: 200 CAD / 1.6105 CAD/EUR = 124.1850... EUR, rounded to 2 decimals is 124.19."
      }
    ],
    "disclaimer": null,
    "deck_category": "currency"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html",
          "retrieved_utc": "2026-09-30T19:29:48Z"
        },
        "sha256": "484c38de7bf8bffe84a8388a69ee249179fb71968e71ffcddf4a36612b33ae29",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Currency conversion at a stated reference rate.",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
