edgelog-sync
v0.2.0
Published
Local companion for the Edgelog trade journal. Streams Sierra Chart / Rithmic / Tradovate fills to your Edgelog account in real time so hearts shatter, tilt-lock re-evaluates, and every screen responds within seconds of execution.
Maintainers
Readme
edgelog-sync
Local companion for the Edgelog trade journal. Watches your Sierra
Chart TradeActivityLog.txt and streams new fills to your Edgelog account in real time —
so hearts shatter, tilt-lock re-evaluates, and every screen updates within seconds of
execution.
Install
npx edgelog-sync@latest --helpNo global install needed. Works on Node 20+ (Windows, macOS, Linux).
Setup — one-time pair
- In Edgelog, go to /connections → Live Sync and click Generate token.
- Copy the token (starts with
elg_) — it's shown once. - On your trading PC:
npx edgelog-sync auth --token elg_YOUR_TOKENRun — start watching
Recommended (DTC, real-time): connects to Sierra Chart's local DTC Trading Port.
npx edgelog-sync watch --dtcRequires Sierra Chart configured to accept DTC connections:
- Global Settings → Trade → DTC Server → Server Enabled: Yes
- Trading Port:
11099· Encoding:JSON· Require Authentication:No(or set Username/Password toEdgeLog)
Sub-second latency, no text-log required.
Alternative (file watcher, ~1s poll): for setups where DTC isn't enabled.
Watches a Sierra TradeActivityLog text export as it grows:
npx edgelog-sync watch --log "C:\SierraChart\SavedTradeActivity\TradeActivityLogExport_2026-07-02.txt"Leave either mode running while you trade.
Other commands
edgelog-sync status # show current pairing + watch state
edgelog-sync sync-once # one-shot: pull the current log, POST, exit
edgelog-sync logout # forget the token (revoke separately in Edgelog UI)Config
edgelog-sync stores its config at ~/.edgelog/config.json:
{
"apiUrl": "https://edgelog.app",
"token": "elg_...",
"logPath": "C:\\SierraChart\\Data\\TradeActivityLog.txt"
}Override the API URL at any time via EDGELOG_API_URL=... — useful for local dev
against http://localhost:3200.
Data handling
- Runs entirely on your machine. Only new fills are sent — never your Sierra Chart configuration, market data, or unrelated files.
- Uses HTTPS + a per-machine bearer token. Revoke instantly in Edgelog → /connections if a machine is compromised.
- Every fill has a stable
executionId; the server deduplicates, so re-running the watcher never doubles a fill.
License
MIT. Source at github.com/edgelog/edgelog-sync (mirror of the workspace copy).
