Skip to main content

A pure-Python limit order book with tick sizes, market depth and visualization.

Project description

litebook

litebook Downloads Build MIT License

A fast and performant limit order book in Python utilizing a Rust backend. Install it with

pip install litebook

Using litebook

Get started with litebook using the following example:

import litebook as lb

# Create an OrderBook
orderbook = lb.OrderBook(tick_size=0.01)

# Create some orders (this not _add_ the order!)
buy_order = book.create_order(lb.OrderType.Buy, price=10.05, quantity=10.0)
sell_order = book.create_order(lb.OrderType.Sell, price=10.05, quantity=5.0)

# Add the orders (this returns a list of Fill objects)
_no_fills = book.add(buy_order)
fills = book.add(sell_order)

# Check the fill
print(fill)

# Check the status of the remainder of the open buy order
open_buy_order = orderbook.get_order(buy_order.id)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

litebook-0.0.0-cp313-cp313-win_amd64.whl (181.1 kB view details)

Uploaded CPython 3.13Windows x86-64

litebook-0.0.0-cp313-cp313-win32.whl (171.1 kB view details)

Uploaded CPython 3.13Windows x86

litebook-0.0.0-cp313-cp313-macosx_11_0_arm64.whl (284.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

litebook-0.0.0-cp313-cp313-macosx_10_12_x86_64.whl (291.9 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

litebook-0.0.0-cp312-cp312-win_amd64.whl (180.8 kB view details)

Uploaded CPython 3.12Windows x86-64

litebook-0.0.0-cp312-cp312-win32.whl (171.0 kB view details)

Uploaded CPython 3.12Windows x86

litebook-0.0.0-cp312-cp312-macosx_11_0_arm64.whl (285.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

litebook-0.0.0-cp312-cp312-macosx_10_12_x86_64.whl (292.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

litebook-0.0.0-cp311-cp311-win_amd64.whl (180.0 kB view details)

Uploaded CPython 3.11Windows x86-64

litebook-0.0.0-cp311-cp311-win32.whl (170.7 kB view details)

Uploaded CPython 3.11Windows x86

litebook-0.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (326.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

litebook-0.0.0-cp311-cp311-macosx_11_0_arm64.whl (289.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

litebook-0.0.0-cp311-cp311-macosx_10_12_x86_64.whl (297.5 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

litebook-0.0.0-cp310-cp310-win_amd64.whl (179.9 kB view details)

Uploaded CPython 3.10Windows x86-64

litebook-0.0.0-cp310-cp310-win32.whl (170.6 kB view details)

Uploaded CPython 3.10Windows x86

litebook-0.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (326.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

litebook-0.0.0-cp310-cp310-macosx_11_0_arm64.whl (289.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

litebook-0.0.0-cp310-cp310-macosx_10_12_x86_64.whl (297.5 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file litebook-0.0.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a8a8c3abffa4e8b2c9954e5942f1962e51b20b1a1665137b273d6527074faa1d
MD5 104cdfc5317f83bbaaa74ae89e97ebc2
BLAKE2b-256 84232a055cfb1f58cce17a40701fa377a19bf2cf68bff2bff406bcc3e8c23aa0

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: litebook-0.0.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 171.1 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for litebook-0.0.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 12228f48b696634b4e17934da1ad2d5e900215312175feffab04401a79510400
MD5 6b223ec56e6b40829fefae23b729926f
BLAKE2b-256 fc4089e7f6f7bb200218ed35df5262fd23b1524b99ac30342c5f704469247deb

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9dad0b7d2a341860374633a70d9d214ae8da832bbc99998a5cfb38c83423008
MD5 d2afbaa4cc23e01e06eaac6376d2b51c
BLAKE2b-256 a64061c28e38a7b4eca9a0ccafab6543285ac53dff61255ae5a535c7d8484e3b

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dc071c04d61a8d2126b2ff7ae222f108775be4036a2a74c03ee2d2c98f9ffb44
MD5 1ab37f0e748340e9960d2325ea50efba
BLAKE2b-256 2739f7090c28ef97e12e17613fdf631310ccee1cb4dab5001020d6fe3608c187

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c37b40f3bd7684b62e018d2575edbdde98f9b27a62748160b8e10f6d8d8ae963
MD5 b7b95a16bf80de17fbb92541f1b1658f
BLAKE2b-256 5bc5b72e95a6b0c2ccee5e4ee237db434a12024a6ef9d7162d54ebe8c6c5767b

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: litebook-0.0.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 171.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for litebook-0.0.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 175ad9a49470a1d9ee8cfb1d9d6f281c3cff50a28dc18608f1a6ba03e66770da
MD5 413d500283cd1f2dc0b3c1b52068f782
BLAKE2b-256 86b4fe6420432153cf94e4eda8eb58009542f1a724ecc74b3ee693a049d7813c

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d3ff24fe40d23fea7be0cc6d36dff98e00cf69cd9bcd3cd00cd3d2966b82a99
MD5 68e5f5c2224568483e15982f953607cb
BLAKE2b-256 daf3afb87dd3030ad3ec75d6c960f240dc674ae01c120f0a6d94baf16ea129b2

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3ed2a3796e988679bb103d966a63b65f9ab0883059bfb93c04b5f52b372e1ad4
MD5 944720e531c08d7320ae51ccc1215a4d
BLAKE2b-256 4d572cba4268c845e916dcdbecb866c91251acfc941ce4db6f531e768c68a1ef

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 205e0046cdb029152ee76304d7f0ae90373a275eb0ca353fc75a63a2dd2833ff
MD5 447cc4b4de67506870faf7c97a9c2085
BLAKE2b-256 1af0f358d835cb6c0788cbe89877611f0cf5fe4eec4fbfc2f3680c7981bc943b

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: litebook-0.0.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 170.7 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for litebook-0.0.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 81133d2136a686e6714ef24c7680869fb6215485aa293ed9144d2ec49f8ed5e4
MD5 789f473141d8ec7025a088fd32ef9db7
BLAKE2b-256 d5a5453141efc819edac09cedcc48a6e0d060b6f551f58e150743968d304731b

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 20e53beb99d945d7b0acae64553d62725c651396adec751404b34570a5ef0beb
MD5 df07ac7a41999ac0a960ee3d031a1226
BLAKE2b-256 2a35628ba9165264a1513d0df8433e31bee5eb4576b1b75c14c7fdc6c097b2b5

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3683c75ea61e64c511b701b842be469ade3ca4ef77880707c377c0856ed369f2
MD5 e7f19562ad1bf092442f1de3a31825b5
BLAKE2b-256 19e25c80747b39a4e6a3ba634c215d5c4b11dad92d0ca6a991371f9a17541571

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c81cd4edfd7dc7e005b2204cfbe7d995db1dee2c564c030e3acbdbbfc3b87112
MD5 548323e55faf608a44631485018ba9c9
BLAKE2b-256 4679e1b862f80f3c503f6819ad7ee2b98fc7add9cbec6652547143dfa13dfb01

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fcf7fb3a7d85308f037ad80922457324a7d03421e795f0fc57bf8f25e9e0119f
MD5 207e3275b4d7580e3f72faaa4ad90655
BLAKE2b-256 df46eb8591b2c61605e1b0d612cf2d928ece400a3db868d23e3bf19d5ab201ef

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: litebook-0.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 170.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for litebook-0.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 05bed58bd31f3c9ccc821280ec6586f6f74af46496b65a11ee5729ef226f1551
MD5 248f88f66e8b26f2338cdd5cf281faa7
BLAKE2b-256 3267c01308c6b3d5c1c6a9196dd4463fbd27134192eec48e30051c4b966e3041

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2ff7960f4874901ff640c4089ffd24cebc45dde8871f2334923829718188e20
MD5 c371735038407d823806258af0b1eefd
BLAKE2b-256 30c1ced8f242b465f9f585a73f0148463eef30526138c4279d246a3044353ac4

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04b138c625e1d7be0fd5960bc2038aadd1851ebcde848e19c8b1eaa859554fa4
MD5 191f07748999fb108c5918ba59ffb6de
BLAKE2b-256 60a6b9fa40641e9d65a909c555b1045a6539e5a68274b9a267af5ef31f6889b1

See more details on using hashes here.

File details

Details for the file litebook-0.0.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 020e56ecf5836bf18f48b192e4b5c2748dd82bebcb272c07f0e6b0bddc0a8fcb
MD5 508340dc537787be15248d1ccdc241f5
BLAKE2b-256 8ff1a5690b403f287ce746706b6d614900bfbcf97efe5e7cfb3398adfc405594

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