Commit c628f8c
Add complete pricing features with multi-market comparison
💰 PRICING FEATURES ADDED:
1. Steam Market Price in Float Bar
- Displays Steam price directly in float display
- Shows as: 💰 $XX.XX in green
- Automatically extracted from market listing
2. Buff163 Integration (Now Actually Called!)
- Fixed: Now properly calls Buff163 integration
- Shows Buff163 price below float display
- Compares Buff163 vs Steam prices
- Shows arbitrage percentage
3. Multi-Market Price Comparison (NEW!)
- Uses Skin.Broker API (/api/price/:marketHashName)
- Shows prices from 4 markets:
🇨🇳 Buff163
🌐 Skinport
💎 CS.MONEY
⚙️ Steam (current)
- Highlights lowest price
- Shows % difference vs Steam
- Shows number of listings per market
- Visual grid layout with color-coded differences
📊 Display Order (Top to Bottom):
- Float Value + Steam Price
- Trade Protection Display
- Float Rarity Display
- Multi-Market Prices
- Buff163 Integration
🔧 Technical:
- Steam price extracted from .market_listing_price_with_fee
- Buff163 called with itemName + steamPrice
- Multi-market uses fullItemName from float data
- All features cached (5-10 min) to reduce API calls
📝 Files Changed:
- content.js: Added price extraction + feature calls
- manifest.json: Added multiMarketPricing.js
- src/multiMarketPricing.js (NEW): 370 lines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 12ab203 commit c628f8c
3 files changed
Lines changed: 407 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
621 | 632 | | |
622 | 633 | | |
623 | | - | |
| 634 | + | |
624 | 635 | | |
625 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
626 | 642 | | |
627 | 643 | | |
628 | 644 | | |
| |||
732 | 748 | | |
733 | 749 | | |
734 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
735 | 763 | | |
736 | 764 | | |
737 | 765 | | |
| |||
775 | 803 | | |
776 | 804 | | |
777 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
778 | 817 | | |
779 | 818 | | |
780 | 819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments