{"id":27185863,"url":"https://github.com/inv2004/orderbook-rs","last_synced_at":"2025-10-29T16:08:59.628Z","repository":{"id":57650306,"uuid":"147440614","full_name":"inv2004/orderbook-rs","owner":"inv2004","description":"OrderBook implementation in rust","archived":false,"fork":false,"pushed_at":"2020-04-27T20:03:41.000Z","size":36,"stargazers_count":26,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T02:45:30.959Z","etag":null,"topics":["coinbase","exchange","orderbook","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inv2004.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-05T01:15:36.000Z","updated_at":"2024-12-14T04:04:16.000Z","dependencies_parsed_at":"2022-09-09T00:42:18.892Z","dependency_job_id":null,"html_url":"https://github.com/inv2004/orderbook-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Forderbook-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Forderbook-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Forderbook-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Forderbook-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inv2004","download_url":"https://codeload.github.com/inv2004/orderbook-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083588,"owners_count":21045122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coinbase","exchange","orderbook","rust"],"created_at":"2025-04-09T17:55:11.581Z","updated_at":"2025-10-29T16:08:57.532Z","avatar_url":"https://github.com/inv2004.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/inv2004/orderbook-rs.svg?branch=master)](https://travis-ci.org/inv2004/orderbook-rs)\n[![Crates.io](https://img.shields.io/crates/v/orderbook.svg)](https://crates.io/crates/orderbook)\n[![Docs.rs](https://docs.rs/orderbook/badge.svg)](https://docs.rs/orderbook)\n\n# orderbook-rs\n\nI did this orderbook in addition to \u003chttps://github.com/inv2004/coinbase-pro-rs\u003e\n\n*Its primitive orderbook with hardcoded minimal step to 1 cent.*\n\nFor performance I put it in flat array, that is why it uses memory actively.\nFor current coinbase BTC-USD pair it takes 188.1 Mb or RAM.\n\nIt has hardcoded limit for 20000(max price) * 100(cents) = 2*10^6 values it can store.\nCall the OB with values which are outside these boundaries will return None,\nbut, I suppose, this return can be ignored in most cases.\n\nIt implements Display with the following output:\n```\nOB: sized of top 20 bids in 1-cent step | bid-price    ask-price | sizes of low 20 asks in 1-cent step\nOB: 0,0,0,0,0,0,0,0.001,0,0,0,0,0,0,0,0,0,0,0,5.5,26.047638720000013 | 6494.98   6494.99 | 5.006541749999999,10.0838,0,0,0,0,0,0,0.00130864,0.0052,0,0,0,0,0,0,0,0,0,0,0\n```\n\n## Examples\n- Coinbase orderbook with reload if sequence is missed:\n\n  \u003chttps://github.com/inv2004/orderbook-rs/blob/master/examples/coinbase.rs\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finv2004%2Forderbook-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finv2004%2Forderbook-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finv2004%2Forderbook-rs/lists"}