{
  "openapi": "3.0.1",
  "info": {
    "title": "Live FX & Metals Rates — USD Exchange Board",
    "description": "Get indicative live bid/ask for 76 FX pairs and 12 metal quotes, configure a USD buy/sell board with margins and commissions, or export ECB daily history. Source timestamps and freshness checks included. No source API key; not executable quotes.",
    "version": "0.1",
    "x-build-id": "PHwi3GyOvWY5TIUzI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~currency-reference-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-currency-reference-monitor",
        "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/apivault_labs~currency-reference-monitor/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-currency-reference-monitor",
        "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/apivault_labs~currency-reference-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-currency-reference-monitor",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "latest",
              "history",
              "changes",
              "compare",
              "statistics",
              "live",
              "exchange"
            ],
            "type": "string",
            "description": "Latest reference; history per available date; changes between adjacent available dates inside your range; compare first and last available dates in the range. Statistics: one descriptive period summary per pair, including min/max/mean and move counts. Live: keyless Swissquote broker bid/ask, explicit platform/profile and quote-age validation. latest remains ECB daily reference. Exchange: USD rate board with explicit customer buy/sell and optional markups/conversion.",
            "default": "compare"
          },
          "pairs": {
            "title": "Currency pairs",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Explicit pairs: up to100 in live,20 in ECB modes. Omit pairs for liveUniverse fx/metals/all. Missing source/platform/profile produces diagnostics.",
            "items": {
              "type": "string"
            },
            "default": [
              "EUR/USD",
              "EUR/GBP",
              "GBP/USD"
            ]
          },
          "startDate": {
            "title": "Start date (UTC)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive, within the rolling 90-day window. Default: 30 calendar days before endDate. Leave empty by omitting the field. Not accepted in latest mode."
          },
          "endDate": {
            "title": "End date (UTC)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD, inclusive. Default today. No future dates. Actual first/last observation dates are shown; weekends are not filled. Not accepted in latest mode."
          },
          "minChangePercent": {
            "title": "Minimum absolute change (%)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Filter changes/compare results by magnitude. Zero changes are suppressed. It does not imply a buy/sell signal.",
            "default": 0
          },
          "direction": {
            "title": "Change direction",
            "enum": [
              "any",
              "up",
              "down"
            ],
            "type": "string",
            "description": "For changes/compare. Leave any in latest/history.",
            "default": "any"
          },
          "maxResults": {
            "title": "Maximum result rows",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Global cap across pairs. Results sorted by date then pair; SUMMARY shows matchingRows and truncation. Zero avoids the source request.",
            "default": 100
          },
          "maxCostUsd": {
            "title": "Result fee budget (USD)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Caps result event fees at $0.001 per useful Dataset row. Does not cap Apify compute/storage. Zero avoids the source request. Stateless repeats may return and charge the same rows again.",
            "default": 1
          },
          "sortBy": {
            "title": "Result order",
            "enum": [
              "date_asc",
              "date_desc",
              "change_abs_desc"
            ],
            "type": "string",
            "description": "Sort all matches before applying maxResults. Largest absolute percentage change is available for changes, compare and statistics. Ties use date ascending then pair.",
            "default": "date_asc"
          },
          "quotePlatform": {
            "title": "Swissquote platform (live only)",
            "enum": [
              "SwissquoteLtd",
              "SwissquoteCapitalMarkets",
              "AT"
            ],
            "type": "string",
            "description": "Omit outside live mode. In live, omitted value is SwissquoteLtd. Never silently switches platform."
          },
          "spreadProfile": {
            "title": "Spread profile (live only)",
            "enum": [
              "standard",
              "premium",
              "prime",
              "elite"
            ],
            "type": "string",
            "description": "Omit outside live mode. In live, omitted value is premium. A profile may not exist on the selected platform."
          },
          "maxQuoteAgeSeconds": {
            "title": "Maximum quote age (live only)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Omit outside live mode. In live, omitted value is30 seconds. Stale/future timestamps create diagnostics, no paid row."
          },
          "liveUniverse": {
            "title": "Live instruments",
            "enum": [
              "selected",
              "fx",
              "metals",
              "all"
            ],
            "type": "string",
            "description": "Live only. Omitted: selected pairs. fx=76 documented FX pairs, metals=12 spot metal quotes, all=88. Catalog selection takes precedence over pairs, including Apify defaults. Universe based on Swissquote LTD February2026 guide, not every world currency."
          },
          "settlementCurrency": {
            "title": "Валюта расчёта / Settlement currency",
            "type": "string",
            "description": "Exchange mode only; omitted value USD. BYN/RUB are unavailable in the verified source."
          },
          "currencies": {
            "title": "Валюты для табло / Board currencies",
            "type": "array",
            "description": "Exchange only. Default EUR,GBP,JPY,CHF; omit for all supported currencies selection.",
            "items": {
              "type": "string"
            }
          },
          "exchangeUniverse": {
            "title": "Покрытие табло / Board universe",
            "enum": [
              "selected",
              "all"
            ],
            "type": "string",
            "description": "Exchange only. selected uses currencies. all considers21catalogcodes minus settlement; unavailable direct/inverse pairs reported, no triangular cross."
          },
          "customerAction": {
            "title": "Действие клиента / Customer action",
            "enum": [
              "sell_base",
              "buy_base"
            ],
            "type": "string",
            "description": "sell_base: client sells foreign currency and receives USD. buy_base: client buys foreign currency and pays USD. Default sell_base."
          },
          "buyMarkdownPercent": {
            "title": "Снижение курса покупки (%)",
            "minimum": 0,
            "maximum": 99.999999,
            "type": "number",
            "description": "Exchange only. Office buy = market bid × (1 − markdown/100). Default0."
          },
          "sellMarkupPercent": {
            "title": "Наценка продажи (%)",
            "minimum": 0,
            "maximum": 99.999999,
            "type": "number",
            "description": "Exchange only. Office sell = market ask × (1 + markup/100). Default0."
          },
          "commissionPercent": {
            "title": "Комиссия на сумму (%)",
            "minimum": 0,
            "maximum": 99.999999,
            "type": "number",
            "description": "Exchange only. Applies to conversion gross settlement amount only, not board rates. Default0."
          },
          "fixedFee": {
            "title": "Фиксированная комиссия в валюте расчёта",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Exchange conversion only. Default0; deducted from client receipt or added to client payment."
          },
          "exchangeAmount": {
            "title": "Сумма иностранной валюты",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Positive amount of each foreign currency to sell/buy. Omit for rate board without conversion. Never amount in settlement currency."
          },
          "rateDecimals": {
            "title": "rateDecimals",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Exchange only. Default6. Buy/receipts round down; sell/payments round up."
          },
          "amountDecimals": {
            "title": "amountDecimals",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Exchange only. Default2. Buy/receipts round down; sell/payments round up."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}