[package]
edition = "2021"
name = "alpacars"
version = "0.1.2"
authors = ["Kachain Fuangsung <kachain.f@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust SDK for Alpaca Markets API"
homepage = "https://github.com/kfuangsung/alpacars"
documentation = "https://docs.rs/alpacars"
readme = "README.md"
keywords = [
"alpaca",
"trading",
"api",
"async",
"sdk",
]
categories = [
"api-bindings",
"asynchronous",
"network-programming",
]
license = "MIT"
repository = "https://github.com/kfuangsung/alpacars"
[lib]
name = "alpacars"
path = "src/lib.rs"
[[example]]
name = "crypto_trading_basic"
path = "examples/crypto_trading_basic.rs"
[[example]]
name = "options_trading_basic"
path = "examples/options_trading_basic.rs"
[[example]]
name = "options_trading_mleg"
path = "examples/options_trading_mleg.rs"
[[example]]
name = "stocks_trading_basic"
path = "examples/stocks_trading_basic.rs"
[[test]]
name = "data_stock"
path = "tests/data_stock.rs"
[[test]]
name = "trading_account"
path = "tests/trading_account.rs"
[[test]]
name = "trading_assets"
path = "tests/trading_assets.rs"
[[test]]
name = "trading_orders"
path = "tests/trading_orders.rs"
[[test]]
name = "trading_positions"
path = "tests/trading_positions.rs"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.futures-util]
version = "0.3"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
[dependencies.rmp-serde]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"serde",
"v4",
]
[dev-dependencies.wiremock]
version = "0.6"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true