There is no order-book depth, only a single execution price
Maintainer thường phản hồi trong vòng 3 ngày
@deslawson đang làm issue này rồi.
Từ ngày 16/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Background
/price/:assetA/:assetB/depth simulates one trade of one size and returns its slippage. src/pricing/depth.ts already builds asks and bids arrays internally. What no route exposes is the book itself — the ladder of price against cumulative size that anyone sizing a position actually needs.
What to build
GET /book/:assetA/:assetBreturning aggregated levels across every venue, each level naming the venues contributing to it.- AMM reserves become synthetic levels at a configurable step; order-book levels come through as they are. Both are labelled, because they behave differently under size.
- A
depthparameter bounding how far from spot to walk.
Acceptance criteria
- Aggregated levels with cumulative size, per side
- Every level names its venues and whether it is synthetic
-
?network=honoured and declared - A test covers a pair quoted by an AMM and an order book together
Drips Wave · Complexity: Intermediate · 150 points
Repo: Divinity-Labs/Lens. Node + Fastify + Prisma + Postgres. Tests are vitest (npm test), not jest — jest against this repo fails every file and tells you nothing.
?network= is not optional on a new route. Every row carries a network and the indexes lead with it. Read req.network ?? activeNetwork, filter on it, echo it in the response, and declare the parameter in openapi.yaml. tests/openapi.test.ts boots the server and fails if a registered route is missing from the spec.
A number without provenance is not an answer. Every figure this batch adds must carry what it was computed from: which venues, how many samples, how fresh. The point of Lens is that its numbers can be checked.
Never elide a contract id or an issuer. Take addresses from the protocol's own documentation and write them whole. A sibling repo's issue wrote CD2W5LUR…XZ4L and five contributors invented plausible contract ids to fill the gap.
Say when you cannot answer. An asset with no liquidity, a pair with one venue, a window with a gap — each has an honest answer that is not zero and not a 500. Zero is a number people act on.
Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 71
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 154
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Divinity-Labs/Lens
-
Webhook retries have no jitter, so failures synchroniseCó thể đã có người làm @Richard-tobi đã nhận 10 ngày trước. Đang mởarea:reliability difficulty:easy help wanted points:100 Stellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Divinity-Labs/Lens#341 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Divinity-Labs/Lens#626 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Divinity-Labs/Lens#625 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Live Service Spec Drift ReportĐang mởarea:tests automated live-spec-report
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
Divinity-Labs/Lens#606 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
The key is accepted only as a bearer token, and nothing says soCó thể đã có người làm @krsnak đã nhận 9 ngày trước. Đang mởarea:docs difficulty:easy help wanted points:100 Stellar Wave
Divinity-Labs/Lens#512 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của Divinity-Labs/Lens
Issue tương tự
-
verified
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 5 ngày
-
desktop: directory picker submits home directory instead of typed path when adding a projectĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#59589 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: During run init command, finish the git initialize process without question to user('Initialize a new git repository?')Có thể đã có người làm @nishu-murmu đã nhận hôm nay. Đang mởpending-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wxt-dev/wxt#2697 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
knaw-huc/textannoviz#739 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: partitioner only creates next month, so one failed run leaves a month with no partitionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày