René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b8f64039-5a78-f5d7-e4de-501c98050109
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C1C:197DC:D5CB18:12A0A10:69820AD0
html-safe-nonced1f9d346de1298c7926e0b8a9d5442aed3135cd7b8eff2fa5a4fff8c5a6792c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzFDOjE5N0RDOkQ1Q0IxODoxMkEwQTEwOjY5ODIwQUQwIiwidmlzaXRvcl9pZCI6IjcxODc3NjU5NzUwODM3ODA4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac289319fd9f8837a24e6f247a50a2e620e4d4cecfe2472eff17624014763dc286
hovercard-subject-tagpull_request:3231249604
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/codatta/.github/pull/1/files
twitter:imagehttps://avatars.githubusercontent.com/u/859507?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/859507?s=400&v=4
og:image:altMotivation 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef4cb77e7923981a0a29ff46912061418d80b11552a75801d8d7c2ee8194cdf49
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/codatta/.github git https://github.com/codatta/.github.git
octolytics-dimension-user_id171659315
octolytics-dimension-user_logincodatta
octolytics-dimension-repository_id890289008
octolytics-dimension-repository_nwocodatta/.github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id890289008
octolytics-dimension-repository_network_root_nwocodatta/.github
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec1e70b4927b942b903c1a0c1413d4c4f701459ad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodatta%2F.github%2Fpull%2F1%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodatta%2F.github%2Fpull%2F1%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=codatta%2F.github
Reloadhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Reloadhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Reloadhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
codatta https://patch-diff.githubusercontent.com/codatta
.githubhttps://patch-diff.githubusercontent.com/codatta/.github
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcodatta%2F.github
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fcodatta%2F.github
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fcodatta%2F.github
Code https://patch-diff.githubusercontent.com/codatta/.github
Issues 0 https://patch-diff.githubusercontent.com/codatta/.github/issues
Pull requests 1 https://patch-diff.githubusercontent.com/codatta/.github/pulls
Actions https://patch-diff.githubusercontent.com/codatta/.github/actions
Projects 0 https://patch-diff.githubusercontent.com/codatta/.github/projects
Security 0 https://patch-diff.githubusercontent.com/codatta/.github/security
Insights https://patch-diff.githubusercontent.com/codatta/.github/pulse
Code https://patch-diff.githubusercontent.com/codatta/.github
Issues https://patch-diff.githubusercontent.com/codatta/.github/issues
Pull requests https://patch-diff.githubusercontent.com/codatta/.github/pulls
Actions https://patch-diff.githubusercontent.com/codatta/.github/actions
Projects https://patch-diff.githubusercontent.com/codatta/.github/projects
Security https://patch-diff.githubusercontent.com/codatta/.github/security
Insights https://patch-diff.githubusercontent.com/codatta/.github/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fcodatta%2F.github%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fcodatta%2F.github%2Fissues%2Fnew%2Fchoose
beingzyhttps://patch-diff.githubusercontent.com/beingzy
mainhttps://patch-diff.githubusercontent.com/codatta/.github/tree/main
codex/build-orderbook-data-reader-for-binance-and-okxhttps://patch-diff.githubusercontent.com/codatta/.github/tree/codex/build-orderbook-data-reader-for-binance-and-okx
Conversation 0 https://patch-diff.githubusercontent.com/codatta/.github/pull/1
Commits 1 https://patch-diff.githubusercontent.com/codatta/.github/pull/1/commits
Checks 0 https://patch-diff.githubusercontent.com/codatta/.github/pull/1/checks
Files changed https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Add orderbook ingestion scaffold for Binance & OKX (ETH/USDT) with Docker, uv, and tests https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
badb203 Add orderbook ingestion scaffold beingzy Jan 31, 2026 https://patch-diff.githubusercontent.com/codatta/.github/pull/1/commits/badb2036e199b7432ad0eacd7704a7d7f0f57e97
Clear filters https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Please reload this pagehttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
Dockerfile https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7bfa0a6ae75fc31c620533c7355a6d59482650582759da46aa37bb06323846dd
README.md https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-0e83982cf6f4dabedcbf7b12029a56c6f4a728064ba99543fff8f227c0654b45
docker-compose.yml https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7256f6e396e53c9229aeed322eaf9752192cd7a1962ed9d2c707b8dadfa11d88
pyproject.toml https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-c97c3408460c11191d25b9b516812eb8c3693be10262282e1bc38ef7c22d876a
__init__.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-febaa13328e0db60579858129310f57bf8e13e6fb7c52a423684e724361d3375
__main__.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-a52890b4867a3a2199151d0099740584c71a23a75e7dfd22241275b3b5cd4d91
config.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-9775528e057661dbf19217164585494de9f92f1273357f3ac62d71062125abfd
binance.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7cc8cf59990790dc10e2096ddd8ea9ff2ca72c8a8cfcdd77b364e819b62c6169
okx.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-c16fa1d8622649bd466452962acd0c862f5960270b3c77741584fb8cb9b680ea
models.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-2036c94fcdf496a226ba4d5f199e26b01baa692e45f255d7829df1a2421b0ced
simulated.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-44ee41bc9ecf61a3e9089fa8ba8560cbd7a24c978e46eb3acf1ce27ee62f1fdd
db.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-8b5abdaa800d48676a9f0000e8deea180a69cf69fee29cebbbb6845af4b0238f
test_parsers.py https://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-eb6857c60704f1bf4f76c732a727458d9912cdbc7f84da3c761f1804ff2cbabd
profile/Dockerfilehttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7bfa0a6ae75fc31c620533c7355a6d59482650582759da46aa37bb06323846dd
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/Dockerfile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/README.mdhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-0e83982cf6f4dabedcbf7b12029a56c6f4a728064ba99543fff8f227c0654b45
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/docker-compose.ymlhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7256f6e396e53c9229aeed322eaf9752192cd7a1962ed9d2c707b8dadfa11d88
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/docker-compose.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/pyproject.tomlhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-c97c3408460c11191d25b9b516812eb8c3693be10262282e1bc38ef7c22d876a
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/__init__.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-febaa13328e0db60579858129310f57bf8e13e6fb7c52a423684e724361d3375
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/__main__.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-a52890b4867a3a2199151d0099740584c71a23a75e7dfd22241275b3b5cd4d91
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/__main__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/config.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-9775528e057661dbf19217164585494de9f92f1273357f3ac62d71062125abfd
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/connectors/binance.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-7cc8cf59990790dc10e2096ddd8ea9ff2ca72c8a8cfcdd77b364e819b62c6169
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/connectors/binance.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/connectors/okx.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-c16fa1d8622649bd466452962acd0c862f5960270b3c77741584fb8cb9b680ea
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/connectors/okx.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/models.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-2036c94fcdf496a226ba4d5f199e26b01baa692e45f255d7829df1a2421b0ced
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/models.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/services/simulated.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-44ee41bc9ecf61a3e9089fa8ba8560cbd7a24c978e46eb3acf1ce27ee62f1fdd
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/services/simulated.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
profile/src/orderbook_app/storage/db.pyhttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files#diff-8b5abdaa800d48676a9f0000e8deea180a69cf69fee29cebbbb6845af4b0238f
View file https://patch-diff.githubusercontent.com/codatta/.github/blob/badb2036e199b7432ad0eacd7704a7d7f0f57e97/profile/src/orderbook_app/storage/db.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/codatta/.github/pull/1/{{ revealButtonHref }}
Please reload this pagehttps://patch-diff.githubusercontent.com/codatta/.github/pull/1/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.