Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: query trades from db page by page #1376

Merged
merged 1 commit into from Nov 1, 2023

Conversation

ycdesu
Copy link
Collaborator

@ycdesu ycdesu commented Oct 31, 2023

  1. In order to query trades from db page by page, I add Until options so we can query trades from db page by page. Note that Until is exclusive.
  2. The symbol clause will be added only if it's not an empty string. I think it should not affect existing behavior. Please review that thanks.

@bbgokarma-bot
Copy link

Welcome back! @ycdesu, This pull request may get 220 BBG.

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #1376 (1d2e46e) into main (3491b93) will decrease coverage by 0.01%.
Report is 2 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1376      +/-   ##
==========================================
- Coverage   20.92%   20.92%   -0.01%     
==========================================
  Files         568      568              
  Lines       40774    40781       +7     
==========================================
  Hits         8533     8533              
- Misses      31609    31616       +7     
  Partials      632      632              
Files Coverage Δ
pkg/service/trade.go 21.72% <0.00%> (-0.54%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3491b93...1d2e46e. Read the comment docs.

@ycdesu ycdesu force-pushed the feature/query-trades-pagination branch from 9e28c9e to 1d2e46e Compare October 31, 2023 06:20
@bbgokarma-bot
Copy link

Re-estimated karma: this pull request may get 227 BBG

@c9s c9s changed the title feature: query trades from db page by page FEATURE: query trades from db page by page Nov 1, 2023
@ycdesu ycdesu merged commit 8e76804 into main Nov 1, 2023
2 of 4 checks passed
@ycdesu ycdesu deleted the feature/query-trades-pagination branch November 1, 2023 09:07
@bbgokarma-bot
Copy link

Hi @ycdesu,

Well done! 232 BBG has been sent to your polygon wallet. Please check the following tx:

https://polygonscan.com/tx/0xd2e77c9c264ee1dc4c3f72f99b27daae6436b801aa05949d4ae9e18e865ece56

Thank you for your contribution!

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.

None yet

7 participants