{"id":19221222,"url":"https://github.com/gozeloglu/currency-tcmb","last_synced_at":"2026-06-15T06:04:34.117Z","repository":{"id":153917517,"uuid":"629696386","full_name":"gozeloglu/currency-tcmb","owner":"gozeloglu","description":"TCMB(Central Bank of the Republic of Türkiye) currency API written in Go.","archived":false,"fork":false,"pushed_at":"2023-04-25T11:57:40.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-04T20:16:40.532Z","etag":null,"topics":["api","currency","go","golang","tcmb","tcmb-api"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/gozeloglu/currency-tcmb","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/gozeloglu.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}},"created_at":"2023-04-18T20:59:58.000Z","updated_at":"2023-12-12T15:26:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"483a094a-6c52-44db-a457-853947ca6d19","html_url":"https://github.com/gozeloglu/currency-tcmb","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeloglu%2Fcurrency-tcmb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeloglu%2Fcurrency-tcmb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeloglu%2Fcurrency-tcmb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gozeloglu%2Fcurrency-tcmb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gozeloglu","download_url":"https://codeload.github.com/gozeloglu/currency-tcmb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240295376,"owners_count":19778876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","currency","go","golang","tcmb","tcmb-api"],"created_at":"2024-11-09T14:40:32.616Z","updated_at":"2026-06-15T06:04:34.082Z","avatar_url":"https://github.com/gozeloglu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# currency-tcmb\n\n`currency-tcmb` is a Go API for the Central Bank of the Republic of Türkiye(TCMB) currency data. It fetches the data from the [URL](https://www.tcmb.gov.tr/kurlar/today.xml), \nparses the XML, and returns necessary information. It returns today's data. \n\n## Installation\n\n```shell\ngo get github.com/gozeloglu/currency-tcmb\n```\n\n## Usage\n\n```go\nfunc main() {\n    tcmb := currency.New()  // It fetches and parses the XML data in background\n    usdCurrency := tcmb.FromCurrencyCode(currency.USD)  // Get USD currency against TRY  \n    fmt.Println(usdCurrency.BanknoteBuying())\n    fmt.Println(usdCurrency.BanknoteSelling())\n}\n```\n\nYou can retrieve the historical currency by passing `WithDate()` option. \n\n```go\ntcmb := currency.New(WithDate(1, time.September, 2021))  // It fetches 01 September 2021 currency data.\n```\n\n## LICENSE\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozeloglu%2Fcurrency-tcmb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgozeloglu%2Fcurrency-tcmb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgozeloglu%2Fcurrency-tcmb/lists"}