{"repo":"0x5487/matching-engine","free":true,"listed":false,"github":"https://github.com/0x5487/matching-engine","clone":"git clone https://github.com/0x5487/matching-engine.git","description":"A high-performance, in-memory order matching engine written in Go","language":"Go","stars":21,"topics":["cryptocurrency","exchange","matching","matching-engine"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Matching Engine SDK A high-performance, in-memory matching engine SDK written in Go. Designed for crypto exchanges, trading simulations, and financial systems requiring precise and fast order execution. 🚀 Features - High Performance : Pure in-memory matching using efficient SkipList data structures ($O(\\log N)$) and Disruptor pattern (RingBuffer) for microsecond latency . - Single Thread Actor : Adopts a Lock-Free architecture where a single pinned goroutine processes all state mutations. This eliminates context switching and mutex contention, maximizing CPU cache locality. - Concurrency Safe : All state mutations are serialized through the RingBuffer, eliminating race conditions without heavy lock contention. - Low Allocation Hot Paths : Uses udecimal (uint64-based), intrusive lists, and object pooling to minimize GC pressure on performance-critical paths. - Multi-Market Support : Manages multiple trading pairs (e.g., BTC-USDT, ETH-USDT) within a single MatchingEngine instance. - Management Commands : Dynamic market management (Create, Suspend, Resume, UpdateConfig) via Event Sourcing. - Comprehensive Order Types : - Limit , Market (Size or QuoteSize), IOC , FOK , Post Only - Iceberg Orders : Support for hidden size with automatic replenishment. - Event Sourcing : Generates detailed OrderBookLog events allows for deterministic replay and state reconstruction. 📦 Installation 🛠 Usage Quick Start Wire Transport (MQ / Cross-Process) MarshalRequest and UnmarshalRequest seriali","default_branch":null,"files":null,"tree":[],"storefront":"/r/0x5487","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0x5487/matching-engine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}