{
  "id": "floating-exchange-rate",
  "name": "Floating exchange rate",
  "unit": "global",
  "unitName": "Unit 4 · The global economy",
  "topic": "Exchange rates",
  "hl": false,
  "description": "The exchange rate is set by the demand for and supply of a currency on the foreign exchange market. A rise in demand or fall in supply appreciates the currency; a fall in demand or rise in supply depreciates it.",
  "keywords": [
    "exchange rate",
    "floating",
    "appreciation",
    "depreciation",
    "foreign exchange market",
    "currency demand",
    "currency supply"
  ],
  "schemaUrl": "https://graphs.lectere.com/api/v1/templates/floating-exchange-rate",
  "previewUrl": "https://graphs.lectere.com/thumbs/floating-exchange-rate.svg",
  "editorUrl": "https://graphs.lectere.com/graph/floating-exchange-rate/",
  "params": [
    {
      "key": "cause",
      "label": "Change",
      "default": "dinc",
      "type": "enum",
      "options": [
        {
          "value": "dinc",
          "label": "Demand for the currency rises (appreciation)"
        },
        {
          "value": "ddec",
          "label": "Demand for the currency falls (depreciation)"
        },
        {
          "value": "sinc",
          "label": "Supply of the currency rises (depreciation)"
        },
        {
          "value": "sdec",
          "label": "Supply of the currency falls (appreciation)"
        },
        {
          "value": "none",
          "label": "No change (equilibrium only)"
        }
      ]
    },
    {
      "key": "note",
      "label": "Label appreciation / depreciation",
      "default": true,
      "type": "boolean"
    },
    {
      "key": "cur",
      "label": "Currency",
      "default": "£",
      "group": "Currency",
      "type": "string"
    },
    {
      "key": "other",
      "label": "Priced in",
      "default": "US$",
      "group": "Currency",
      "type": "string"
    },
    {
      "key": "shift",
      "label": "Shift size",
      "default": 2,
      "group": "Shape",
      "type": "number",
      "min": 0.5,
      "max": 3.5,
      "step": 0.1
    },
    {
      "key": "dSlope",
      "label": "Demand steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    },
    {
      "key": "sSlope",
      "label": "Supply steepness",
      "default": 0.8,
      "group": "Shape",
      "type": "number",
      "min": 0.3,
      "max": 2.5,
      "step": 0.05
    }
  ],
  "defaults": {
    "cause": "dinc",
    "note": true,
    "cur": "£",
    "other": "US$",
    "shift": 2,
    "dSlope": 0.8,
    "sSlope": 0.8
  },
  "panels": [
    {
      "id": "main",
      "title": null,
      "xLabel": "Quantity of £",
      "yLabel": "Price of £ (in US$)",
      "xRange": [
        0,
        10
      ],
      "yRange": [
        0,
        10
      ],
      "axisKeys": {
        "x": "main:x",
        "y": "main:y"
      }
    }
  ],
  "labels": [
    {
      "key": "main:y",
      "default": "Price of £ (in US$)",
      "hint": "Vertical axis",
      "panel": "main"
    },
    {
      "key": "main:x",
      "default": "Quantity of £",
      "hint": "Horizontal axis",
      "panel": "main"
    },
    {
      "key": "main.d1",
      "default": "D_{£1}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.d2",
      "default": "D_{£2}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.s1",
      "default": "S_{£}",
      "hint": "Curve",
      "panel": "main"
    },
    {
      "key": "main.e1:y",
      "default": "ER_1",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.e1:x",
      "default": "Q_1",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.e2:y",
      "default": "ER_2",
      "hint": "Vertical-axis value",
      "panel": "main"
    },
    {
      "key": "main.e2:x",
      "default": "Q_2",
      "hint": "Horizontal-axis value",
      "panel": "main"
    },
    {
      "key": "main.note",
      "default": "appreciation",
      "hint": "Arrow / line",
      "panel": "main"
    }
  ],
  "elements": [
    {
      "key": "main.d1",
      "kind": "curve",
      "label": "D_{£1}"
    },
    {
      "key": "main.d2",
      "kind": "curve",
      "label": "D_{£2}"
    },
    {
      "key": "main.s1",
      "kind": "curve",
      "label": "S_{£}"
    },
    {
      "key": "main.shift",
      "kind": "line"
    },
    {
      "key": "main.e1",
      "kind": "point"
    },
    {
      "key": "main.e2",
      "kind": "point"
    },
    {
      "key": "main.note",
      "kind": "line",
      "label": "appreciation"
    }
  ],
  "stats": null,
  "example": {
    "template": "floating-exchange-rate",
    "params": {
      "cause": "dinc",
      "note": true,
      "cur": "£",
      "other": "US$",
      "shift": 2,
      "dSlope": 0.8,
      "sSlope": 0.8
    }
  }
}