Skip to content

Add trading-positions@trading-journal desklet#1770

Open
Mouses007 wants to merge 1 commit intolinuxmint:masterfrom
Mouses007:add-trading-positions-desklet
Open

Add trading-positions@trading-journal desklet#1770
Mouses007 wants to merge 1 commit intolinuxmint:masterfrom
Mouses007:add-trading-positions-desklet

Conversation

@Mouses007
Copy link
Copy Markdown

@Mouses007 Mouses007 commented Mar 22, 2026

New Desklet: Trading Positions

Desktop widget for Crypto Trading Journal that displays open Bitunix futures positions with real-time unrealized PnL directly on the Cinnamon desktop.

Screenshot

Trading Positions Desklet

Features

  • Real-time display of open futures positions (symbol, side, leverage, entry/mark price, unrealized PnL)
  • Total PnL summary with position count
  • Configurable server host/port (connects to Crypto Trading Journal REST API)
  • Adjustable refresh interval (5–300 seconds)
  • Separate font size controls for positions and UI elements (title, footer, totals)
  • Background opacity and widget width controls
  • Optional columns (leverage, mark price) and GitHub link toggle

Requirements

🤖 Generated with Claude Code

@Mouses007 Mouses007 force-pushed the add-trading-positions-desklet branch 2 times, most recently from f7adfac to 6b12bbc Compare March 23, 2026 08:32
@claudiux
Copy link
Copy Markdown
Member

@Mouses007
Please use messages in English in all files and check other desklet to know how to offer translations.

@claudiux claudiux marked this pull request as draft March 23, 2026 10:19
@Mouses007 Mouses007 force-pushed the add-trading-positions-desklet branch from 6b12bbc to e3912c1 Compare March 23, 2026 10:52
@github-actions
Copy link
Copy Markdown

Best-practices scanner

This is a regex-based check for API usage that can pose security, performance or
maintainability issues, or that may already be provided by Cinnamon. Having code flagged
by it doesn't automatically disqualify a pull request.

This check is not perfect will not replace a normal review.


Found 1 potential issue(s):

⚠️ hardcoded_data_dir

trading-positions@trading-journal/files/trading-positions@trading-journal/desklet.js:28

Gettext.bindtextdomain(UUID, GLib.get_home_dir() + "/.local/share/locale");

Avoid hardcoding .local/share in paths. Use GLib.get_user_data_dir() instead,
which respects the XDG_DATA_HOME environment variable.


Automated pattern check.

Desktop widget for Crypto Trading Journal (github.com/Mouses007/Crypto-Trading-Journal).
Shows open Bitunix futures positions with real-time PnL from live Bitunix API.
Includes i18n support with German translation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Mouses007 Mouses007 force-pushed the add-trading-positions-desklet branch from e3912c1 to 31bf57c Compare March 23, 2026 10:54
@Mouses007 Mouses007 marked this pull request as ready for review April 1, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants