{
  "openapi": "3.0.1",
  "info": {
    "title": "Exchange Rate Intelligence — FX Trends, Strength & Risk Signals",
    "description": "Turn ECB exchange rates into decisions. Get per-currency trend, volatility, risk and shock signals, a currency-strength ranking, historical context versus 25 years, an event feed and recommended actions across 30+ currencies. Includes monitoring, screener and watchlist modes. No API key.",
    "version": "1.6",
    "x-build-id": "jYhGnNcIjlGcLtQrU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~exchange-rate-history/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-exchange-rate-history",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ryanclinton~exchange-rate-history/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-exchange-rate-history",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ryanclinton~exchange-rate-history/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-exchange-rate-history",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "base": {
            "title": "Base Currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Base currency code, ISO 4217 (e.g., USD, EUR, GBP). Defaults to EUR.",
            "default": "EUR"
          },
          "symbols": {
            "title": "Target Currencies",
            "type": "string",
            "description": "Comma-separated target currency codes (e.g., USD,GBP,JPY). Leave empty for all available currencies."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "latest",
              "date",
              "timeseries"
            ],
            "type": "string",
            "description": "Data retrieval mode: latest rates, specific date, or time series.",
            "default": "latest"
          },
          "date": {
            "title": "Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Date for single date mode (YYYY-MM-DD format, e.g., 2024-01-15). ECB data starts 1999-01-04."
          },
          "startDate": {
            "title": "Start Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Start date for time series mode (YYYY-MM-DD format). ECB data starts 1999-01-04."
          },
          "endDate": {
            "title": "End Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "End date for time series mode (YYYY-MM-DD format)."
          },
          "outputMode": {
            "title": "Output Mode (timeseries only)",
            "enum": [
              "analysis",
              "full",
              "dashboard",
              "report",
              "screener"
            ],
            "type": "string",
            "description": "How timeseries results are returned. 'analysis' (default): one decision record per currency pair plus a run summary. 'full': adds the raw daily rate rows. 'dashboard': a single digest object for BI tiles / agents. 'report': a templated executive report. 'screener': Bloomberg-style top-movers lists (most-unusual, breakouts, reversals, strongest/weakest, volatility-expansions, most-improved/deteriorated) across your currencies. Ignored in latest/date modes.",
            "default": "analysis"
          },
          "persona": {
            "title": "Persona",
            "enum": [
              "generic",
              "treasury",
              "ecommerce",
              "research",
              "trading"
            ],
            "type": "string",
            "description": "Reshape the output for a specific buyer. 'treasury': risk escalation + hedge attention. 'ecommerce': pricing pressure + cost-impact band. 'trading': setups + trade attention. 'research': regime + persistence focus. 'generic' (default): no persona view. Adds a personaView block per pair.",
            "default": "generic"
          },
          "includeNetwork": {
            "title": "Currency network roles",
            "type": "boolean",
            "description": "Classify each currency's role in the correlation network: 'hub' (moves with many), 'connected' (a few), or 'isolated', plus its connectedCurrencies. This is correlation-degree (who moves WITH whom), not causality. Computes the correlation matrix internally.",
            "default": false
          },
          "outputProfile": {
            "title": "Output Profile",
            "enum": [
              "minimal",
              "standard",
              "full"
            ],
            "type": "string",
            "description": "Field verbosity for analysis records. 'minimal': pair, change, volatility band, signal, summary. 'standard' (default): the full analysis minus heavy nested arrays. 'full': every field including anomaly points and confidence breakdown.",
            "default": "standard"
          },
          "includeDailyRates": {
            "title": "Include Raw Daily Rates",
            "type": "boolean",
            "description": "In timeseries analysis mode, also emit one raw rate row per trading day alongside the analysis records. Equivalent to 'full' output mode.",
            "default": false
          },
          "watchlistName": {
            "title": "Watchlist Name (optional)",
            "type": "string",
            "description": "Set a name to track this base + currency set across scheduled runs. Each run then carries temporalSignals (trend vs last run, rate delta, volatility shift, regime change) and an events[] array (trend-reversal, new-high, new-low, volatility-expansion, signal-change, ...). Leave empty for stateless one-off analysis. Timeseries mode only."
          },
          "multiTimeframe": {
            "title": "Multi-timeframe analysis",
            "type": "boolean",
            "description": "Add a trailing 30 / 90 / 180 / 365-day signal to each pair, so you can see whether a trend is consistent or only recent. Only windows that fit inside your date range are emitted.",
            "default": false
          },
          "includeCorrelations": {
            "title": "Correlation matrix",
            "type": "boolean",
            "description": "Emit a correlation record: Pearson correlation of daily returns between every currency pair, classified strong/moderate/uncorrelated. Useful for hedging and diversification.",
            "default": false
          },
          "includeSeasonality": {
            "title": "Seasonality analysis",
            "type": "boolean",
            "description": "Emit a seasonality record per currency: strongest/weakest month and a consistency score from the monthly pattern. Requires at least 3 years of history in the date range, otherwise returns null.",
            "default": false
          },
          "generateCrossRates": {
            "title": "Generate cross rates",
            "type": "boolean",
            "description": "Also analyze the cross pairs between your target currencies (e.g. EUR/GBP, GBP/JPY), not just base-vs-target. Derived from the same data, no extra API calls.",
            "default": false
          },
          "benchmark": {
            "title": "Benchmark currency",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "A currency code to benchmark each pair against. Each analysis record then carries relativePerformancePct: how that currency performed vs the benchmark over the window. Must be one of your base/target currencies."
          },
          "includeHistoricalContext": {
            "title": "Historical context engine",
            "type": "boolean",
            "description": "Place each move and its volatility against ALL same-length windows since 1999: movePercentile, rarity, and volatility-vs-historical-median. Answers 'is this move big?' and 'is this unusually volatile?' from real history. Costs one extra fetch of the full series.",
            "default": false
          },
          "exposureAmount": {
            "title": "Exposure amount (simulator)",
            "minimum": 0,
            "type": "integer",
            "description": "Notional amount you hold in each target currency. Each pair then carries exposureImpact: the historical change in that holding's value in the base currency over the window. Purely historical, not a forecast."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}