Repository navigation
Conversation
|
@Tekprecious Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
✅ PR Ready for ReviewDue to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging. This PR has passed all automated checks:
A maintainer will review and merge this PR shortly. |
✅ PR Ready for ReviewDue to a recent malware incident affecting our repositories, all PRs are required to pass automated security checks before being reviewed for merging. This PR has passed all automated checks:
A maintainer will review and merge this PR shortly. |
…ic lock on holdings
…onal shares (#474)
Description
Implements secondary market listing and purchase endpoints for fractional invoice shares, enabling investors to list their holdings for resale and allowing other investors to purchase shares from active listings.
Key Features & Scope:
POST /secondary-market/listings: Creates resale listings with price and quantity.FUNDEDstatus.INVOICE_MATURED).GET /secondary-market/listings: Retrieves active, unexpired listings per invoice.invoiceId,sellerWallet,minPrice,maxPrice,sortBy,sortOrder, and pagination (page,limit).POST /secondary-market/listings/:id/buy: Processes fraction purchases from active listings.OVER_PURCHASE).Investment).Investment).SOLDupon full purchase or decrements quantity for partial purchase.Transaction) for buyer and seller.DELETE /secondary-market/listings/:idandPOST /secondary-market/listings/:id/cancel.sellerWalletorsellerId), returning HTTP 403 (FORBIDDEN) for non-owners./secondary-market,/api/v1/secondary-market, and/api/v1/secondary.Closes #474
Closes #475
Type of Change
Checklist
feat:,fix:,chore:, etc.) — enforced by CI.env, or credentials committed (seeCONTRIBUTING.md)Testing
How to Test