drm-exchange-limitless
Limitless exchange implementation for dr-manhattan.
Overview
This crate provides a complete Limitless integration including:
- REST API: Fetch markets, create/cancel orders, manage positions
- WebSocket: Real-time orderbook streaming via Socket.IO
- CLOB Client: Direct access to Limitless's Central Limit Order Book
- Authentication: Ethereum wallet signing for trading
Installation
[]
= "0.1"
Quick Start
use Exchange;
use ;
async
Authentication
For trading operations, you need to provide your Ethereum private key:
use ;
let config = new
.with_private_key;
let exchange = new?;
exchange.authenticate.await?;
// Now you can create orders, cancel orders, etc.
WebSocket Streaming
use LimitlessWebSocket;
use WebSocketClient;
let ws = new;
let mut stream = ws.subscribe_orderbook.await?;
while let Some = stream.next.await
Features
| Feature | Status |
|---|---|
| Fetch markets | ✅ |
| Fetch orderbook | ✅ |
| Create orders | ✅ |
| Cancel orders | ✅ |
| Fetch positions | ✅ |
| Fetch balance | ✅ |
| WebSocket orderbook | ✅ |
Part of dr-manhattan-rust
This crate is part of the dr-manhattan-rust project, a Rust port of guzus/dr-manhattan.
License
MIT