Skip to main content

A fast limit order book in Python utilizing a Rust backend

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
# DO NOT rely on the previous `buy_order` or `sell_order` objects
# to be updated! Fetch them from the book, instead
open_buy_order = orderbook.get_order(buy_order.id)

Need help?

Please open an issue if you need help or have a feature request.

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.1b3-cp313-cp313-win_amd64.whl (182.4 kB view details)

Uploaded CPython 3.13Windows x86-64

litebook-0.0.1b3-cp313-cp313-win32.whl (172.3 kB view details)

Uploaded CPython 3.13Windows x86

litebook-0.0.1b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (328.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

litebook-0.0.1b3-cp313-cp313-macosx_11_0_arm64.whl (286.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

litebook-0.0.1b3-cp313-cp313-macosx_10_12_x86_64.whl (293.1 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

litebook-0.0.1b3-cp312-cp312-win_amd64.whl (182.1 kB view details)

Uploaded CPython 3.12Windows x86-64

litebook-0.0.1b3-cp312-cp312-win32.whl (172.3 kB view details)

Uploaded CPython 3.12Windows x86

litebook-0.0.1b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

litebook-0.0.1b3-cp312-cp312-macosx_11_0_arm64.whl (286.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

litebook-0.0.1b3-cp312-cp312-macosx_10_12_x86_64.whl (293.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

litebook-0.0.1b3-cp311-cp311-win_amd64.whl (181.3 kB view details)

Uploaded CPython 3.11Windows x86-64

litebook-0.0.1b3-cp311-cp311-win32.whl (172.0 kB view details)

Uploaded CPython 3.11Windows x86

litebook-0.0.1b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

litebook-0.0.1b3-cp311-cp311-macosx_11_0_arm64.whl (290.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

litebook-0.0.1b3-cp311-cp311-macosx_10_12_x86_64.whl (298.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

litebook-0.0.1b3-cp310-cp310-win_amd64.whl (181.2 kB view details)

Uploaded CPython 3.10Windows x86-64

litebook-0.0.1b3-cp310-cp310-win32.whl (171.9 kB view details)

Uploaded CPython 3.10Windows x86

litebook-0.0.1b3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

litebook-0.0.1b3-cp310-cp310-macosx_11_0_arm64.whl (290.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

litebook-0.0.1b3-cp310-cp310-macosx_10_12_x86_64.whl (298.7 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file litebook-0.0.1b3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 85db7152d21b580342be7e7fd0595faf3ca63e73a7b54dd64bc574f6fcf827a3
MD5 908c1e12b568241179856b58f16bf46f
BLAKE2b-256 efa80dfe6b2d3e8197a7e71aab01777c2d20367a78e22e50fd0914bd5d946748

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp313-cp313-win32.whl.

File metadata

  • Download URL: litebook-0.0.1b3-cp313-cp313-win32.whl
  • Upload date:
  • Size: 172.3 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.1b3-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 e704804bdbb397ad86e51b76b113ebbf68365194169302bf86aee3ef5d7bd3e8
MD5 e66ad9d2269f5de4387c40c134a442a9
BLAKE2b-256 846c77d1082dff5efa33fb08029c94ec1c58bb179c30f297ea828b074d35018a

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fe904641b810c423af7b4add21e49b11970a41ed813d0ccce7d43da2c2a5e31
MD5 45ddc3c05b1c4b00b885c65542e311e5
BLAKE2b-256 d2739225ed3db2454bfdaef30dd8cb55ef666b27051438f05367b9837af5a4c8

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76a6c4a1b88fb6dbf45b80fca11de16be5f27413caf92c49ff5c5e7741aa7703
MD5 6bb2b3afcac4edee97bd4e5cce9c6dfe
BLAKE2b-256 049d8627558e50fd97bd59222cf1b7b2ce0ff2b9cc13dbedd9cca35b7b159447

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c14361e0cecc9f09a95c432173b6cf347c67fad1613a36b11fec54fe03e55784
MD5 677e50370e17cad85f051e76a64ecad6
BLAKE2b-256 639e17c5d5618ac550387788a3760b19c49c5d8995448bc4b921ee5b7eb3e08a

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 edcd81e83fb4eacafded24f18885ce7e51b3a5b3d0be3a1a81f8686ea1b0e52f
MD5 bfb85ff9a54a07918a33cad5106774fa
BLAKE2b-256 e1d8a9818b2b39a6c5190032fdd421843f2f13d15bfcb77801fc32202383b4d1

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp312-cp312-win32.whl.

File metadata

  • Download URL: litebook-0.0.1b3-cp312-cp312-win32.whl
  • Upload date:
  • Size: 172.3 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.1b3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2c0ec684fdb917bcc319601800fd60558db37da398f263733bd31bd48f1822e2
MD5 5b659f911a96565d38a9bacee168a696
BLAKE2b-256 5a1529c063a0943750720b794acb9c595f8045110d69e31d7194189c82bc9ce9

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c6214e367f2bf3336d3127f1b357514afde35884d818b1c2668515b287f68196
MD5 0991f92ec5399e0c01c18939f6c2a2c9
BLAKE2b-256 236ce6f1730c616a9065e9b56c6b5d977175b3e3ab0f3229fe2001c17d5a3324

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c89f132f2c91afc974b12cd9fc5c126d7ca2a72c0f151b6052d777669082c538
MD5 72c25898dc235ec79095c45bc0f8306e
BLAKE2b-256 ce31e9b626ccfe9cfb435a759ff6ca283229496ccf4b464bf727a6c0a0548b04

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9f0271d48b5a359f1537d22188a52eb55886735deac82544b5133da073799c15
MD5 09e38a1ecbb44f5f2b8aa9e4d28ce5cf
BLAKE2b-256 d6a5ad905d3edd697601aa1d3468234c960c6a914d8320d9b9bd33aec2d7a77b

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ae658550c7f0a534975b57d55a09343209434c10f720c79db7250b68b22109ad
MD5 8687455ae1c508ab6b69df67b769660b
BLAKE2b-256 a6b678aa3562e2f21df8cf3a317ff07dc968de7d70a70abdedb5154a0a8413cb

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp311-cp311-win32.whl.

File metadata

  • Download URL: litebook-0.0.1b3-cp311-cp311-win32.whl
  • Upload date:
  • Size: 172.0 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.1b3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b615675e116cba54f64406773e091f01b5ab893e59f996450e6fc9d54802049f
MD5 3308870a863cc8eca759626dbbf2107a
BLAKE2b-256 c41c3214d75c9130be85c36020dc1ee56ac1de3d564c829921c515d82d306880

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b03d1a3bc84d05c23c593e3321d3aa805cef3a0ebce54c4d92a5219dcd82fab8
MD5 bc1d19cdf656b5c68d3c4d982851956e
BLAKE2b-256 0f8d8d9c7ddbb8504e5734b941f119b866b92ff6406bd2750596fc01a37fcd25

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d7f9af33ba10bdaaeebcccba6bfea0602a794653fcd032928aac28af960d547
MD5 a2528b74fb313652c4cd1bc4f72b0bdc
BLAKE2b-256 d5a0c680d5644084f6e2212e6624e28104e7e16d78fef0a388d5a8441c077dcc

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a4c2f8ba71ea4847a580138011c51084dad22828426e8e640a3bad758cbd4eb7
MD5 5e3fd5f4064bb74c7a6f5673dd350ce3
BLAKE2b-256 defb04ad1043b2d80b4efbcc911ab9b3f59a4f92a0ebb589a40db6419b7bf083

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5e5947886f3c95fa4dd11767fe381bf70009288c6e71470f5d79cadea5f4708b
MD5 6dc3a33a6f98e915b4e0bd5fe7e3dfcb
BLAKE2b-256 0d33e4f4b067fba612a2c370eb90cfafb5cec9d1662b9e4eceaf21aaa63e412b

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp310-cp310-win32.whl.

File metadata

  • Download URL: litebook-0.0.1b3-cp310-cp310-win32.whl
  • Upload date:
  • Size: 171.9 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.1b3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9e3c389e125539b0edffedc45c1af8e8cee6dad19f1d7cf44d752ca5a87025a6
MD5 c6316d87a079f9798529a58c53c3fbb3
BLAKE2b-256 73fa9a01992c9cd8eb6d01c2c9f16a06eab604acbc29a2f2b9eafd216f0ebdbc

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 90a9a7c57f399fa46124fdfbeeeef0d900e6116a3ec49cebb976bb2729d59f4e
MD5 cc4c08b85a6a5a0a267b244cc8adaae0
BLAKE2b-256 522a614651efacb855a04548fb68cfe68f3a116d914fc6b197e86d5725e2de07

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ada48f077203884a7b7f98a2d75512638c8c7f47c55a6fc5de4d24b77e58a3d
MD5 734c7a69b3f9ecb8e01939bdb619a066
BLAKE2b-256 fdd23cb592e67ff6afe7c851c180f17aee58587bf44494b18c99ce49a1bbdff8

See more details on using hashes here.

File details

Details for the file litebook-0.0.1b3-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b3-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 054901c243763a7e16a6c74dad24a7822809acee09eee50ef30622518a10ab5a
MD5 69af0b10de84ee65d2d04d45e2abc5c7
BLAKE2b-256 e26b876a5ef1458773821f72b4b3157ba6d4a0ae184d944735b1574b8a73ac8c

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