▶ Live demo: all 515 indicators over real Binance market data, computed live in your browser — live.wickra.org · zero backend, powered by
wickra-wasm.
One typed API. Ten exchanges. Eight languages — for Python. pip install wickra-exchange — prebuilt wheels for Linux, macOS and Windows, nothing to compile.
Python bindings for wickra-exchange:
streaming-native, unified connectivity for the ten largest crypto exchanges, with
offline paper and replay simulators that share the exact same API.
pip install wickra-exchangePre-built wheels ship for Linux, macOS and Windows — there is nothing to compile and no C library to track down.
maturin develop --release
python -m pytest tests -qLicensed under MIT OR Apache-2.0.
import wickra_exchange as wx
# Offline paper account — deterministic, network-free.
ex = wx.Exchange.paper({"USDT": 100_000.0}, taker_bps=5.0)
ex.set_price("BTC/USDT", 20_000.0)
order = ex.place_order(wx.OrderRequest.market_buy("BTC/USDT", 1.0))
assert order["status"] == "filled"
print(ex.balances())
# Replay a recorded tape through the same API:
ex = wx.Exchange.replay_trades("BTC/USDT", [100.0, 101.0, 110.0], {"USDT": 10_000.0})
while (events := ex.poll_events()):
for event in events:
... # drive your strategy
# Live venue (needs API keys):
# creds = wx.Credentials("key", "secret")
# ex = wx.Exchange.connect("binance", creds)The same strategy runs paper, replay and live by swapping the constructor.
Every binding forwards to the same data-driven Rust core, so what this one adds is
the call overhead of PyO3, not a different result. The core's throughput is
measured by the repository's benchmark suite and the nightly bench.yml run; the
numbers, the machine and how to reproduce them are in the repository
BENCHMARKS.md.
The full guide, the spec reference and the API documentation live in the main repository and the documentation site:
- Repository: https://github.com/wickra-lib/wickra-exchange
- Docs (guides, spec reference, cookbook): https://exchange.wickra.org
- Runnable example:
examples/python/
Wickra Exchange ships native bindings for Python, Node.js, WASM and Rust, plus a C ABI hub that any
C-capable language (C, C++, C#, Go, Java, R) links against — all forwarding to the
same data-driven, unsafe-forbidden Rust core.
Found a security issue? Please don't open a public issue. Report it privately
via the repository's Security tab ("Report a vulnerability") or email
support@wickra.org with a subject line starting [wickra security]. Full
policy: https://github.com/wickra-lib/wickra-exchange/blob/main/SECURITY.md.
Not a trading system and not financial advice. This library connects to exchanges and can place real orders that risk real capital; any such use is entirely at your own risk. Authentication, order rounding, reconnect handling and rate limiting can fail in ways that lose money — test against testnets, use withdrawal-disabled keys, and review the code before trading. The software is provided as is, without warranty of any kind; see the license files for the full terms.
Licensed under either of Apache-2.0 or MIT at your option.