| Crates.io | zerodha-ss |
| lib.rs | zerodha-ss |
| version | 0.1.0 |
| created_at | 2025-12-21 15:32:40.686357+00 |
| updated_at | 2025-12-21 15:32:40.686357+00 |
| description | An unofficial Rust client library for the Zerodha Kite Connect WebSocket API. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1998135 |
| size | 48,078 |
A small Rust crate for working with Zerodha (trading/instrument timeline) or websocket timelines. This repository provides a library (crate) and an example demonstrating how to use the code to connect/process timeline-like data streams.
Crate:
zerodha-tl— version 0.1.0 (seeCargo.toml)
zerodha-tl is a small Rust library and example set that provides utilities and typed models to work with timeline-style data, websockets, and asynchronous streams. The crate is built on top of Tokio and uses tokio-tungstenite for websocket support and serde for (de)serialization.
The project structure is minimal and opinionated for library + example usage:
src/lib.rs — crate library entrypointsrc/config.rs — configuration helperssrc/models.rs — domain models and serde typessrc/utils.rs — utility helpersexamples/try.rs — an example binary demonstrating usageEnsure you have Rust and Cargo installed (stable toolchain recommended). Then clone and build:
git clone <repo-url>
cd zerodha-tl
cargo build --release
Or for development builds:
cargo build
This crate is primarily a library with an example. To run the included example:
# Run the example named `try` from the examples/ folder
cargo run --example try
If you'd like to use the crate in another project, add it to your Cargo.toml as a dependency (path or crates.io if published):
[dependencies]
zerodha-tl = { path = "../zerodha-tl" }
Then import the crate in your code and call the public API exposed in lib.rs.
The examples/try.rs file includes a small demonstration of using the crate (connect to a source, use models and utilities). Inspect the file for details and run it as shown in the Usage section.
Developer workflow:
cargo buildcargo run --example trycargo add (or edit Cargo.toml) and run cargo build