Skip to content

Wickra ExchangeOne typed API. Ten exchanges.

Market data and signed order execution across 10 crypto exchanges, in eight languages. One compile-time-typed Exchange trait, built on the Wickra core.

Wickra Exchange

Install โ€‹

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-exchange

The paper account is a first-class exchange โ€‹

PaperExchange 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:?}");
}

Built on the Wickra core โ€‹

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.