{"id":22983254,"url":"https://github.com/mikejoh/coinbase-go","last_synced_at":"2025-07-26T02:38:09.439Z","repository":{"id":45591734,"uuid":"330599981","full_name":"mikejoh/coinbase-go","owner":"mikejoh","description":"Coinbase API v2 client","archived":false,"fork":false,"pushed_at":"2021-12-06T19:44:18.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T09:51:54.533Z","etag":null,"topics":["coinbase","coinbase-api","golang","golang-package"],"latest_commit_sha":null,"homepage":"","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/mikejoh.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}},"created_at":"2021-01-18T08:23:17.000Z","updated_at":"2021-12-06T19:41:04.000Z","dependencies_parsed_at":"2022-08-28T09:32:34.288Z","dependency_job_id":null,"html_url":"https://github.com/mikejoh/coinbase-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mikejoh/coinbase-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fcoinbase-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fcoinbase-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fcoinbase-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fcoinbase-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikejoh","download_url":"https://codeload.github.com/mikejoh/coinbase-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikejoh%2Fcoinbase-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267108669,"owners_count":24037534,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["coinbase","coinbase-api","golang","golang-package"],"created_at":"2024-12-15T02:37:01.226Z","updated_at":"2025-07-26T02:38:09.416Z","avatar_url":"https://github.com/mikejoh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coinbase-go\n\n![Test workflow](https://github.com/mikejoh/coinbase-go/actions/workflows/test.yml/badge.svg)\n\nAn alternative Golang package to interact with the [Coinbase](https://www.coinbase.com/) **v2 API**.\n\n_Note that this project is still work in progress!_\n\n## Installation\nInstall:\n```\ngo get github.com/mikejoh/coinbase-go\n```\nImport (with alias):\n```go\nimport cb \"github.com/mikejoh/coinbase-go\"\n```\n## Examples\n\nInstantiate client with config (using import alias):\n```go\npackage main\n\nimport cb \"github.com/mikejoh/coinbase-go\"\n\nfunc main() {\n\tconfig := cb.NewConfig(\n\t\tcb.ApiKey(\"key\"),\n\t\tcb.Secret(\"secret\"),\n\t)\n\n\tclient := cb.NewClient(config)\n}\n```\n\n### Exchange rates\n```go\nrates, err := client.ExchangeRates(context.Background(), \"BTC\")\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(rates)\n```\n### Currencies\n```go\ncurrencies, err := client.Currencies(context.Background())\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(currencies)\n```\n\n### Prices\n```go\nprices, err := client.Prices(context.Background(), \"BTC-SEK\", \"sell\")\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(prices)\n```\n\n### Time\n```go\ntime, err := client.Time(context.Background())\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(time)\n```\n\n## Coinbase CLI\n\n1. Build:\n```\nmake client\n```\nThe binary is created in `./bin`.\n\n2. Example usage:\n```\n./bin/cb currencies\n./bin/cb prices --pair BTC-SEK --type buy\n./bin/cb exchange-rates\n./bin/cb exchange-rates --currency SEK\n./bin/cb time\n```\n## Resources\n\n[v2 API ref](https://developers.coinbase.com/api/v2#introduction)\n## Todo\n* [ ] Add code documentation\n* [ ] Rate limit\n* [ ] Pagination\n* [ ] Header signing (auth)\n* [ ] Implement Wallet endpoints\n* [ ] Implement a more generic way of making client API calls, DRY.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejoh%2Fcoinbase-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikejoh%2Fcoinbase-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikejoh%2Fcoinbase-go/lists"}