{"repo":"Nayshins/dex-rs","free":true,"listed":false,"github":"https://github.com/Nayshins/dex-rs","clone":"git clone https://github.com/Nayshins/dex-rs.git","description":"A Rust SDK for Perpetual Futures Distributed Exchanges. Starting with Hyperliquid.","language":"Rust","stars":11,"topics":["cryptocurrency","dex","sdk-rust"],"license":null,"category":"blockchain-web3","readme_excerpt":"dex-rs A high-performance Rust library for interacting with cryptocurrency perpetual exchanges. Currently supports Hyperliquid with a modular architecture for easy integration of additional exchanges. Features - Unified API : Common trait interface ( PerpDex ) for all supported exchanges - Async/Await : Built on Tokio for high-performance async operations - Real-time Streaming : WebSocket support for live market data and account updates - Type Safety : Comprehensive type definitions with NaN-safe numeric types - Production Ready : TLS support, automatic reconnection, and robust error handling Supported Exchanges - Hyperliquid - Complete API implementation with all 24 endpoints Quick Start Add to your Cargo.toml : Basic Usage Trading Example Client Order IDs The library supports client order IDs (clOrdIds) for order tracking: API Reference Market Data - trades(coin, limit) - Get recent trades - orderbook(coin, depth) - Get order book snapshot - all mids() - Get mid prices for all assets - meta() - Get perpetual market metadata - funding history(coin, start, end) - Get funding rate history Account Management (Requires Authentication) - place order(order) - Place a new order - cancel(order id) - Cancel an existing order - positions() - Get current positions - user state() - Get account state and balances - open orders() - Get open orders - user fills() - Get fill history Real-time Streaming - subscribe(StreamKind, coin, channel) - Subscribe to real-time data Supported stream typ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Nayshins","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Nayshins/dex-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}