rustrade-instrument 0.2.0

Core Rustrade Exchange, Instrument and Asset data structures and associated utilities.
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.95"
name = "rustrade-instrument"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Rustrade Exchange, Instrument and Asset data structures and associated utilities."
documentation = "https://docs.rs/rustrade-instrument"
readme = "README.md"
keywords = [
    "trading",
    "backtesting",
    "crypto",
    "stocks",
    "algorithmic",
]
categories = [
    "finance",
    "simulation",
]
license = "MIT"
repository = "https://github.com/Niqnil/rustrade"

[features]
default = []
ibkr = [
    "dep:ibapi",
    "dep:fnv",
    "dep:parking_lot",
]

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

[dependencies.chrono]
version = "0.4.39"
features = [
    "serde",
    "serde",
]

[dependencies.derive_more]
version = "2.0.1"
features = [
    "constructor",
    "display",
    "from",
    "display",
]

[dependencies.fnv]
version = "1.0.7"
optional = true

[dependencies.ibapi]
version = "=2.12.0"
features = ["sync"]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12.3"
optional = true

[dependencies.rust_decimal]
version = "1.36.0"
features = [
    "maths",
    "serde-with-str",
]

[dependencies.serde]
version = "1.0.216"
features = [
    "derive",
    "derive",
]

[dependencies.smol_str]
version = "0.3.2"
features = ["serde"]

[dependencies.thiserror]
version = "2.0.8"

[dev-dependencies.rust_decimal_macros]
version = "1.29.1"

[dev-dependencies.serde_json]
version = "1.0.133"