{"id":26857009,"url":"https://github.com/dimibe/kraken_api","last_synced_at":"2026-05-01T09:32:21.640Z","repository":{"id":48324891,"uuid":"204269408","full_name":"Dimibe/kraken_api","owner":"Dimibe","description":"Dart Library for the Kraken API (https://www.kraken.com/features/api)","archived":false,"fork":false,"pushed_at":"2021-08-01T11:31:47.000Z","size":24,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-08-20T22:29:17.225Z","etag":null,"topics":["dart","dart-package","kraken-exchange-api"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/kraken_api/","language":"Dart","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/Dimibe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-25T08:50:59.000Z","updated_at":"2021-08-01T11:35:46.000Z","dependencies_parsed_at":"2022-08-20T12:51:09.507Z","dependency_job_id":null,"html_url":"https://github.com/Dimibe/kraken_api","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fkraken_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fkraken_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fkraken_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dimibe%2Fkraken_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dimibe","download_url":"https://codeload.github.com/Dimibe/kraken_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399816,"owners_count":20770907,"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":["dart","dart-package","kraken-exchange-api"],"created_at":"2025-03-31T00:30:16.330Z","updated_at":"2026-05-01T09:32:21.567Z","avatar_url":"https://github.com/Dimibe.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kraken API\n[![Pub](https://img.shields.io/pub/v/kraken_api.svg)](https://pub.dev/packages/kraken_api)\n![CI](https://github.com/Dimibe/kraken_api/workflows/CI/badge.svg?branch=master)\n\nDart Library for the Kraken API. (https://www.kraken.com/features/api).\n\n## Getting Started\n\n Add the package to your pubspec.yaml:\n\n ```yaml\n kraken_api: ^2.0.0\n ```\n \n In your dart file, import the library:\n\n ```Dart\nimport 'package:kraken_api/kraken_api.dart';\n ``` \n\n ## Usage\n\nFirst create an `KrakenApi` instance:\n\n ```Dart\n KrakenApi api = KrakenApi('apiKey', 'secretKey');\n ```\n\n The constructor requires the API-Key and the Secret-Key which  should be both generated on the kraken website. \n\n For accessing the kraken API use the `call` method.\n As the first parameter pass the method which should be called. A list of all available requests is added at the end. \n Request parameters can be added to the request by the `parameters` parameter:\n\n```Dart\nFuture\u003cString\u003e response = api.call(Methods.TRADE_BALANCE, parameters: {'asset': 'ZEUR'});\n```\n\nHint: To see which parameters can be applied to which API calls take a look at the [Kraken API](https://www.kraken.com/features/api).\n\nThe `call` method returns the response body as an `Future\u003cString\u003e` which can be accessed through e.g.: \n```Dart\nresponse.then(\n    (body) {\n        Map\u003cString, dynamic\u003e tradeBalances = jsonDecode(body)['result'];\n        return tradeBalances;\n    },\n);\n ```\n\n ## API\n\n Public methods:\n\n```Dart\nMethods.TIME \nMethods.ASSETS\nMethods.ASSET_PAIRS \nMethods.TICKER \nMethods.OHLC \nMethods.DEPTH \nMethods.TRADES\nMethods.SPREAD \n```\n\nPrivate methods:\n\n```Dart\nMethods.BALANCE\nMethods.TRADE_BALANCE\nMethods.OPEN_ORDERS \nMethods.CLOSED_ORDERS \nMethods.QUERY_ORDERS\nMethods.TRADES_HISTORY \nMethods.QUERY_TRADES \nMethods.OPEN_POSITIONS \nMethods.LEDGERS \nMethods.QUERY_LEDGERS\nMethods.TRADE_VOLUME \nMethods.ADD_EXPORT\nMethods.EXPORT_STATUS \nMethods.RETRIEVE_EXPORT \nMethods.REMOVE_EXPORT \nMethods.ADD_ORDER\nMethods.CANCEL_ORDER \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimibe%2Fkraken_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimibe%2Fkraken_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimibe%2Fkraken_api/lists"}