strike-sdk
Rust SDK for Strike prediction markets on BNB Chain.
Installation
[]
= "0.1"
Or via cargo:
Quick Start
Read-only (no wallet)
use *;
async
Trading (with wallet)
use *;
async
Atomic Replace (cancel + place in one tx)
let new_orders = client.orders.replace.await?;
Event Subscriptions
use StreamExt;
let mut events = client.events.await?;
while let Some = events.next.await
Key Concepts
- LOT_SIZE = 1e16 wei ($0.01 per lot)
- Ticks are 1–99, representing $0.01–$0.99 probability
- 4-sided orderbook: Bid, Ask, SellYes, SellNo
- Order types: GoodTilBatch (GTB) expires after one batch, GoodTilCancelled (GTC) rolls forward
- Batch auctions: orders are collected into batches and cleared atomically
- All fills pay the clearing tick, not the limit tick
- 1 YES + 1 NO = 1 USDT (always)
Features
| Feature | Default | Description |
|---|---|---|
nonce-manager |
Yes | Shared nonce management for sequential TX sends |
Disable the nonce manager if you manage nonces yourself:
= { = "0.1", = false }
Modules
| Module | Description |
|---|---|
client |
StrikeClient builder (read-only and trading modes) |
chain::orders |
placeOrders, replaceOrders, cancelOrders |
chain::vault |
USDT approval, balance queries |
chain::redeem |
Outcome token redemption |
chain::tokens |
ERC-1155 outcome token helpers |
chain::markets |
On-chain market state reads |
events::subscribe |
WSS event stream with auto-reconnect |
events::scan |
Historical event scanning (chunked getLogs) |
indexer |
REST client for market snapshots |
nonce |
NonceSender for sequential TX sends |
Coming Soon
- Historical queries (fills, trade history)
- TypeScript SDK
- Python SDK