Skip to main content

High-performance Limit Order Book (LOB) and Market Impact simulator.

Project description

Limit-Engine 📉

High-Frequency Order Book & Microstructure Simulator

limit-engine is a matching engine implementation designed to simulate L2 market depth and analyze the impact of large institutional trades.

Key Features

  • O(log N) Matching: Uses Priority Queues (Heaps) for high-performance order insertion and price-time priority.
  • Slippage Analysis: Real-time calculation of transaction costs and market "sweep" impact.
  • Impact Modeling: Implements the Square Root Law for estimating price decay on large block trades.

Usage

from limit_engine.nucleus.order_book import OrderBook
lb = OrderBook()
lb.add_limit_order("oid_1", "sell", 100.50, 500)
# Execute a market buy that hits the book
filled, avg_p, slippage = lb.execute_market_order("buy", 100)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quant_limit_engine-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quant_limit_engine-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file quant_limit_engine-0.1.1.tar.gz.

File metadata

  • Download URL: quant_limit_engine-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for quant_limit_engine-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aaf845270404c49439dfe877982d753ea2f4a73ae3f881c7be8e8c09bc97a901
MD5 2725d2183494349ce895810926e146b4
BLAKE2b-256 6670f66ca387a1f8643fc47af26da6446e7730cc2742b7521d9d196a9b17a97a

See more details on using hashes here.

File details

Details for the file quant_limit_engine-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quant_limit_engine-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 434871d1f300d732f74ec0a06a3f64920622aa58cde9a30b09e090ffe4940b3f
MD5 d017003e6726410ef52fd2fe7758af8e
BLAKE2b-256 73129d0068d3ad1b7d08b28f26350d8b812199de5694de48a54e5ed6a9d0762a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page