A TradeSkillMaster addon module that displays a compact, draggable window showing your tracked item stocks at a glance.
- Floating Stock Window - A compact, draggable window showing item icons with stock counts
- Group Organization - Create custom groups to organize your tracked items
- Quick Add - Alt+Click any item in your bags or chat links to add it to the display
- Auto-Refresh - Stock counts update automatically every 2 seconds
- Comprehensive Tracking - Shows totals from bags, banks, guild bank, personal bank, realm bank, and auctions
- Export Functionality - Export your tracked items and groups for backup or sharing
- TradeSkillMaster (core addon)
- TradeSkillMaster_ItemTracker (provides stock data)
- Download the addon
- Extract to your WoW AddOns folder:
World of Warcraft/Interface/AddOns/TradeSkillMaster_StocksDisplay/ - Restart WoW or type
/reloadif in-game
- Type
/tsm stocksin chat - Or click the StocksDisplay icon in the TSM sidebar
Alt+Click on any item to add it to the display:
- Items in your bags
- Item links in chat
- Items in the auction house
- Any item tooltip
- Right-click an item icon to open the context menu:
- Move to a group
- Remove from tracking
Groups help organize your tracked items into categories (e.g., "Herbs", "Ores", "Enchants").
- Click Add Group in the header to create a new group
- Use ▲/▼ buttons to reorder groups
- Click X to delete a group (items move back to ungrouped)
- Right-click items to move them between groups
- Drag the header to move the window
- Click - to collapse (shows only the header)
- Click + to expand
- Window position is saved between sessions
Large numbers are abbreviated:
1k= 1,0002k5= 2,50010k= 10,000
Click Export to generate a shareable string of your tracked items and groups. The format is:
ungrouped_id1,ungrouped_id2
GroupName1:id1,id2,id3
GroupName2:id4,id5
| Command | Description |
|---|---|
/tsm stocks |
Toggle the stock display window |
The addon aggregates item counts from all sources tracked by TSM_ItemTracker:
- Player inventory (bags)
- Player bank
- Alt characters
- Guild bank
- Personal bank (Ascension)
- Realm bank (Ascension)
- Active auctions
TradeSkillMaster_StocksDisplay/
├── TradeSkillMaster_StocksDisplay.lua # Main addon code
├── TradeSkillMaster_StocksDisplay.toc # Addon metadata
├── Locale/
│ └── enUS.lua # English localization
└── README.md
The addon uses the AceAddon-3.0 framework and integrates with TSM via TSMAPI:NewModule().
Key Components:
| Component | Description |
|---|---|
TSM.db |
AceDB-3.0 saved variables (profile-based) |
TSM.stockFrame |
Main display window |
TSM.groupDialog |
Group creation dialog |
TSM.contextMenu |
Right-click item menu |
TSM.exportDialog |
Export text dialog |
Saved Variables Structure:
AscensionTSM_StocksDisplayDB = {
profile = {
trackedItems = {
["item:12345"] = "GroupName", -- or "" for ungrouped
},
groups = { "Group1", "Group2" }, -- ordered list
windowPos = { point = "CENTER", x = 0, y = 0 },
collapsed = false,
}
}| Function | Purpose |
|---|---|
TSM:AddTrackedItem(itemString) |
Add item to tracking |
TSM:RemoveTrackedItem(itemString) |
Remove item from tracking |
TSM:CreateGroup(name) |
Create a new group |
TSM:DeleteGroup(name) |
Delete a group |
TSM:SetItemGroup(itemString, groupName) |
Move item to group |
TSM:RefreshDisplay() |
Redraw the window |
TSM:ToggleWindow() |
Show/hide window |
- Create a new file in
Locale/(e.g.,deDE.lua) - Copy the structure from
enUS.lua - Replace the locale code and translate strings:
local L = LibStub("AceLocale-3.0"):NewLocale("TradeSkillMaster_StocksDisplay", "deDE") if not L then return end L["Stocks"] = "Vorräte" -- etc.
- Add the file to the
.tocbefore the main lua file
- No automated tests; test in-game
- Use
/reloadafter code changes - Check for Lua errors in the chat frame
- Use local variables where possible
- Follow existing naming conventions
- Add locale strings for any user-facing text
- Items are stored as TSM item strings (
"item:12345")
- Fork the repository
- Create a feature branch
- Make your changes
- Test in-game on Ascension WoW
- Submit a pull request with a clear description
All Rights Reserved - See license information included with the TradeSkillMaster addon.