One typed API
A single compile-time-typed Exchange trait spans all ten venues. Symbols, order types, the local order-book builder and reconnect/resubscribe are shared; only the signing family differs per exchange.
Market data and signed order execution across 10 crypto exchanges, in eight languages. One compile-time-typed Exchange trait, built on the Wickra core.
The same Exchange API from every language โ native Rust, Python and Node.js, plus a C ABI for C, C++, C#, Go, Java and R.
pip install wickra-exchangePaperExchange implements the same Exchange trait a live venue does and fills orders deterministically through the wickra-backtest engine. A strategy written against the trait runs paper โ live by swapping the implementation โ no key, no network, same code.
use rust_decimal_macros::dec;
use wickra_exchange::{Exchange, Execution, MarketData, OrderRequest, PaperExchange, Symbol};
let market = Symbol::new("BTC", "USDT");
// A paper account is a first-class Exchange: it fills deterministically
// through the wickra-backtest engine โ the same API a live venue uses.
let mut exchange = PaperExchange::new()
.with_fees(dec!(1), dec!(5)) // maker / taker basis points
.with_slippage_bps(dec!(10))
.with_balance("USDT", dec!(100000));
exchange.set_price(&market, dec!(20000));
let order = exchange.place_order(&OrderRequest::market_buy(market, dec!(1)))?;
println!("filled at {:?} ({:?})", order.average_price, order.status);
for event in exchange.poll_events() {
println!("event: {event:?}");
}Wickra Exchange is part of the Wickra ecosystem. Its microstructure feeds โ funding, open interest, liquidations, long/short ratio โ arrive as the exact typed shapes wickra-core consumes, so the same data drives 514 streaming indicators, the backtester, and live execution with zero glue.
โ ๏ธ Real orders move real money. Every signed-execution path is safety-critical. Use withdrawal-disabled keys, test against exchange testnets first, and never put secret keys in a browser or client. Wickra Exchange is not a trading system and comes with no warranty โ use at your own risk.