[package]
name = "fin-proxy-client"
version = "0.2.0"
edition = "2021"
description = "Typed Rust client for the fin-proxy financial-data API"
license = "MIT OR Apache-2.0"
repository = "https://github.com/daiwanwei/fin-proxy"
readme = "README.md"
keywords = ["finance", "fmp", "api-client", "trading"]
categories = ["api-bindings"]

[dependencies]
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
url = "2"

# Response data types are reused from the same crates the server uses. We only
# need the core model types (FinanceResult, Equity*), which `motosan-finance`
# re-exports unconditionally via `model::*` — no provider feature required. The
# FMP statement types come from the separate `motosan-finance-fmp` dep below.
motosan-finance = { version = "0.7.4", default-features = false }
motosan-finance-fmp = "0.7.4"
motosan-finance-twse = "0.7.4"
motosan-finance-sec = "0.7.4"
# NewsArticle is not re-exported by the umbrella crate, so depend on -polygon directly.
motosan-finance-polygon = "0.7.4"

[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
wiremock = "0.6"
