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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

litebook-0.0.1b1-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.1b1-cp313-cp313-macosx_11_0_arm64.whl (286.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

litebook-0.0.1b1-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.1b1-cp312-cp312-macosx_11_0_arm64.whl (286.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

litebook-0.0.1b1-cp312-cp312-macosx_10_12_x86_64.whl (293.6 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

litebook-0.0.1b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (327.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

litebook-0.0.1b1-cp311-cp311-macosx_10_12_x86_64.whl (298.7 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

litebook-0.0.1b1-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.1b1-cp310-cp310-macosx_11_0_arm64.whl (290.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

litebook-0.0.1b1-cp310-cp310-macosx_10_12_x86_64.whl (298.8 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9945e509aa1a46fa369d58f75b2bc6d6f74ab99dae5cf7de9f803a61cce1b8e2
MD5 79fd31dd6f53c640f01e4e4cf2580e09
BLAKE2b-256 7edf2222a9e545bab5667bdf6fc7ae715a9e46bf3af788080cec10d416bf2c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b1-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.1b1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 9e91709bb92d61fdbe83f35dc551a73d1d8bb797b9fd0d639fbdbcbd0a768efc
MD5 958a9aa08c00bc449e832f1dbd72919f
BLAKE2b-256 92399a4d009cb2cd4faf4b7a8f9ead078e731e9ad07f9d46cc85c6e3679a01b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 093728d2b986453cf3c3386d56dbe713d960b71a810a14713be27593c428486c
MD5 4b9fc29d34ddb400b00b588af9e6369c
BLAKE2b-256 8f65750ebeb08606c82f8f4eeb9837e3a2d0b4e8efcad70a26c409f356f7b02f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 456f3d891d5f720b18dbcdca7a52e71734f18867d27ad918e525499ad669f1cc
MD5 9714fadc7dd93c1ab7faac6389ed8f85
BLAKE2b-256 b71f7d6d4405baa7371d8caa9da91b0f35427e5edb596481270218f52a45b9a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 45d3ca0e4e513aba7f49f644010cf5a940d79a069dcd6656657eb2e3bb5be7bd
MD5 4c3a2c6f917e1babac972bd7f39e5959
BLAKE2b-256 67f07c441187a62c35af2ee26cf098257b93e61e52cd39eeddd6832b26c9b833

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a20c1be8fc255e62181824d460a063bbff3f3b5e06fa84eb2fd5eca9472efb5
MD5 c7de905d98c0c8ff4c70ba808cfe0b65
BLAKE2b-256 e9d0e9401a942bf0ce1f4bc3f24c75631538481741b077e390165aa2aa6a7f81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b1-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.1b1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b742df0598d553fe7ecc71de857163fe111db9961950edbd404832957ffe7c4f
MD5 7431adcd8742db8dfe9a9ea40931be92
BLAKE2b-256 9491c0871a01ca83581448c1e5e45679f0a6ff96d5de020d6fb50b2becf5adc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 822c4dcbae4e9c7d7aaf53dde042b1b2aa2fe9405b9e34564fd8941aaf7d6f60
MD5 3f8b72e0a6a2434ec755088a2b375989
BLAKE2b-256 841bd1a88967d8bd956f38e228a1655ce36e3c0a14ce879623b85a6a9a8ec3cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19773bc9aea64d3aa2b4fdce4c145b1eeb8478c82bda6f1f669d5ff51f468c76
MD5 d6a237b0f2062271d7d9deed755eb0ce
BLAKE2b-256 5aa98d3eff78518d2768511a567618d4ebdb16146a9004aff4daf3ce97c09eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 61e27b0ca486977408dd18d46cc428d250da971d6ba90847aa5e742384795d2e
MD5 aa91e3040ce03df2dd966c7430785e6d
BLAKE2b-256 a0ae8f1b9ef15c598936fe89b6f5a78568de484b35018884e674b961f498c37a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d52d74345810c59d4723ec77ff448778bb8324346d4680a39b62382b6e17a802
MD5 443e63e13105c94b0ffa68d1bb71060c
BLAKE2b-256 340dcae6e92a4566548bf0f0e09d80cf8a55746659e5306c9ecfa1272f743873

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b1-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.1b1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3beae5daf2cca9c8d0425532bd0fb7fd92307ba68b8ff167ab7a7d764845d53b
MD5 6ae5994152ad559410fb3e2bb8f94aea
BLAKE2b-256 75c2e3026b3a3baaeca1e5e187b2e4a19460f06579424cc1ca693cba4910e3f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 75d1ec6d4dd2d119008dd1890ca0a096ab1bcc91d2cf4e6ff66df5f5d761fe91
MD5 1f0ebf3eaa106036d2a0d7590df6a21d
BLAKE2b-256 234ef241cd8b504a62876d2f098c1f642b069e5b46bb22b33c41cfac1c1fe4fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b7c9dd84a776b152179a83283fb3decb8de4210ed3a0c4a93a5eb97575ae4b14
MD5 65b538c51e6417184627437e3156398b
BLAKE2b-256 f9410b765deedfdc2a60adca4e3f2f03682a9c9bdd5b60711c7536e2fe2275e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8312ae2b2e6b5c0748488f5eb62129bf013684949810f55213c8df3510a22010
MD5 f6f8fb9bcc09688edfc0cb110b5f79f9
BLAKE2b-256 581cb8eff2ddd58b7c9b7793ac0f31f98cbbeee2a4d3b76d57d36b6d863a3664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2798a494b506cdd67dbf5e9ac71bca663743f4875416cb63051072942ab58a0f
MD5 9b82f378d3e655d869e2d89bf58b2ca7
BLAKE2b-256 ab8eaa3556757c3b43946461bbade1592b9467a1c30cb46399c278d72a1a2b8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b1-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.1b1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 df706261dd9a48a1080e3a7e1587ce26b61ebc94f7c4c3cd82829f89a4c23336
MD5 ae6292f80d16eaf7906a67cea7e2cf8d
BLAKE2b-256 ba16852c9a82d297caf1758d76704b134148bc0830f0263fe5c58650f62e21c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dab021ae4aea0fe22426f2311c7e95d703dbe403c0b14877127137cffa1f7872
MD5 74f492bd2466d0e8a79d70e93fe92a74
BLAKE2b-256 1f75586a66d8d99945dce38ea1767aa547e0560ae75ffcb7c44c676094b0c6ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d93abf2b6d96c0fb4858c133e831b9eca646022cdb21ee846c774add49ef98a3
MD5 e6910f729b0765092cc72f43b085b0f3
BLAKE2b-256 7ae56e88f984cacfe1be4e9280aa308545fbb51cb43c37d03e95ed757f123d76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a01be5b81d49dedecec3f3c2f438741e8010554158e3b7e0ce6494397f14a62f
MD5 8da5ad14497629fa00eb20fe0ccf24b3
BLAKE2b-256 010acbdd615bed5c245e9706aefe3932ce8aaebde4893136cb8781dd68cbc34d

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