CoinTurret
A spot cryptocurrency exchange: order book, custodial wallets, KYC, and a trading terminal.
CoinTurret is a spot cryptocurrency exchange. An order book and matching engine, custodial wallets, deposits and withdrawals, identity checks with tiered limits, and a trading terminal to work it from.
It is built on Openware's Peatio and Barong. Peatio handles trading, accounting and the wallets; Barong handles accounts, authentication and identity documents; and the two trust each other through a shared key rather than a shared database — Barong signs the tokens, Peatio verifies them. The terminal and the gateway in front of them are ours, in Laravel, because the upstream front end is licensed non-commercially and could not be used.
The licensing was chosen as deliberately as the architecture, because a regulated business gets asked what right it has to run its own code: everything in the stack is permissive, and the one dependency that changed licence mid-life is pinned to its last open release. Market data runs through InfluxDB, events through RabbitMQ, and deposits are exercised against a private Bitcoin chain while it is being built. In development.