Skip to content

fix: implement issues #1138, #1139, #1140, #1141 - #1165

Open
devisgood24 wants to merge 1 commit into
stellarkit-lab-devtools:mainfrom
devisgood24:issues-1138-1139-1140-1141
Open

devisgood24 wants to merge 1 commit into
stellarkit-lab-devtools:mainfrom
devisgood24:issues-1138-1139-1140-1141

Conversation

@devisgood24

Copy link
Copy Markdown

Add test coverage for GET /account/:id/self-payment-detection

  • Test direct self-payments return type: direct_self
  • Test 3-hop circular chains return type: circular_chain
  • Test normal payment history returns selfPaymentsDetected: false
  • Test chains longer than 10 hops are not flagged

Implement GET /account/:id/largest-transactions endpoint

  • Returns top N transactions by total operation value
  • Supports ?direction=sent|received|both
  • Limit parameter capped at 50
  • Returns transaction hash, totalValueXLM, operationCount, timestamp

Add test coverage for GET /dex/order-book-depth

  • Test 3 bid levels return cumulative values correctly summed
  • Test spread computed as bestAsk - bestBid
  • Test ?depth=5 returns exactly 5 bid and 5 ask levels
  • Test OrderBookEmpty error when no orders exist

Create docs/pagination-patterns.md advanced guide

  • Sequential pagination with cursor resumption
  • Parallel pagination across multiple accounts
  • Detecting last page from hasMore and nextCursor
  • Recommended page sizes for different use cases
  • Complete Node.js example streaming all transactions

closes #1138
closes #1141
closes #1140
closes #1139

…vtools#1139, stellarkit-lab-devtools#1140, stellarkit-lab-devtools#1141

- closes stellarkit-lab-devtools#1138: Add test coverage for GET /account/:id/self-payment-detection
  * Test direct self-payments return type: direct_self
  * Test 3-hop circular chains return type: circular_chain
  * Test normal payment history returns selfPaymentsDetected: false
  * Test chains longer than 10 hops are not flagged

- closes stellarkit-lab-devtools#1139: Implement GET /account/:id/largest-transactions endpoint
  * Returns top N transactions by total operation value
  * Supports ?direction=sent|received|both
  * Limit parameter capped at 50
  * Returns transaction hash, totalValueXLM, operationCount, timestamp

- closes stellarkit-lab-devtools#1140: Add test coverage for GET /dex/order-book-depth
  * Test 3 bid levels return cumulative values correctly summed
  * Test spread computed as bestAsk - bestBid
  * Test ?depth=5 returns exactly 5 bid and 5 ask levels
  * Test OrderBookEmpty error when no orders exist

- closes stellarkit-lab-devtools#1141: Create docs/pagination-patterns.md advanced guide
  * Sequential pagination with cursor resumption
  * Parallel pagination across multiple accounts
  * Detecting last page from hasMore and nextCursor
  * Recommended page sizes for different use cases
  * Complete Node.js example streaming all transactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant