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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

litebook-0.0.1b2-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.1b2-cp311-cp311-macosx_11_0_arm64.whl (290.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

litebook-0.0.1b2-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.1b2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d2edf44afa5717a3a8590c7bb1e64044eb4bb8320d1e06f41ffbbec915ec081a
MD5 f4fae1f6973a1714c344c1fdb912b486
BLAKE2b-256 845bd6c47f8aea7fa08bd5a86d0400d6027b3ba4135daae062ca8a3e5abcf71e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b2-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.1b2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 7a4ded20d8e070b11d4c3b230c84e8439b3cd1c9f3f9566e665a3439e331e628
MD5 23dd9956933336b94c5ed62d958702e7
BLAKE2b-256 b14d8d2d050e3ca417d223c094f498b65307d1481b2e27c670077bf904cf320a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cadc27548245fa8c2a2aca104e9667160c09ee552c16387780f3d3483a4a073
MD5 3d7bf56da66878ce3419686a810c5909
BLAKE2b-256 d0dda69ec066ff9a2fcba4a9e0d9b72bce9843ff8be5a7a8a66e54e5042097f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c00d9e05b358b29c47f35d7737c682f59f708baa7177a6ac9b118f6c5c867c5
MD5 7fa5ea4d0c689fba5888725694901bcf
BLAKE2b-256 0842534c6f7ea3f8adf2ee2a9eb386eba6b2de3a4d77976e2ff7c046b47683e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2fecdfa89c1306277becdb6e8e691adc200bf742b6153a7dfcf9bda2d30b0fba
MD5 528e328659724b05253d0d341863546b
BLAKE2b-256 9178005c76f15310de7ae8cad4901a6259421936c339f45fd56567691ba89335

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1284ab9ea1ec5fb90672afba496c8edd6172a6ebd03a6cc467f5cf97d3b71ea7
MD5 9dee22b5edfa8a0ca940cc00871237a3
BLAKE2b-256 e372963f3f5bccdfd8136d54c128a0b4ca07ae15045115940eaaf7d4d53a7115

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b2-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.1b2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4f1a6fbf8242d8314b1be3a5aefdbfdedfa2010f690a5da96ea1bbcaa10707d9
MD5 02c390635399a1b1e1b0d918e1f647e9
BLAKE2b-256 d2f35b3bf60e8ab0200f831cada20b821439c42ce5bcdf2c6f2ba770e101ef5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fceb2927cc74b912c5ed4d86024294a8d2a3cf4ba0a9df0cb13a164173be7116
MD5 a939cdc59529ccafa876a89807b35f4a
BLAKE2b-256 2bc3e9dc6c96da0b019e3bc562a0cf23d9c87b30e9acff03617619566eb18b4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dee27fe191eba9d1e179b5d4d4cc125ebf173664f44fa340ef7e78db2ebc6ab1
MD5 932bbbb47ecfa00bb04bab2ce560f54e
BLAKE2b-256 677c912f837a8877db983d8846192a9d2110c4e318de3cb9af1cd7b98064fd3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 62fe81b45e47b73ff043199ccd6eea8662221f72515a84251d6e48e56f73c125
MD5 12b7c07d176cdc601d27079ed1c34ac5
BLAKE2b-256 671b4ab25a28e43ffbcc6575f2882e45d6e5af6fe3dadc66f41b7b84356bd8ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3317f4b883e0f6863afd16092e6a6d7a6d1298d6988af572a82c3aa8af753e4a
MD5 c1d865c9dfdd8473191b0f980708f835
BLAKE2b-256 37a2a372bc0a594d15fd64d974a08460264d142a9fe66155e087538ee4f5ba07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b2-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.1b2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4a5750fc326436c9739503acf3018aba077c141d8e5042e2a71fb61e72439d92
MD5 19c64a385e3da90607887942fc31f47d
BLAKE2b-256 2bc45ece7aa813e4691a47ab323564776e529ddc658287b1045808ef38d0a526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 831bd02c1c556e808f52de133266d2de68362512488f536ce7d7d7e7e9b01a4f
MD5 34a289b24fdf429a6ae9046fbdd294cb
BLAKE2b-256 6c41424e1c350b3b7bee83ceebc1f4b57051d6c09e0505f707692f766f68607b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd46df32b4788e268a094943b0194a964e372d2f4216f219d46ab42d2d860aff
MD5 dfa5bce09c4d52ecb60d027006594989
BLAKE2b-256 988defb6e402c0216d28338a01570bb33cc4dd8c50721bd1ed6f75a38194404e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6197d1ba717b2ccbf58da61f8c4d04975b93e818b740d21080c4d1d88347a93c
MD5 71b13e8b558c2bcc64178d3bb4f6f044
BLAKE2b-256 67c7feba72173561795cb55897ab90f31dc03d0fb2e49234db0e715b3a07074a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e4b23861fee00564fdba1e6e5d7b809913fb0a15b0d6a1954b60f6f83ee30d22
MD5 cb8eb53b377ceee64b99de46d32847a2
BLAKE2b-256 e35ad8db4f439621308f0484ada732964ef195f59c0e6a7f47b6b335279695d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litebook-0.0.1b2-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.1b2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 28bde85744db9843e798f2892e6aa28ea5867c0f817c3f3f68a1fe5e1061ff5f
MD5 38227ec02ec75b7e1e674e6d72ac5f23
BLAKE2b-256 47d5582b51290d3e02d675996b545a16dee02c37e99f336a18c822f4721209fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 084cff268888602035d553c8ab3b18ae6eb73fb040da5aa6d2819f91199ccbbd
MD5 0ddd9e5341f995bc7cbc4e56ca67976e
BLAKE2b-256 527a9dcf2153b996817e4c6d3a6d247ea7d302f28cb24e2d86e22bb1ada0f399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d2b63f6940d021b48b18378295b1f25ea5ea50309360bce7e1de439d750cb53
MD5 70eb5277ef84438fc527db1876d9ad09
BLAKE2b-256 b839ae3e10444e74b4ed25331c1e9cbea72d95ad3c860194b08f3c9384f05e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for litebook-0.0.1b2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8481a19d7a99aabd852167a68c005e13c8d8ac8254327fc1a24184bbe61e6fd7
MD5 5a27ff2cb26ab894f036af19c2db3df5
BLAKE2b-256 05c6812be50974f252b43007e2ee4fd17e9870923f753171c13417970446f6bb

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