Repository navigation
Folync
Folync is an optional, self-hosted portfolio source. If you run your own Folync instance, Stockbar can use it as the authoritative, read-only source for your holdings, valuation, cash, profit and loss, freshness and history. If you do not, ignore this page: Folync is off by default and Stockbar works fully without it.
Everything is in Settings → Connections → Folync Portfolio Source.
- Folync's financial fields are read-only in Stockbar. Holdings, valuation and profit and loss come from Folync.
- Your local holdings are kept aside, not deleted. While Folync is active they are shadowed, and they are restored when you switch back to the local portfolio. Trading 212 credentials, broker links, history and backups are untouched.
- Stockbar still owns watchlists, alerts, menu bar visibility and its interface preferences.
- The sidebar footer shows Folync portfolio while it is the source, and the Holdings page says the holdings are read-only.
- Trading 212 settings are inactive while Folync is the authoritative source.
Setup is deliberate: you test, preview and then activate.
- Enter the HTTPS URL of your Folync server and a Client token. Use a dedicated client token.
- Choose Test Connection. On success the Portfolio picker appears.
- Choose a portfolio, or all portfolios, in the Portfolio picker.
- Choose Preview. Stockbar loads the selected portfolio and shows its number of holdings, total value and freshness. No local holdings are changed by a preview.
- Choose Activate Folync. The button is enabled only after the selected portfolio has been previewed.
Rules for the address:
- It must be HTTPS. Plain HTTP is accepted only for
localhostand127.0.0.1(for development). - It must not contain a user name, password, query or fragment, because the address is saved and logged as typed.
- The token is stored in the Keychain, never in a file, and is only reused for the server it was saved for. The token field stays empty after saving and shows Stored in Keychain.
While Folync is enabled you also get Refresh Now, Use Local Portfolio… (or Disable Folync… if it is enabled but not active), and Remove Token…. Disabling keeps the saved address and token, so you can activate it again; removing the token stops Stockbar using Folync and deletes the token from the Keychain.
- Stockbar checks Folync about every minute. The settings page says it checks five seconds after each minute, with one follow-up if the broker sync on the Folync side is still pending, and shows Last checked and Next check.
- Checks are conditional (ETag), so an unchanged portfolio costs very little.
- If Folync is offline, Stockbar keeps the last valid snapshot visible and shows the problem rather than a zero. Stale, dirty, rebuilding and unavailable states are all reported.
- After repeated authorisation failures or rate limiting, Stockbar backs off instead of retrying every minute.
- Net deposits (3.8.1) are read from Folync's portfolio history at launch and then at most every five minutes, whatever the supplemental switches below say. Total P&L is measured against them by default; Refresh Now reads them at once. See Menu Bar.
-
Portfolio charts (3.8.2): the popover and the Overview draw the history saved from Folync's last answer at once, then ask Folync for a newer one with a conditional request. If Folync doesn't answer, the saved chart stays up marked as a stale cache, and a range with nothing saved says Couldn't reach Folync. The log gets one line when a range starts failing, with the reason (such as
timeoutorhttp-503), and one when it answers again. - Under Settings → Refresh, the intervals apply to watchlist symbols and stored chart history while Folync is active; Folync holdings themselves update every minute.
Folync can also supply market data. These switches are under Supplemental market data, shown while Folync is enabled. Benchmark market data and Exchange rates are checked with each minute's Folync check; the chart categories load when a chart needs them. Each category is independent:
| Category | Replaces |
|---|---|
| Historical line charts | Line history from the market-data providers |
| Candlestick / OHLCV charts | Candle data |
| Benchmark market data | Benchmark series such as the S&P 500 and FTSE 100 |
| Exchange rates | Direct exchange-rate requests |
| Allow legacy local-provider fallback | Lets one complete local series stand in when Folync cannot supply a series |
Rules that keep your data honest:
- New connections switch on only the categories Folync reports as supported and ready. Fallback starts off.
- Existing Folync setups from before these switches migrated with every new category off, and never switch on just because the server becomes ready later.
- For each series Stockbar uses, in order: current Folync data; the last valid Folync cache, marked stale or partial; one complete series from the local providers, only if fallback is allowed; otherwise an explicit unavailable state.
- Folync and local points are never spliced into one series.
- An enabled, usable category suppresses the matching Python or direct request. Turning it off resumes the local pipeline.
- Stockbar-only watchlist symbols stay on the local providers. Folync-held assets, configured benchmarks and Folync-allowlisted symbols may use Folync, and show their own source, freshness and coverage.
- Folync responses are cached separately (the bearer token is never cached) and never replace Core Data chart history. Turning a category off makes the history Stockbar already had active again.
Under Folync menu-bar visibility, each Folync holding has a checkbox that decides whether it gets its own menu bar item.
- With VoiceOver, Stockbar speaks the result of Test Connection, Preview, Activate, Disable and Refresh Now, and announces a connection problem once when it starts, not every minute.
- After an update, macOS asks before a rebuilt app reads saved Keychain items. Until you answer, Folync shows Waiting for Keychain access. Choose Always Allow. See Updates and Channels.
See also Portfolio and Holdings, Troubleshooting and Privacy and Security.
Home · Installation · Troubleshooting · FAQ · Release History · Source · Report an issue
This wiki describes Stockbar 3.8.2.
Using Stockbar
- Installation
- Getting Started
- Menu Bar
- Main Window
- Portfolio and Holdings
- Alerts
- Charts and Analytics
Data sources
Reference
- Settings Reference
- Updates and Channels
- Backups, Export and Import
- Privacy and Security
- Troubleshooting
- FAQ
- Release History
Developers