{"id":17946804,"url":"https://github.com/gliderkite/akkorokamui","last_synced_at":"2025-03-24T20:32:50.324Z","repository":{"id":55930620,"uuid":"304676065","full_name":"gliderkite/akkorokamui","owner":"gliderkite","description":"Kraken REST APIs HTTP client","archived":false,"fork":false,"pushed_at":"2021-07-10T10:11:14.000Z","size":132,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T14:12:35.656Z","etag":null,"topics":["client","crypto","http","http-client","kraken","kraken-exchange-api","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/akkorokamui","language":"Rust","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/gliderkite.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":"2020-10-16T16:04:56.000Z","updated_at":"2023-12-07T12:43:05.000Z","dependencies_parsed_at":"2022-08-15T09:40:50.105Z","dependency_job_id":null,"html_url":"https://github.com/gliderkite/akkorokamui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gliderkite%2Fakkorokamui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gliderkite%2Fakkorokamui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gliderkite%2Fakkorokamui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gliderkite%2Fakkorokamui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gliderkite","download_url":"https://codeload.github.com/gliderkite/akkorokamui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245348326,"owners_count":20600627,"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":["client","crypto","http","http-client","kraken","kraken-exchange-api","rust"],"created_at":"2024-10-29T07:07:39.239Z","updated_at":"2025-03-24T20:32:49.932Z","avatar_url":"https://github.com/gliderkite.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :octopus: akkorokamui\n\n[![docs.rs](https://docs.rs/akkorokamui/badge.svg)](https://docs.rs/akkorokamui)\n[![crates.io](https://img.shields.io/crates/v/akkorokamui.svg)](https://crates.io/crates/akkorokamui)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n[akkorokamui](https://en.wikipedia.org/wiki/Akkorokamui) is a HTTP client\nwritten in Rust that allows to query the\n[Kraken REST APIs](https://docs.kraken.com/rest).\n\nThe main goal of this project is to provide a flexible interface and a safe\nimplementation.\n\nCheck out the [crate documentation](https://docs.rs/akkorokamui) to learn how to\nuse `akkorokamui`.\n\n\n### Example: account balance (async version)\n\n```rust\nuse akkorokamui::{api, Asset, Client, Credentials, Response};\nuse anyhow::{bail, Result};\nuse std::collections::HashMap;\n\ntype Amount = String;\ntype Balance\u003c'a\u003e = HashMap\u003cAsset\u003c'a\u003e, Amount\u003e;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let keys_path = \"kraken.key\";\n    let credentials = Credentials::read(keys_path)?;\n\n    let user_agent = \"\u003cproduct\u003e/\u003cproduct-version\u003e\";\n    let client = Client::with_credentials(user_agent, credentials)?;\n\n    let api = api::private::balance();\n    let resp: Response\u003cBalance\u003e = client.send(api).await?;\n    println!(\"{:?}\", resp);\n\n    if let Some(result) = resp.result {\n        println!(\"GBP: {:?}\", result.get(\u0026Asset::new(\"ZGBP\")));\n    } else {\n        bail!(\"Cannot get balance: {:?}\", resp.error);\n    }\n\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgliderkite%2Fakkorokamui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgliderkite%2Fakkorokamui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgliderkite%2Fakkorokamui/lists"}