Report each firm's trading mix: open positions and today's entries by instrument
The master knew how many accounts were in a trade, not in what. Each firm's report now carries its open positions by instrument (accounts long and short, contracts held) and today's entries the same way. A position's contract is named by its instrument: DXtrade's carries the symbol; a futures one is looked up among the contracts this machine has entered (recorded at the fill and kept), then the resolver's cache and TopstepX's own. Entries are counted as they fill, per trade date, in a setting, so a restart doesn't lose the day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ab3132182a
commit
5696f2b036
@@ -14,6 +14,7 @@
|
||||
import { getSetting, loadEndedCycleStart } from './db';
|
||||
import { pushReport } from './master-link';
|
||||
import { getBuildVersion } from './version';
|
||||
import { tradeMixFor } from './trade-mix';
|
||||
import { updaterStatus } from './updater-status';
|
||||
import { getClients } from './clients';
|
||||
import { getTradableFirms } from './firm-catalog';
|
||||
@@ -392,6 +393,7 @@ function collectFirmStats() {
|
||||
accountTypes,
|
||||
...symbolStatsFor(f, client, rawToday),
|
||||
...instrumentStatsBlock(f, client, rawToday),
|
||||
mix: tradeMixFor(f, client),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user