oanda-rs 0.1.0

Async Rust SDK for the OANDA v20 REST and streaming API
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "oanda-rs"
version = "0.1.0"
build = false
exclude = [
    "schema/",
    ".github/",
    "docs/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust SDK for the OANDA v20 REST and streaming API"
documentation = "https://docs.rs/oanda-rs"
readme = "README.md"
keywords = [
    "oanda",
    "forex",
    "trading",
    "fx",
    "api",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "BSD-3-Clause"
repository = "https://github.com/iganev/oanda-rs"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
tracing = ["dep:tracing"]

[lib]
name = "oanda_rs"
path = "src/lib.rs"

[[example]]
name = "candles"
path = "examples/candles.rs"

[[example]]
name = "list_accounts"
path = "examples/list_accounts.rs"

[[example]]
name = "market_order"
path = "examples/market_order.rs"

[[example]]
name = "pricing_stream"
path = "examples/pricing_stream.rs"

[[example]]
name = "transaction_stream"
path = "examples/transaction_stream.rs"

[[test]]
name = "accounts"
path = "tests/accounts.rs"

[[test]]
name = "instruments"
path = "tests/instruments.rs"

[[test]]
name = "live"
path = "tests/live.rs"

[[test]]
name = "orders"
path = "tests/orders.rs"

[[test]]
name = "positions"
path = "tests/positions.rs"

[[test]]
name = "serde_roundtrip"
path = "tests/serde_roundtrip.rs"

[[test]]
name = "streaming"
path = "tests/streaming.rs"

[[test]]
name = "trades"
path = "tests/trades.rs"

[[test]]
name = "transactions"
path = "tests/transactions.rs"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "clock",
]
default-features = false

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "query",
]

[dependencies.rust_decimal]
version = "1"
features = ["serde"]

[dependencies.serde]
version = "1.0.181"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "time",
    "sync",
]
default-features = false

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "test-util",
]

[dev-dependencies.wiremock]
version = "0.6"