Title: Add orderbook ingestion scaffold for Binance & OKX (ETH/USDT) with Docker, uv, and tests by beingzy · Pull Request #1 · codatta/.github · GitHub
Open Graph Title: Add orderbook ingestion scaffold for Binance & OKX (ETH/USDT) with Docker, uv, and tests by beingzy · Pull Request #1 · codatta/.github
X Title: Add orderbook ingestion scaffold for Binance & OKX (ETH/USDT) with Docker, uv, and tests by beingzy · Pull Request #1 · codatta/.github
Description: Motivation Provide a minimal, uv-managed Python foundation to ingest real-time and historical ETH/USDT orderbook data from Binance and OKX and prepare for order placement. Include a reproducible development and deployment setup using Docker Compose and PostgreSQL for storage. Enable fast local validation via a simulated-data generator so parsing and storage logic can be exercised without live API access. Description Add project metadata and dependencies with pyproject.toml and a uv-friendly entrypoint script (orderbook_app.__main__:main). Implement orderbook models (models.py) and parsers for Binance and OKX payloads (connectors/binance.py, connectors/okx.py) with a shared parse_levels helper. Add async PostgreSQL helpers (storage/db.py) that create the orderbook_updates table and provide init_db/insert_update using asyncpg, and wire a simulated ingest flow in __main__.py that uses services/simulated.py. Provide deployment artifacts: Dockerfile to build a container using uv and docker-compose.yml to start db (Postgres) and app, and document required REST/WebSocket endpoints and API permissions in README.md. Testing Added unit tests in tests/test_parsers.py that validate Binance/OKX snapshot/update parsing and the simulated update generator; these are runnable with pytest. No automated tests were executed as part of this change (tests added but not run locally or in CI). Codex Task
Open Graph Description: Motivation Provide a minimal, uv-managed Python foundation to ingest real-time and historical ETH/USDT orderbook data from Binance and OKX and prepare for order placement. Include a reproducible d...
X Description: Motivation Provide a minimal, uv-managed Python foundation to ingest real-time and historical ETH/USDT orderbook data from Binance and OKX and prepare for order placement. Include a reproducible d...
Opengraph URL: https://github.com/codatta/.github/pull/1
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b8f64039-5a78-f5d7-e4de-501c98050109 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9C1C:197DC:D5CB18:12A0A10:69820AD0 |
| html-safe-nonce | d1f9d346de1298c7926e0b8a9d5442aed3135cd7b8eff2fa5a4fff8c5a6792c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzFDOjE5N0RDOkQ1Q0IxODoxMkEwQTEwOjY5ODIwQUQwIiwidmlzaXRvcl9pZCI6IjcxODc3NjU5NzUwODM3ODA4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 289319fd9f8837a24e6f247a50a2e620e4d4cecfe2472eff17624014763dc286 |
| hovercard-subject-tag | pull_request:3231249604 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codatta/.github/pull/1/files |
| twitter:image | https://avatars.githubusercontent.com/u/859507?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/859507?s=400&v=4 |
| og:image:alt | Motivation Provide a minimal, uv-managed Python foundation to ingest real-time and historical ETH/USDT orderbook data from Binance and OKX and prepare for order placement. Include a reproducible d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4cb77e7923981a0a29ff46912061418d80b11552a75801d8d7c2ee8194cdf49 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codatta/.github git https://github.com/codatta/.github.git |
| octolytics-dimension-user_id | 171659315 |
| octolytics-dimension-user_login | codatta |
| octolytics-dimension-repository_id | 890289008 |
| octolytics-dimension-repository_nwo | codatta/.github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 890289008 |
| octolytics-dimension-repository_network_root_nwo | codatta/.github |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1e70b4927b942b903c1a0c1413d4c4f701459ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width