[package]
edition = "2024"
rust-version = "1.85"
name = "kraken-api-client"
version = "0.1.0"
build = false
exclude = [
".archive/*",
"target/*",
"third-party/*",
".env",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async Rust client library for the Kraken exchange REST and WebSocket v2 APIs"
documentation = "https://docs.rs/kraken-api-client"
readme = "README.md"
keywords = [
"kraken",
"crypto",
"trading",
"async",
"tokio",
]
categories = [
"api-bindings",
"asynchronous",
"finance",
]
license = "MIT"
repository = "https://github.com/dcompoze/kraken-api-client"
[lib]
name = "kraken_api_client"
path = "src/lib.rs"
[[example]]
name = "auth_credentials"
path = "examples/auth_credentials.rs"
[[example]]
name = "earn"
path = "examples/earn.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[example]]
name = "funding"
path = "examples/funding.rs"
[[example]]
name = "futures_private"
path = "examples/futures_private.rs"
[[example]]
name = "futures_public"
path = "examples/futures_public.rs"
[[example]]
name = "futures_ws_private"
path = "examples/futures_ws_private.rs"
[[example]]
name = "futures_ws_public"
path = "examples/futures_ws_public.rs"
[[example]]
name = "public_data"
path = "examples/public_data.rs"
[[example]]
name = "rate_limit"
path = "examples/rate_limit.rs"
[[example]]
name = "serde_helpers"
path = "examples/serde_helpers.rs"
[[example]]
name = "spot_earn_status"
path = "examples/spot_earn_status.rs"
[[example]]
name = "spot_funding_advanced"
path = "examples/spot_funding_advanced.rs"
[[example]]
name = "spot_private_account"
path = "examples/spot_private_account.rs"
[[example]]
name = "spot_private_trading"
path = "examples/spot_private_trading.rs"
[[example]]
name = "spot_trait_object"
path = "examples/spot_trait_object.rs"
[[example]]
name = "spot_trait_usage"
path = "examples/spot_trait_usage.rs"
[[example]]
name = "spot_ws_market_data"
path = "examples/spot_ws_market_data.rs"
[[example]]
name = "spot_ws_trading"
path = "examples/spot_ws_trading.rs"
[[example]]
name = "types_common"
path = "examples/types_common.rs"
[[example]]
name = "types_last_and_data"
path = "examples/types_last_and_data.rs"
[[example]]
name = "ws_config"
path = "examples/ws_config.rs"
[[example]]
name = "ws_ticker"
path = "examples/ws_ticker.rs"
[[test]]
name = "futures_rest_integration"
path = "tests/futures_rest_integration.rs"
[[test]]
name = "live_smoke"
path = "tests/live_smoke.rs"
[[test]]
name = "rest_integration"
path = "tests/rest_integration.rs"
[[test]]
name = "spot_public_integration"
path = "tests/spot_public_integration.rs"
[dependencies.base64]
version = "0.22"
[dependencies.futures-util]
version = "0.3"
[dependencies.governor]
version = "0.8"
[dependencies.hmac]
version = "0.12"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"rustls",
]
default-features = false
[dependencies.reqwest-middleware]
version = "0.5"
[dependencies.reqwest-retry]
version = "0.9"
[dependencies.reqwest-tracing]
version = "0.6"
[dependencies.rust_decimal]
version = "1.39"
features = ["serde-with-str"]
[dependencies.secrecy]
version = "0.10"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["arbitrary_precision"]
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.serde_with]
version = "3.14"
features = ["time_0_3"]
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"serde",
"macros",
]
[dependencies.tokio]
version = "1.49"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls-tls-native-roots"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2.5"
[dev-dependencies.dotenv]
version = "0.15"
[dev-dependencies.tokio]
version = "1.49"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-log]
version = "0.2.0"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.wiremock]
version = "0.6"