streamex-sdk
v1.0.7
Published
Realtime crypto market streaming SDK built with Rust and napi-rs
Downloads
986
Readme
streamex-sdk
Realtime multi-exchange crypto market data SDK for Node.js and Rust.
streamex-sdk provides unified realtime market data streams across multiple crypto exchanges through a single API.
Features
- Unified exchange abstraction
- Realtime trade streaming
- Multi-exchange support
- Native Rust performance
- Node.js bindings via napi-rs
- Async websocket infrastructure
- Dynamic subscriptions
- Lightweight API
Installation
npm install streamex-sdk
bun add streamex-sdkQuick Start
const { JsStreamex } = require("streamex-sdk");
const stream = new JsStreamex();
stream.trades(
"binance",
"BTCUSDT",
(trade) => {
console.log(trade);
}
);
setInterval(() => {}, 1000);Trade Structure
{
exchange: string;
symbol: string;
event_type: string;
event_time: string;
trade_id: string;
last_price: string;
quantity: string;
is_buyer_maker?: boolean;
timestamp: number;
}Supported Exchanges
- Binance
- Coinbase
- Bitfinex
- Bitget
- Bitstamp
- Bybit
- Crypto.com
- HTX
- Kraken
- Okx
Examples
Inside:
examples/Available examples:
- single_exchange.rs
- multi_exchange.rs
- dynamic_subscriptions.rs
- unsubscribe.rs
Roadmap
- Orderbook streams
- Candlestick streams
- Funding rates
- Liquidation streams
- Exchange reconnect resilience
- More exchange integrations
- Electron support examples
- Full TypeScript SDK
License
MIT
