{"id":25613290,"url":"https://github.com/roq-trading/roq-python-samples","last_synced_at":"2025-11-12T02:03:23.144Z","repository":{"id":241291214,"uuid":"806548965","full_name":"roq-trading/roq-python-samples","owner":"roq-trading","description":"Python examples.","archived":false,"fork":false,"pushed_at":"2024-12-27T10:06:22.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T11:18:46.336Z","etag":null,"topics":["api","demo","example","python"],"latest_commit_sha":null,"homepage":"https://roq-trading.com/","language":"Python","has_issues":false,"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/roq-trading.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T12:09:10.000Z","updated_at":"2024-12-27T10:06:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"af5fd541-7332-4f0f-ab97-6e604b6cffbd","html_url":"https://github.com/roq-trading/roq-python-samples","commit_stats":null,"previous_names":["roq-trading/roq-python-samples"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roq-trading%2Froq-python-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roq-trading%2Froq-python-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roq-trading%2Froq-python-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roq-trading%2Froq-python-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roq-trading","download_url":"https://codeload.github.com/roq-trading/roq-python-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113626,"owners_count":19749827,"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":["api","demo","example","python"],"created_at":"2025-02-22T01:29:39.935Z","updated_at":"2025-11-12T02:03:18.097Z","avatar_url":"https://github.com/roq-trading.png","language":"Python","readme":"# roq-python-samples\n\nExample projects demonstrating how to use Roq's Python bindings.\n\n\n## Operating Systems\n\n* Linux (x86-64, AArch64)\n* macOS (Arm64, x86-64)\n\n\n## Library/Package Dependencies\n\n* [fastcore](https://github.com/fastai/fastcore) (Apache 2.0 License)\n\n\n## Installing\n\nIf you just want to install the project.\n\n### Stable Channel\n\n```bash\nconda install -y --channel https://roq-trading.com/conda/stable roq-python-samples\n```\n\n### Unstable Channel\n\n```bash\nconda install -y --channel https://roq-trading.com/conda/unstable roq-python-samples\n```\n\n\n## Prerequisites\n\nIf you want to build from source.\n\nInstall Roq's Python bindings\n\n### Stable Channel\n\n```bash\nconda install -y --channel https://roq-trading.com/conda/stable roq-python\n```\n\n### Unstable Channel\n\n```bash\nconda install -y --channel https://roq-trading.com/conda/unstable roq-python\n```\n\n### Third-party\n\nSome examples use the `@typedispatch` decorator from the [fastcore](https://github.com/fastai/fastcore) library\n\n```bash\nconda install -y fastcore\n```\n\n## Building\n\nIf you want to build from source.\n\n```bash\npython setup.py clean --all \u0026\u0026 python -m pip install . -vvv\n```\n\n\n## Using\n\n### Strategy\n\nDemonstrates how to set up a gateway client\n\n* Implements the callback handlers\n* Sends requests using the dispatcher interface\n\n```bash\npython -m roq_samples.strategy ~/run/deribit.sock\n```\n\n### FIX Session\n\nDemonstrates how to set up a FIX client session\n\n```bash\npython -m roq_samples.fix_session \\\n    --sender_comp_id xxx \\\n    --target_comp_id yyy \\\n    --username foo \\\n    --password bar \\\n    --network_address $HOME/run/fix-bridge.sock\n```\n\n### SBE Receiver\n\nDemonstrates how to maintain market data from SBE incremental / snapshot multicast feeds\n\n```bash\npython -m roq_samples.sbe_receiver \\\n    --local_interface 192.168.188.66 \\\n    --multicast_snapshot_address 225.0.0.1 \\\n    --multicast_snapshot_port 1234 \\\n    --multicast_incremental_address 225.0.0.1 \\\n    --multicast_incremental_port 2345\n```\n\n\n## License\n\nThe project is released under the terms of the BSD 3-Clause license.\n\n\n## Links\n\n* [Roq GmbH](https://roq-trading.com/)\n* [Documentation](https://roq-trading.com/docs/)\n* [Contact us](mailto:info@roq-trading.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froq-trading%2Froq-python-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froq-trading%2Froq-python-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froq-trading%2Froq-python-samples/lists"}