{"id":18388525,"url":"https://github.com/jmcph4/pyobsim","last_synced_at":"2025-04-07T02:33:26.937Z","repository":{"id":87929091,"uuid":"69865663","full_name":"jmcph4/PyOBSim","owner":"jmcph4","description":"A Python module for market simulation","archived":false,"fork":false,"pushed_at":"2025-01-11T08:55:43.000Z","size":39,"stargazers_count":23,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T10:42:36.659Z","etag":null,"topics":["finance","fintech","limit-order-book","lob","market","market-simulator","order-book","python","simulation","simulator","stock-market","stock-price-prediction","trading"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmcph4.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,"governance":null}},"created_at":"2016-10-03T11:45:14.000Z","updated_at":"2025-01-11T08:55:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d664889d-8c64-4aef-8038-1745ce1c244d","html_url":"https://github.com/jmcph4/PyOBSim","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/jmcph4%2FPyOBSim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2FPyOBSim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2FPyOBSim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2FPyOBSim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcph4","download_url":"https://codeload.github.com/jmcph4/PyOBSim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247583107,"owners_count":20961970,"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":["finance","fintech","limit-order-book","lob","market","market-simulator","order-book","python","simulation","simulator","stock-market","stock-price-prediction","trading"],"created_at":"2024-11-06T01:34:36.979Z","updated_at":"2025-04-07T02:33:26.931Z","avatar_url":"https://github.com/jmcph4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/jmcph4/PyOBSim.svg?branch=master)](https://travis-ci.org/jmcph4/PyOBSim)\n\n# PyOBSim - the Python Order Book Simulator #\n---\n\nPyOBSim is a Python module facilitating market simulation by implementing an order book and other utilities. PyOBSim aims to make testing of trading algorithms clean and simple.\n\nRunning simulations is straightforward: simply provide an order flow and fire away:\n\n    from pyobsim import *\n    \n    # build our participants\n    alice = participant.Participant(\"Alice\", 100, 0)    # $100, no units\n    bob = participant.Participant(\"Bob\", 0, 120)        # $0, 120 units\n    \n    sim = simulation.Simulation(\"My Simulation\", [], [alice, bob])\n    sim.load(\"order_flow.csv\") # load our order flow from CSV file\n    sim.run()\n    print(sim)\n\nThis gives us our summary:\n\n    Simulation \n\t    My Simulation\n    ---\n    Statement of Accounts\n    Alice: $100.0 with 0 units\n    Bob: $0.0 with 120 units\n    ---\n    Market as at present\n\t     'GOOG'\n\nIf we want to inspect the book for `GOOG`:\n\n    print(sim.books[\"GOOG\"])\n\nWe get:\n\n    Book for GOOG\n    Spread is $0.5\n    ===\n    Ask\n    Price\t\tQuantity\n    --------------------------------------------------------------------------------\n    $1.0\t\t100\t|\n    \t\t\t    |$0.5\t\t10\n    --------------------------------------------------------------------------------\n    \t\t\t     Price\t\tQuantity\n    \t\t\t     Bid    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fpyobsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcph4%2Fpyobsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fpyobsim/lists"}