{"id":49076586,"url":"https://github.com/krakenfx/api-go","last_synced_at":"2026-04-20T10:07:43.849Z","repository":{"id":297031335,"uuid":"982984214","full_name":"krakenfx/api-go","owner":"krakenfx","description":"A Go module for interacting with the Kraken Spot and Derivatives APIs","archived":false,"fork":false,"pushed_at":"2025-11-17T20:16:09.000Z","size":341,"stargazers_count":13,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-17T22:13:22.207Z","etag":null,"topics":["api","crypto","cryptocurrency","go","kraken"],"latest_commit_sha":null,"homepage":"https://docs.kraken.com/api/","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/krakenfx.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":"2025-05-13T17:43:05.000Z","updated_at":"2025-11-17T20:16:12.000Z","dependencies_parsed_at":"2025-06-03T23:47:05.783Z","dependency_job_id":"12f440c6-3ff1-46c1-8028-5d8dfa294918","html_url":"https://github.com/krakenfx/api-go","commit_stats":null,"previous_names":["krakenfx/api-go"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/krakenfx/api-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakenfx%2Fapi-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakenfx%2Fapi-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakenfx%2Fapi-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakenfx%2Fapi-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krakenfx","download_url":"https://codeload.github.com/krakenfx/api-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krakenfx%2Fapi-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32042364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["api","crypto","cryptocurrency","go","kraken"],"created_at":"2026-04-20T10:07:43.186Z","updated_at":"2026-04-20T10:07:43.842Z","avatar_url":"https://github.com/krakenfx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"images/pro_logo_light.svg\" width=\"250\" alt=\"Kraken Logo\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eKraken Go API Connector\u003c/h1\u003e\n\nA Go module for interacting with the Kraken Spot and Derivatives APIs, offering both REST and WebSocket access to spot and futures exchanges. This library includes utilities for fixed-point arithmetic, callback handlers, and API helpers.\n\nKey features include:\n\n* Trading operations: add, amend, and cancel orders\n\n* Real-time market data streams\n\n* Book builders for L2 and L3 order books with checksum validation\n\n* Access to private account data such as balances and execution reports\n\n* Retrieval of instruments and assets\n\n* Utility functions for asset name normalization and price derivation\n\n## 🚀 Installation\n\nTo install the module in your Go project:\n```bash\ngo get github.com/krakenfx/api-go/v2/...\n```\n\nIf you're interested in running examples or contributing to development, clone the repo and install dependencies:\n\n```bash\ngit clone https://github.com/krakenfx/api-go.git\ncd api-go\ngo mod download\n```\n\n## 📂 Examples \u0026 Scripts\n\nExample packages using the module are located in the [examples](examples/) directory.\n\n### 🌐 Environment Configuration\n\nBefore running the scripts, you'll need to set the following environment variables to configure API endpoints and authentication keys:\n\n```bash\n# REST and WebSocket URLs for Kraken Spot API\nexport KRAKEN_API_SPOT_REST_URL=\"https://api.kraken.com\"\nexport KRAKEN_API_SPOT_WS_URL=\"wss://ws.kraken.com/v2\"\nexport KRAKEN_API_SPOT_WS_AUTH_URL=\"wss://ws-auth.kraken.com/v2\"\nexport KRAKEN_API_SPOT_PUBLIC=\"\"    # Insert your Spot public API key\nexport KRAKEN_API_SPOT_SECRET=\"\"    # Insert your Spot secret API key\n\n# REST and WebSocket URLs for Kraken Futures API\nexport KRAKEN_API_FUTURES_REST_URL=\"https://futures.kraken.com\"\nexport KRAKEN_API_FUTURES_WS_URL=\"wss://futures.kraken.com/ws/v1\"\nexport KRAKEN_API_FUTURES_PUBLIC=\"\"  # Insert your Futures public API key\nexport KRAKEN_API_FUTURES_SECRET=\"\"  # Insert your Futures secret API key\n```\n\n### 🔐 Running Authenticated Examples\n\nTo simplify execution of authenticated example scripts, use the provided helper script:\n\n```bash\n./scripts/run prod ./examples/spotrest/recenttrades\n```\n\nThis command sets the correct environment and runs the selected script with authentication enabled.\n\n## 🧱 Dependencies\n\nThis module uses the following third-party packages:\n\n* [gorilla/websocket](https://github.com/gorilla/websocket): WebSocket protocol implementation in Go.\n\n* [google/uuid](https://github.com/google/uuid): RFC 4122-compliant UUID generation.\n\n* [golang.org/x/sync](https://pkg.go.dev/golang.org/x/sync): Additional Go concurrency primitives.\n\n## 📫 Contributing\n\nFeel free to open issues, suggest features, or submit PRs.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakenfx%2Fapi-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrakenfx%2Fapi-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrakenfx%2Fapi-go/lists"}