Skip to content

Use generic trades query for owner endpoint#110

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feature/trades-owner-generic-query
May 26, 2026
Merged

Use generic trades query for owner endpoint#110
graphite-app[bot] merged 1 commit into
mainfrom
feature/trades-owner-generic-query

Conversation

@findolor
Copy link
Copy Markdown
Collaborator

@findolor findolor commented May 18, 2026

Summary

  • route GET /v1/trades/{owner} through the generic get_trades SDK path with an owner filter
  • preserve existing pagination, time filter, exact count, and response shape

Linear

Part of RAI-580.

Benchmark context

Local benchmark against the bootstrapped DB showed the owner-specific SDK path taking roughly 3-4s for 20-row pages. Using the generic owner-filtered trades query reduced the same endpoint to roughly 1-2.7s while keeping the same pagination totals.

Validation

  • nix develop -c cargo fmt
  • nix develop -c cargo check
  • nix develop -c rainix-rs-static

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 19727b93-d4a1-443d-8263-bda5ed578b7d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/trades-owner-generic-query

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Collaborator Author

findolor commented May 18, 2026


How to use the Graphite Merge Queue

Add the label add-to-gt-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@findolor findolor self-assigned this May 18, 2026
@findolor findolor marked this pull request as ready for review May 18, 2026 09:37
@graphite-app graphite-app Bot force-pushed the feature/order-endpoint-batch-trade-query branch 2 times, most recently from b4fac6d to f4de41e Compare May 20, 2026 13:38
@graphite-app graphite-app Bot force-pushed the feature/trades-owner-generic-query branch from 28254bc to ff1f985 Compare May 20, 2026 13:38
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from f4de41e to 73a5ca6 Compare May 21, 2026 09:01
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from ff1f985 to 3c3cf6a Compare May 21, 2026 09:01
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 73a5ca6 to 1c569cb Compare May 21, 2026 09:06
@findolor findolor force-pushed the feature/trades-owner-generic-query branch 2 times, most recently from 660ad1a to b60ed4d Compare May 21, 2026 09:12
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 1c569cb to e8e2ed7 Compare May 21, 2026 09:12
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from b60ed4d to 6e19d52 Compare May 21, 2026 09:28
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch 2 times, most recently from 0648e86 to 2df41e9 Compare May 21, 2026 09:37
@findolor findolor force-pushed the feature/trades-owner-generic-query branch 2 times, most recently from 14e1aa8 to 69f89e0 Compare May 21, 2026 09:48
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch 2 times, most recently from bafb7ff to 8288d45 Compare May 21, 2026 09:59
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from 69f89e0 to 7cd65c5 Compare May 21, 2026 09:59
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 8288d45 to 9d05162 Compare May 21, 2026 10:18
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from 75f091c to 6e676d2 Compare May 21, 2026 10:18
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch 2 times, most recently from 511bbd2 to 9003bad Compare May 21, 2026 11:06
@findolor findolor force-pushed the feature/trades-owner-generic-query branch 2 times, most recently from 6fd79e5 to 64958e4 Compare May 21, 2026 14:00
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 9003bad to c6e1a8a Compare May 21, 2026 14:00
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 21, 2026

RAI-580

RAI-643

@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from c6e1a8a to eeb2321 Compare May 22, 2026 07:15
@findolor findolor force-pushed the feature/trades-owner-generic-query branch 2 times, most recently from 5ff5da1 to 858932d Compare May 22, 2026 07:22
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from eeb2321 to 3bd8ca1 Compare May 22, 2026 07:22
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 3bd8ca1 to d5ba372 Compare May 22, 2026 13:50
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from 6ca6ad4 to 3bc07c8 Compare May 22, 2026 13:50
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from d5ba372 to 8758d0a Compare May 22, 2026 15:59
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from 5996c20 to a4dcac7 Compare May 22, 2026 16:00
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 8758d0a to d03ce25 Compare May 23, 2026 13:15
@findolor findolor force-pushed the feature/trades-owner-generic-query branch 3 times, most recently from b106217 to a7f8106 Compare May 26, 2026 10:29
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from d03ce25 to 9b39e94 Compare May 26, 2026 10:29
@findolor findolor force-pushed the feature/trades-owner-generic-query branch from a7f8106 to 7678452 Compare May 26, 2026 13:36
@findolor findolor force-pushed the feature/order-endpoint-batch-trade-query branch from 9b39e94 to 7a5bdbf Compare May 26, 2026 13:36
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented May 26, 2026

Merge activity

## Summary

- route `GET /v1/trades/{owner}` through the generic `get_trades` SDK path with an owner filter
- preserve existing pagination, time filter, exact count, and response shape

## Linear

Part of RAI-580.

## Benchmark context

Local benchmark against the bootstrapped DB showed the owner-specific SDK path taking roughly 3-4s for 20-row pages. Using the generic owner-filtered trades query reduced the same endpoint to roughly 1-2.7s while keeping the same pagination totals.

## Validation

- `nix develop -c cargo fmt`
- `nix develop -c cargo check`
- `nix develop -c rainix-rs-static`
@graphite-app graphite-app Bot force-pushed the feature/order-endpoint-batch-trade-query branch from 7a5bdbf to 0924bce Compare May 26, 2026 15:04
@graphite-app graphite-app Bot force-pushed the feature/trades-owner-generic-query branch from 7678452 to 1c151e2 Compare May 26, 2026 15:04
@graphite-app graphite-app Bot changed the base branch from feature/order-endpoint-batch-trade-query to main May 26, 2026 15:39
@graphite-app graphite-app Bot merged commit 1c151e2 into main May 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants