Improve trade export to csv #4532#4646
Conversation
Signed-off-by: puchis0323 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
his PR adds the missing Price column to the Bisq Easy CSV export functionality.
I have used the standard AmountFormatter to ensure the currency formatting matches the rest of the application's UI.
Variable Extraction: Added price extraction logic using trade.getPriceQuote().getQuoteSideMonetary().
Formatting: Implemented AmountFormatter.formatQuoteAmountWithCode to ensure the price is exported with the correct currency symbol and decimal precision.
CSV Header: Included the localized header bisqEasy.openTrades.table.price in the CSV header list.
Data Injection: Inserted the formatted price value into the corresponding position within the exported data structure.
Summary by CodeRabbit