{"id":15293503,"url":"https://github.com/forexrateapi/forexrateapi-swift","last_synced_at":"2026-02-17T08:32:08.449Z","repository":{"id":65370253,"uuid":"591048052","full_name":"forexrateapi/forexrateapi-swift","owner":"forexrateapi","description":"Foreign exchange rates library | Official Swift API wrapper for ForexRateAPI","archived":false,"fork":false,"pushed_at":"2025-02-03T23:55:44.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T04:45:04.802Z","etag":null,"topics":["api","exchange-rates","exchange-rates-api","exchangerate","foreignexchange","forex-data","price-tracker","swift"],"latest_commit_sha":null,"homepage":"https://forexrateapi.com/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forexrateapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-19T20:08:21.000Z","updated_at":"2025-02-03T23:55:43.000Z","dependencies_parsed_at":"2025-03-24T15:11:31.666Z","dependency_job_id":"bfc1e294-be15-432b-ac7e-b877afb1eb99","html_url":"https://github.com/forexrateapi/forexrateapi-swift","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/forexrateapi/forexrateapi-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forexrateapi%2Fforexrateapi-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forexrateapi%2Fforexrateapi-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forexrateapi%2Fforexrateapi-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forexrateapi%2Fforexrateapi-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forexrateapi","download_url":"https://codeload.github.com/forexrateapi/forexrateapi-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forexrateapi%2Fforexrateapi-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29537837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","exchange-rates","exchange-rates-api","exchangerate","foreignexchange","forex-data","price-tracker","swift"],"created_at":"2024-09-30T16:49:47.611Z","updated_at":"2026-02-17T08:32:08.418Z","avatar_url":"https://github.com/forexrateapi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ForexRateAPI\n\nforexrateapi is the official Swift wrapper for ForexRateAPI.com. This allows you to quickly integrate our API and foreign exchange rate API into your application. Check https://forexrateapi.com documentation for more information.\n\n## Installation\n\nWe offer multiple ways to install our library.\n\n### Cocoapods\n\nIn your `Podfile`, specify:\n\n`pod ForexRateAPI`\n\n### Carthage\n\nIn your `Cartfile`, specify:\n\n`github \"ForexRateAPI\"`\n\n### Swift Package Manager\n\nIn Xcode, select File ▸ Swift Packages ▸ Add Package Dependency… and use the url: `https://github.com/forexrateapi/forexrateapi-swift.git`\n\n## Usage\n\n```swift\nimport ForexRateAPI\n\napiKey = 'SET_YOUR_API_KEY_HERE'\nlet client = ForexRateAPIService(apiKey: apiKey)\n```\n---\n## Documentation\n\n#### fetchSymbols()\n```swift\nclient.fetchSymbols(completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_symbol)\n\n---\n#### fetchLive(base, currencies)\n\n- `base` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `currencies` \u003c[List]\u003c[string]\u003e\u003e Optional. Pass in an list of currencies to return values for.\n\n```swift\nclient.fetchLive(base: \"USD\", currencies: [\"AUD\", \"XAG\", \"GBP\", \"JPY\"], completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_realtime)\n\n---\n#### fetchHistorical(date, base, currencies)\n\n- `date` \u003c[string]\u003e Required. Pass in a string with format `YYYY-MM-DD`\n- `base` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `currencies` \u003c[List]\u003c[string]\u003e\u003e Optional. Pass in an list of currencies to return values for.\n\n```swift\nclientfetchHistorical(date: \"2021-04-05\", base: \"USD\", currencies: [\"AUD\", \"XAG\", \"GBP\", \"JPY\"], completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_historical)\n\n---\n#### ohlc(base, currency, date, date_type)\n\n- `base` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `currency` \u003c[string]\u003e Required. Specify currency you would like to get OHLC for.\n- `date` \u003c[string]\u003e Required. Specify date to get OHLC for specific date using format `YYYY-MM-DD`.\n- `date_type` \u003c[string]\u003e Optional. Pass in a date type, overrides date parameter if passed in.\n\n```swift\nclient.ohlc(base: \"USD\", currency: \"EUR\", date: \"2021-04-05\", dateType: nil, completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_ohlc)\n\n---\n#### convert(from_currency, to_currency, amount, date)\n\n- `from_currency` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `to_currency` \u003c[string]\u003e Required. Specify currency you would like to convert to.\n- `amount` \u003c[number]\u003e Required. The amount to convert.\n- `date` \u003c[string]\u003e Optional. Specify date to use historical midpoint value for conversion with format `YYYY-MM-DD`. Otherwise, it will use live exchange rate date if value not passed in.\n\n```swift\nclient.convert(fromCurrency: \"USD\", toCurrency: \"EUR\", amount: 100.0, date: \"2021-04-05\", completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_convert)\n\n---\n#### timeframe(start_date, end_date, base, currencies)\n\n- `start_date` \u003c[string]\u003e Required. Specify the start date of your timeframe using the format `YYYY-MM-DD`.\n- `end_date` \u003c[string]\u003e Required. Specify the end date of your timeframe using the format `YYYY-MM-DD`.\n- `base` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `currencies` \u003c[List]\u003c[string]\u003e\u003e Optional. Pass in an list of currencies to return values for.\n\n```swift\nclient.timeframe(startDate: \"2021-04-05\", endDate: \"2021-04-06\", base: \"USD\", currencies: [\"AUD\", \"XAG\", \"GBP\", \"JPY\"], completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_timeframe)\n\n---\n#### change(start_date, end_date, base, currencies)\n\n- `start_date` \u003c[string]\u003e Required. Specify the start date of your timeframe using the format `YYYY-MM-DD`.\n- `end_date` \u003c[string]\u003e Required. Specify the end date of your timeframe using the format `YYYY-MM-DD`.\n- `base` \u003c[string]\u003e Optional. Pass in a base currency, defaults to USD.\n- `currencies` \u003c[List]\u003c[string]\u003e\u003e Optional. Pass in an list of currencies to return values for.\n\n```swift\nclient.change(startDate: \"2021-04-05\", endDate: \"2021-04-06\", base: \"USD\", currencies: [\"AUD\", \"XAG\", \"GBP\", \"JPY\"], completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_change)\n\n---\n#### usage()\n\n```swift\nclient.usage(completion: { result in\n  // do something\n})\n```\n\n[Link](https://forexrateapi.com/documentation#api_usage)\n\n---\n**[Official documentation](https://forexrateapi.com/documentation)**\n\n---\n## FAQ\n\n- How do I get an API Key?\n\n    Free API Keys are available [here](https://forexrateapi.com).\n\n- I want more information\n\n    Checkout our FAQs [here](https://forexrateapi.com/faq).\n\n\n## Support\n\nFor support, get in touch using [this form](https://forexrateapi.com/contact).\n\n\n[List]: https://www.w3schools.com/python/python_datatypes.asp 'List'\n[number]: https://www.w3schools.com/python/python_datatypes.asp 'Number'\n[string]: https://www.w3schools.com/python/python_datatypes.asp 'String'","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforexrateapi%2Fforexrateapi-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforexrateapi%2Fforexrateapi-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforexrateapi%2Fforexrateapi-swift/lists"}