{"basePath":"\/api","consumes":["application\/json"],"definitions":{"CurrencyPair":{"properties":{"pair":{"description":"Pair identifier in `BASE\/TARGET` form.","example":"USD\/EUR","type":"string"},"rate":{"description":"Units of target currency per unit of base currency.","example":0.913867,"format":"double","type":"number"}},"required":["pair","rate"],"type":"object"},"CurrencyPairResponse":{"properties":{"currency":{"description":"Requested base currency (uppercased).","example":"USD","type":"string"},"date":{"description":"Date the snapshot applies to (`YYYY-MM-DD`).","example":"2026-08-25","format":"date","type":"string"},"pairs":{"description":"Explicit list of pairs with their rates.","items":{"$ref":"#\/definitions\/CurrencyPair"},"type":"array"},"rates":{"additionalProperties":{"format":"double","type":"number"},"description":"Mapping of target currency code to exchange rate.","example":{"EUR":0.913867,"GBP":0.795267},"type":"object"}},"required":["currency","date","rates","pairs"],"type":"object"},"DefaultResponse":{"properties":{"errors":{"items":{"properties":{"message":{"type":"string"},"path":{"type":"string"}},"required":["message"],"type":"object"},"type":"array"}},"required":["errors"],"type":"object"},"Error":{"properties":{"available_dates":{"description":"Dates that have data for the requested currency (only on history\nmisses).\n","items":{"format":"date","type":"string"},"type":"array"},"currency":{"description":"The requested currency, when relevant.","type":"string"},"date":{"description":"The requested date, when relevant.","format":"date","type":"string"},"error":{"description":"Human-readable error message.","type":"string"}},"required":["error"],"type":"object"}},"host":"currency.traccia.top","info":{"contact":{"name":"currency.traccia.top","url":"https:\/\/currency.traccia.top"},"description":"Currency rate pairs for currency.traccia.top.\n\nReturns all exchange-rate pairs for a requested currency, including\nhistorical rates by date.\n","title":"Currency API","version":"0.01"},"parameters":{},"paths":{"\/currency\/{currency_name}":{"get":{"description":"Return all pairs for the requested currency.\n\n* Without a `date` parameter the most recent available snapshot is returned.\n* With a `date` parameter an historical snapshot for that date is returned.\n","operationId":"getCurrency","parameters":[{"description":"3-letter ISO 4217 currency code (case-insensitive), e.g. `USD`,\n`EUR`, `GBP`.\n","in":"path","name":"currency_name","pattern":"^[A-Za-z]{3}$","required":true,"type":"string","x-example":"USD"},{"description":"Request rates for a specific date. Uses `YYYY-MM-DD` format and\nmust be a day that has data available.\n","format":"date","in":"query","name":"date","required":false,"type":"string","x-example":"2026-08-19"}],"responses":{"200":{"description":"Rate pair snapshot for the requested currency.","schema":{"$ref":"#\/definitions\/CurrencyPairResponse"}},"400":{"description":"Invalid currency name or date format.","schema":{"$ref":"#\/definitions\/Error"}},"401":{"description":"Default response.","schema":{"$ref":"#\/definitions\/DefaultResponse"}},"404":{"description":"Unknown currency, or no data available for the requested currency\nand date. Includes `available_dates` for history misses.\n","schema":{"$ref":"#\/definitions\/Error"}},"500":{"description":"Internal server error.","schema":{"$ref":"#\/definitions\/Error"}},"501":{"description":"Default response.","schema":{"$ref":"#\/definitions\/DefaultResponse"}}},"summary":"Get currency pairs (latest or for a specific date)","tags":["Currency"],"x-mojo-to":"Currency#get"}}},"produces":["application\/json"],"schemes":["http","https"],"swagger":"2.0","tags":[{"description":"Currency pair rates and history","name":"Currency"}]}