{"id":40035381,"url":"https://github.com/houseofapis/currencyapi-go","last_synced_at":"2026-02-21T11:06:38.567Z","repository":{"id":198309452,"uuid":"700507914","full_name":"houseofapis/currencyapi-go","owner":"houseofapis","description":"Golang package for CurrencyApi.net","archived":false,"fork":false,"pushed_at":"2024-10-05T15:48:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T12:07:30.298Z","etag":null,"topics":["currency-converter","currency-exchange-rates","currency-rates","currencyapi","golang"],"latest_commit_sha":null,"homepage":"https://currencyapi.net/","language":"Go","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/houseofapis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-04T18:12:42.000Z","updated_at":"2024-10-05T15:48:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9594c0f1-285b-45f8-a38e-54754c2c97c6","html_url":"https://github.com/houseofapis/currencyapi-go","commit_stats":null,"previous_names":["houseofapis/currencyapi-go"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/houseofapis/currencyapi-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houseofapis%2Fcurrencyapi-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houseofapis%2Fcurrencyapi-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houseofapis%2Fcurrencyapi-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houseofapis%2Fcurrencyapi-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/houseofapis","download_url":"https://codeload.github.com/houseofapis/currencyapi-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/houseofapis%2Fcurrencyapi-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["currency-converter","currency-exchange-rates","currency-rates","currencyapi","golang"],"created_at":"2026-01-19T04:35:07.037Z","updated_at":"2026-02-21T11:06:38.555Z","avatar_url":"https://github.com/houseofapis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CurrencyApi Golang wrapper \n\n[![Go project version](https://badge.fury.io/go/github.com%2Fhouseofapis%2Fcurrencyapi-go.svg)](https://badge.fury.io/go/github.com%2Fhouseofapis%2Fcurrencyapi-go) [![Coverage Status](https://coveralls.io/repos/github/houseofapis/currencyapi-go/badge.svg?branch=main)](https://coveralls.io/github/houseofapis/currencyapi-go?branch=main) \n\n\u003e **Note:** API v1 is deprecated and will be retired on **31st July 2026**, at which point all v1 traffic will be redirected to v2. This SDK (v2.0.0+) targets API v2. If you are on an older version of this SDK, please upgrade.\n\n\u003ca href=\"https://currencyapi.net\" title=\"CurrencyApi\"\u003eCurrencyApi.net\u003c/a\u003e provides live currency rates via a REST API. A live currency feed for over 166 currencies, including physical (USD, GBP, EUR + more) and cryptos (Bitcoin, Litecoin, Ethereum + more). A JSON and XML currency api updated every 60 seconds.\n\nFeatures:\n\n- Live exchange rates (updated every 60 seconds).\n- 166 world currencies.\n- Popular cryptocurrencies included; Bitcoin, Litecoin etc.\n- Convert currencies on the fly with the convert endpoint.\n- Historical currency rates back to year 2000.\n- OHLC (Open, High, Low, Close) candlestick data for technical analysis (Tier 3+).\n- Easy to follow \u003ca href=\"https://currencyapi.net/documentation\" title=\"currency-api-documentation\"\u003edocumentation\u003c/a\u003e\n\nSignup for a free or paid account \u003ca href=\"https://currencyapi.net/#pricing-sec\" title=\"currency-api-pricing\"\u003ehere\u003c/a\u003e.\n\n## This package is a:\n\nGolang wrapper for \u003ca href=\"https://currencyapi.net\" title=\"CurrencyApi\"\u003eCurrencyApi.net\u003c/a\u003e endpoints.\n\n## Developer Guide\n\nFor an easy to following developer guide, check out our [Golang Developer Guide](https://currencyapi.net/sdk/golang).\n\nAlternatively keep reading below.\n\n#### Prerequisites\n\n- Minimum Go 1.21\n- Working on Go 1.26\n- Free or Paid account with CurrencyApi.net\n\n#### Test Coverage\n\n- 100% coverage\n\n## Installation\n\n```bash\ngo get github.com/houseofapis/currencyapi-go\n```\nthen import the package with:\n\n```golang\nimport (\n    ...\n\t\"github.com/houseofapis/currencyapi-go\"\n\t...\n)\n```\n\n## Usage\n\n### Instantiating\n\n```golang\nclient := currencyapi.Client(\"API_KEY\")\n```\n\n### Live rates:\n\n```golang\nparams := map[string]string{\n    \"output\": \"JSON\",\n    \"base\":   \"USD\",\n}\n\nbody, err := client.Rates(params)\n```\n\n**Available params for rates endpoint**\n\n| Methods | Description |\n| --- | --- |\n| `base` | The base currency you wish you receive the currency conversions for. This will output all currency conversions for that currency. **Default: USD**. |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003cbr\u003e\n\n### List of available currencies:\n\n```golang\nparams := map[string]string{\n    \"output\": \"XML\"\n}\n\nbody, err := client.Currencies(params)\n```\n\n**Available methods for currencies endpoint**\n\n| Methods | Description |\n| --- | --- |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003cbr\u003e\n\n### Convert:\n\n```golang\nparams := map[string]string{\n    \"output\": \"JSON\",\n    \"from\": \"USD\",\n    \"to\": \"GBP\",\n    \"amount\": 15.99,\n}\n\nbody, err := client.Convert(params)\n```\n\n**Available methods for convert endpoint**\n\n| Methods | Description |\n| --- | --- |\n| `amount` | The value of the currency you want to convert from. This should be a number and can contain a decimal place. **Required**. |\n| `from` | The currency you want to convert. This will be a three letter ISO 4217 currency code from one of the currencies we have rates for. **Required**. |\n| `to` | The currency you want to convert the amount 'to'. Again this will be a three letter currency code from the ones we offer. **Required**. |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003cbr\u003e\n\n### Historical:\n\n```golang\nparams := map[string]string{\n    \"output\": \"JSON\",\n    \"base\": \"GBP\",\n    \"date\": \"2019-01-01\"\n}\n\nbody, err := client.History(params)\n```\n\n**Available methods for historical endpoint**\n\n| Methods | Description |\n| --- | --- |\n| `date` | The historical date you wish to receive the currency conversions for. This should be formatted as YYYY-MM-DD. **Required**. |\n| `base` | The base currency you wish you receive the currency conversions for. This will output all currency conversions for that currency. **Default: USD**. |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003cbr\u003e\n\n### Timeframe:\n\n```golang\nparams := map[string]string{\n    \"output\": \"JSON\",\n    \"base\": \"GBP\",\n    \"start_date\": \"2019-01-01\"\n    \"end_date\": \"2019-01-05\"\n}\n\nbody, err := client.Timeframe(params)\n```\n\n**Available methods for timeframe endpoint**\n\n| Methods | Description |\n| --- | --- |\n| `start_date` | The historical date you wish to receive the currency conversions from. This should be formatted as YYYY-MM-DD. **Required**. |\n| `end_date` | The historical date you wish to receive the currency conversions until. This should be formatted as YYYY-MM-DD. **Required**. |\n| `base` | The base currency you wish you receive the currency conversions for. This will output all currency conversions for that currency. **Default: USD**. |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003cbr\u003e\n\n### OHLC (Open, High, Low, Close):\n\n```golang\nparams := map[string]string{\n    \"currency\": \"EUR\",\n    \"date\":     \"2023-12-25\",\n    \"interval\": \"1h\",\n}\n\nbody, err := client.Ohlc(params)\n```\n\n**Available params for OHLC endpoint**\n\n| Parameter | Description |\n| --- | --- |\n| `currency` | The target currency code to retrieve OHLC data for (e.g. `EUR`, `GBP`, `BTC`). **Required**. |\n| `date` | The date you wish to retrieve OHLC data for. This should be formatted as YYYY-MM-DD and must be in the past. **Required**. |\n| `base` | The base currency for the pair. **Default: USD**. |\n| `interval` | The time interval for each OHLC candle. Allowed values: `5m`, `15m`, `30m`, `1h`, `4h`, `12h`, `1d`. **Default: 1d**. |\n| `output` | Response output in either JSON or XML. **Default: JSON**. |\n\n\u003e **Note:** The OHLC endpoint requires a Tier 3 (Professional) subscription.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhouseofapis%2Fcurrencyapi-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhouseofapis%2Fcurrencyapi-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhouseofapis%2Fcurrencyapi-go/lists"}