[package]
edition = "2024"
name = "bpx-api-client"
version = "0.21.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Backpack Exchange API client"
readme = "README.md"
keywords = [
"backpack",
"exchange",
]
license = "Apache-2.0"
repository = "https://github.com/backpack-exchange/bpx-api-client"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[package.metadata.release]
release = true
[features]
default = []
integration-tests = []
ws = [
"futures-util",
"tokio",
"tokio-tungstenite",
]
[lib]
name = "bpx_api_client"
path = "src/lib.rs"
[[test]]
name = "get_historical_fills"
path = "tests/get_historical_fills.rs"
[[test]]
name = "integration-tests"
path = "tests/integration-tests.rs"
[dependencies.base64ct]
version = "1"
features = ["alloc"]
[dependencies.bpx-api-types]
version = "0.21.0"
[dependencies.ed25519-dalek]
version = "2"
[dependencies.futures-util]
version = "0.3"
optional = true
default-features = false
[dependencies.reqwest]
version = "0.13.2"
features = ["json"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_qs]
version = "1.1.1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"signal",
"sync",
"time",
]
optional = true
[dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["rustls-tls-native-roots"]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dev-dependencies.base64ct]
version = "1"
features = ["alloc"]
[dev-dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.rust_decimal]
version = "1"
[dev-dependencies.rust_decimal_macros]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"signal",
"sync",
"time",
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "0.6.5"