@dsh-ft/dsh-fft-paper-trading 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/README.zh.md +4 -3
- package/lib/agent/account-tools.d.ts +18 -0
- package/lib/agent/account-tools.d.ts.map +1 -0
- package/lib/agent/account-tools.js +127 -0
- package/lib/agent/account-tools.js.map +1 -0
- package/lib/agent/futures-tools.d.ts.map +1 -1
- package/lib/agent/futures-tools.js +1 -6
- package/lib/agent/futures-tools.js.map +1 -1
- package/lib/agent/ledger-tools.d.ts +15 -3
- package/lib/agent/ledger-tools.d.ts.map +1 -1
- package/lib/agent/ledger-tools.js +11 -15
- package/lib/agent/ledger-tools.js.map +1 -1
- package/lib/agent/tool-result.d.ts +19 -0
- package/lib/agent/tool-result.d.ts.map +1 -0
- package/lib/agent/tool-result.js +22 -0
- package/lib/agent/tool-result.js.map +1 -0
- package/lib/agent/tools.d.ts +10 -2
- package/lib/agent/tools.d.ts.map +1 -1
- package/lib/agent/tools.js +26 -11
- package/lib/agent/tools.js.map +1 -1
- package/lib/client.js +1448 -282
- package/lib/contract/accounts.d.ts +76 -0
- package/lib/contract/accounts.d.ts.map +1 -0
- package/lib/contract/accounts.js +6 -0
- package/lib/contract/accounts.js.map +1 -0
- package/lib/contract/common.d.ts +144 -0
- package/lib/contract/common.d.ts.map +1 -0
- package/lib/contract/common.js +33 -0
- package/lib/contract/common.js.map +1 -0
- package/lib/contract/domain.d.ts +196 -0
- package/lib/contract/domain.d.ts.map +1 -0
- package/lib/contract/domain.js +14 -0
- package/lib/contract/domain.js.map +1 -0
- package/lib/contract/errors.d.ts +6 -0
- package/lib/contract/errors.d.ts.map +1 -0
- package/lib/contract/errors.js +6 -0
- package/lib/contract/errors.js.map +1 -0
- package/lib/contract/index.d.ts +15 -0
- package/lib/contract/index.d.ts.map +1 -0
- package/lib/contract/index.js +15 -0
- package/lib/contract/index.js.map +1 -0
- package/lib/contract/ledger.d.ts +40 -0
- package/lib/contract/ledger.d.ts.map +1 -0
- package/lib/contract/ledger.js +6 -0
- package/lib/contract/ledger.js.map +1 -0
- package/lib/contract/market.d.ts +30 -0
- package/lib/contract/market.d.ts.map +1 -0
- package/lib/contract/market.js +6 -0
- package/lib/contract/market.js.map +1 -0
- package/lib/contract/rpc.d.ts +24 -0
- package/lib/contract/rpc.d.ts.map +1 -0
- package/lib/contract/rpc.js +6 -0
- package/lib/contract/rpc.js.map +1 -0
- package/lib/contract.d.ts +6 -403
- package/lib/contract.d.ts.map +1 -1
- package/lib/contract.js +6 -24
- package/lib/contract.js.map +1 -1
- package/lib/core/session.d.ts +1 -1
- package/lib/core/session.d.ts.map +1 -1
- package/lib/core/session.js +1 -2
- package/lib/core/session.js.map +1 -1
- package/lib/data/cached-market-data.d.ts +61 -0
- package/lib/data/cached-market-data.d.ts.map +1 -0
- package/lib/data/cached-market-data.js +174 -0
- package/lib/data/cached-market-data.js.map +1 -0
- package/lib/data/futures-market-data.d.ts.map +1 -1
- package/lib/data/futures-market-data.js +9 -10
- package/lib/data/futures-market-data.js.map +1 -1
- package/lib/index.d.ts +25 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +156 -18
- package/lib/index.js.map +1 -1
- package/lib/service/account-moves.d.ts +64 -0
- package/lib/service/account-moves.d.ts.map +1 -0
- package/lib/service/account-moves.js +49 -0
- package/lib/service/account-moves.js.map +1 -0
- package/lib/service/accounts-rpc.d.ts +17 -0
- package/lib/service/accounts-rpc.d.ts.map +1 -0
- package/lib/service/accounts-rpc.js +77 -0
- package/lib/service/accounts-rpc.js.map +1 -0
- package/lib/service/compare-rpc.d.ts +22 -0
- package/lib/service/compare-rpc.d.ts.map +1 -0
- package/lib/service/compare-rpc.js +70 -0
- package/lib/service/compare-rpc.js.map +1 -0
- package/lib/service/errors.d.ts +20 -4
- package/lib/service/errors.d.ts.map +1 -1
- package/lib/service/errors.js +12 -5
- package/lib/service/errors.js.map +1 -1
- package/lib/service/futures-rpc.d.ts.map +1 -1
- package/lib/service/futures-rpc.js +7 -25
- package/lib/service/futures-rpc.js.map +1 -1
- package/lib/service/futures-service.d.ts +28 -8
- package/lib/service/futures-service.d.ts.map +1 -1
- package/lib/service/futures-service.js +144 -146
- package/lib/service/futures-service.js.map +1 -1
- package/lib/service/ledger-admin.d.ts +67 -0
- package/lib/service/ledger-admin.d.ts.map +1 -0
- package/lib/service/ledger-admin.js +102 -0
- package/lib/service/ledger-admin.js.map +1 -0
- package/lib/service/paper-service.d.ts +39 -12
- package/lib/service/paper-service.d.ts.map +1 -1
- package/lib/service/paper-service.js +177 -156
- package/lib/service/paper-service.js.map +1 -1
- package/lib/service/route.d.ts.map +1 -1
- package/lib/service/route.js +5 -2
- package/lib/service/route.js.map +1 -1
- package/lib/service/rpc-support.d.ts +34 -0
- package/lib/service/rpc-support.d.ts.map +1 -0
- package/lib/service/rpc-support.js +57 -0
- package/lib/service/rpc-support.js.map +1 -0
- package/lib/service/rpc.d.ts +20 -3
- package/lib/service/rpc.d.ts.map +1 -1
- package/lib/service/rpc.js +44 -25
- package/lib/service/rpc.js.map +1 -1
- package/lib/store/accounts.d.ts +110 -0
- package/lib/store/accounts.d.ts.map +1 -0
- package/lib/store/accounts.js +352 -0
- package/lib/store/accounts.js.map +1 -0
- package/lib/store/atomic-file.d.ts +16 -0
- package/lib/store/atomic-file.d.ts.map +1 -0
- package/lib/store/atomic-file.js +34 -0
- package/lib/store/atomic-file.js.map +1 -0
- package/lib/store/futures-repo.d.ts +8 -49
- package/lib/store/futures-repo.d.ts.map +1 -1
- package/lib/store/futures-repo.js +34 -246
- package/lib/store/futures-repo.js.map +1 -1
- package/lib/store/ledger-repo-base.d.ts +120 -0
- package/lib/store/ledger-repo-base.d.ts.map +1 -0
- package/lib/store/ledger-repo-base.js +275 -0
- package/lib/store/ledger-repo-base.js.map +1 -0
- package/lib/store/notes.d.ts +29 -0
- package/lib/store/notes.d.ts.map +1 -0
- package/lib/store/notes.js +78 -0
- package/lib/store/notes.js.map +1 -0
- package/lib/store/paths.d.ts +2 -0
- package/lib/store/paths.d.ts.map +1 -1
- package/lib/store/paths.js +4 -0
- package/lib/store/paths.js.map +1 -1
- package/lib/store/repo.d.ts +15 -55
- package/lib/store/repo.d.ts.map +1 -1
- package/lib/store/repo.js +41 -206
- package/lib/store/repo.js.map +1 -1
- package/lib/store/shortlist.d.ts.map +1 -1
- package/lib/store/shortlist.js +4 -6
- package/lib/store/shortlist.js.map +1 -1
- package/lib/store/snapshots.d.ts +0 -3
- package/lib/store/snapshots.d.ts.map +1 -1
- package/lib/store/snapshots.js +0 -3
- package/lib/store/snapshots.js.map +1 -1
- package/package.json +1 -1
- package/src/agent/account-tools.ts +136 -0
- package/src/agent/futures-tools.ts +1 -6
- package/src/agent/ledger-tools.ts +29 -16
- package/src/agent/tool-result.ts +27 -0
- package/src/agent/tools.ts +30 -10
- package/src/client/entry.js +14 -0
- package/src/client/parts/10-core.js +535 -0
- package/src/client/parts/20-styles.js +336 -0
- package/src/client/parts/30-atoms.js +769 -0
- package/src/client/parts/35-hooks.js +447 -0
- package/src/client/parts/40-stock-tabs.js +641 -0
- package/src/client/parts/50-futures.js +911 -0
- package/src/client/parts/60-shell.js +706 -0
- package/src/client/parts/70-plugin.js +67 -0
- package/src/contract/accounts.ts +82 -0
- package/src/contract/common.ts +173 -0
- package/src/contract/domain.ts +217 -0
- package/src/contract/errors.ts +34 -0
- package/src/contract/index.ts +15 -0
- package/src/contract/ledger.ts +42 -0
- package/src/contract/market.ts +39 -0
- package/src/contract/rpc.ts +15 -0
- package/src/contract.ts +6 -472
- package/src/core/session.ts +1 -2
- package/src/data/cached-market-data.ts +193 -0
- package/src/data/futures-market-data.ts +9 -10
- package/src/index.ts +168 -20
- package/src/service/account-moves.ts +72 -0
- package/src/service/accounts-rpc.ts +80 -0
- package/src/service/compare-rpc.ts +77 -0
- package/src/service/errors.ts +23 -4
- package/src/service/futures-rpc.ts +7 -24
- package/src/service/futures-service.ts +161 -159
- package/src/service/ledger-admin.ts +140 -0
- package/src/service/paper-service.ts +183 -153
- package/src/service/route.ts +5 -2
- package/src/service/rpc-support.ts +61 -0
- package/src/service/rpc.ts +59 -23
- package/src/store/accounts.ts +373 -0
- package/src/store/atomic-file.ts +37 -0
- package/src/store/futures-repo.ts +35 -260
- package/src/store/ledger-repo-base.ts +337 -0
- package/src/store/notes.ts +86 -0
- package/src/store/paths.ts +5 -0
- package/src/store/repo.ts +47 -229
- package/src/store/shortlist.ts +3 -5
- package/src/store/snapshots.ts +0 -3
- package/src/client/index.js +0 -3275
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ledger-level operations shared by both account services.
|
|
3
|
+
*
|
|
4
|
+
* Export, snapshot listing, backup and restore are plane-independent: they only
|
|
5
|
+
* touch the repository and marshal the result into a view. The stock and futures
|
|
6
|
+
* services used to carry identical copies; the differences are the account's
|
|
7
|
+
* blocked flag, the error class and the view shape, which each service passes in.
|
|
8
|
+
* @module @dsh-ft/dsh-fft-paper-trading/service/ledger-admin
|
|
9
|
+
*/
|
|
10
|
+
import type { LedgerExport, LedgerSnapshotsView } from '../contract.js';
|
|
11
|
+
import type { LedgerFile, LedgerSnapshot } from '../store/port.js';
|
|
12
|
+
/** The repository surface the admin needs; both planes satisfy it. */
|
|
13
|
+
export interface LedgerRepositoryPort<S> {
|
|
14
|
+
readonly ledgerPath?: string;
|
|
15
|
+
readLedger(): Promise<LedgerFile>;
|
|
16
|
+
current(): Promise<S>;
|
|
17
|
+
snapshots(): Promise<LedgerSnapshot[]>;
|
|
18
|
+
restore(name: string): Promise<S>;
|
|
19
|
+
backup(label: string): Promise<boolean>;
|
|
20
|
+
}
|
|
21
|
+
export interface LedgerStatusView {
|
|
22
|
+
path: string;
|
|
23
|
+
exists: boolean;
|
|
24
|
+
blocked: boolean;
|
|
25
|
+
blockedReason?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface LedgerAdminDeps<S, V> {
|
|
28
|
+
repo: LedgerRepositoryPort<S>;
|
|
29
|
+
/** Read the plane's frozen/blocked flag. */
|
|
30
|
+
isBlocked: (state: S) => boolean;
|
|
31
|
+
blockedReason: (state: S) => string | undefined;
|
|
32
|
+
ledgerVersion: (state: S) => number | undefined;
|
|
33
|
+
viewOf: (state: S) => V;
|
|
34
|
+
/** Refuse recovery on a human-frozen account (recovery is a state change). */
|
|
35
|
+
assertUnlocked: () => void;
|
|
36
|
+
ts: () => string;
|
|
37
|
+
/** Domain error factory: `PaperError` or `FuturesError`. */
|
|
38
|
+
makeError: (code: string, message: string) => Error;
|
|
39
|
+
/** Log prefix for the one warning this helper emits. */
|
|
40
|
+
label: string;
|
|
41
|
+
logger?: {
|
|
42
|
+
warn(message: string): void;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare class LedgerAdmin<S, V> {
|
|
46
|
+
private readonly deps;
|
|
47
|
+
constructor(deps: LedgerAdminDeps<S, V>);
|
|
48
|
+
/** Read-only export of the raw ledger, for a frozen account's banner. */
|
|
49
|
+
exportLedger(): Promise<LedgerExport>;
|
|
50
|
+
/** Where the ledger is and why it is frozen — without the raw text. */
|
|
51
|
+
ledgerStatus(): Promise<LedgerStatusView>;
|
|
52
|
+
/** Snapshots that can be restored, newest first, plus the live ledger's state. */
|
|
53
|
+
ledgerSnapshots(): Promise<LedgerSnapshotsView>;
|
|
54
|
+
/**
|
|
55
|
+
* Replace the live ledger with one snapshot.
|
|
56
|
+
*
|
|
57
|
+
* Deliberately reachable while the ledger is blocked and without `sync()`:
|
|
58
|
+
* recovery must not depend on the current ledger replaying, and the store
|
|
59
|
+
* validates the target before touching the file.
|
|
60
|
+
*/
|
|
61
|
+
restoreLedger(name: string, confirm: boolean): Promise<V>;
|
|
62
|
+
/** Take one manual snapshot (the automatic one runs at most daily). */
|
|
63
|
+
backupLedger(): Promise<boolean>;
|
|
64
|
+
/** Yuan from the UI → integer cents, rejecting non-positive or unsafe amounts. */
|
|
65
|
+
cashAmountCents(amount: number): number;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=ledger-admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-admin.d.ts","sourceRoot":"","sources":["../../src/service/ledger-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAsB,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAElE,sEAAsE;AACtE,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IACjC,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAA;IACrB,SAAS,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;IACtC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACjC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAA;IAC7B,4CAA4C;IAC5C,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAA;IAChC,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAA;IAC/C,aAAa,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAA;IAC/C,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAA;IACvB,8EAA8E;IAC9E,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,EAAE,EAAE,MAAM,MAAM,CAAA;IAChB,4DAA4D;IAC5D,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,KAAK,CAAA;IACnD,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAA;CACzC;AAkBD,qBAAa,WAAW,CAAC,CAAC,EAAE,CAAC;IACf,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;IAExD,yEAAyE;IACnE,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC;IAM3C,uEAAuE;IACjE,YAAY,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAgB/C,kFAAkF;IAC5E,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAcrD;;;;;;OAMG;IACG,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAU/D,uEAAuE;IACjE,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;IAKtC,kFAAkF;IAClF,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAUxC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ledger-level operations shared by both account services.
|
|
3
|
+
*
|
|
4
|
+
* Export, snapshot listing, backup and restore are plane-independent: they only
|
|
5
|
+
* touch the repository and marshal the result into a view. The stock and futures
|
|
6
|
+
* services used to carry identical copies; the differences are the account's
|
|
7
|
+
* blocked flag, the error class and the view shape, which each service passes in.
|
|
8
|
+
* @module @dsh-ft/dsh-fft-paper-trading/service/ledger-admin
|
|
9
|
+
*/
|
|
10
|
+
/** Ledger cents → the yuan the rest of the views use. */
|
|
11
|
+
function toSnapshotView(snapshot) {
|
|
12
|
+
return {
|
|
13
|
+
name: snapshot.name,
|
|
14
|
+
createdAt: snapshot.createdAt,
|
|
15
|
+
bytes: snapshot.bytes,
|
|
16
|
+
ledgerVersion: snapshot.ledgerVersion,
|
|
17
|
+
lastSeq: snapshot.lastSeq,
|
|
18
|
+
tradeDate: snapshot.tradeDate,
|
|
19
|
+
cash: snapshot.cashCents / 100,
|
|
20
|
+
valid: snapshot.valid,
|
|
21
|
+
migratable: snapshot.migratable,
|
|
22
|
+
...(snapshot.problem === undefined ? {} : { problem: snapshot.problem }),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export class LedgerAdmin {
|
|
26
|
+
deps;
|
|
27
|
+
constructor(deps) {
|
|
28
|
+
this.deps = deps;
|
|
29
|
+
}
|
|
30
|
+
/** Read-only export of the raw ledger, for a frozen account's banner. */
|
|
31
|
+
async exportLedger() {
|
|
32
|
+
const ledger = await this.deps.repo.readLedger();
|
|
33
|
+
if (ledger.content === null)
|
|
34
|
+
return { path: ledger.path, exists: false, notice: '账本文件尚未创建' };
|
|
35
|
+
return { path: ledger.path, exists: true, content: ledger.content };
|
|
36
|
+
}
|
|
37
|
+
/** Where the ledger is and why it is frozen — without the raw text. */
|
|
38
|
+
async ledgerStatus() {
|
|
39
|
+
const ledger = await this.deps.repo.readLedger();
|
|
40
|
+
const state = await this.deps.repo.current().catch(error => {
|
|
41
|
+
this.deps.logger?.warn(`${this.deps.label}: ledger status could not replay: ${String(error)}`);
|
|
42
|
+
return undefined;
|
|
43
|
+
});
|
|
44
|
+
return {
|
|
45
|
+
path: ledger.path,
|
|
46
|
+
exists: ledger.content !== null,
|
|
47
|
+
blocked: state === undefined ? false : this.deps.isBlocked(state),
|
|
48
|
+
...(state === undefined || this.deps.blockedReason(state) === undefined
|
|
49
|
+
? {}
|
|
50
|
+
: { blockedReason: this.deps.blockedReason(state) }),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/** Snapshots that can be restored, newest first, plus the live ledger's state. */
|
|
54
|
+
async ledgerSnapshots() {
|
|
55
|
+
const state = await this.deps.repo.current().catch(() => undefined);
|
|
56
|
+
const snapshots = await this.deps.repo.snapshots();
|
|
57
|
+
return {
|
|
58
|
+
path: this.deps.repo.ledgerPath ?? '',
|
|
59
|
+
blocked: state !== undefined && this.deps.isBlocked(state),
|
|
60
|
+
...(state === undefined ? {} : { ledgerVersion: this.deps.ledgerVersion(state) }),
|
|
61
|
+
...(state === undefined || this.deps.blockedReason(state) === undefined
|
|
62
|
+
? {}
|
|
63
|
+
: { blockedReason: this.deps.blockedReason(state) }),
|
|
64
|
+
snapshots: snapshots.map(toSnapshotView),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Replace the live ledger with one snapshot.
|
|
69
|
+
*
|
|
70
|
+
* Deliberately reachable while the ledger is blocked and without `sync()`:
|
|
71
|
+
* recovery must not depend on the current ledger replaying, and the store
|
|
72
|
+
* validates the target before touching the file.
|
|
73
|
+
*/
|
|
74
|
+
async restoreLedger(name, confirm) {
|
|
75
|
+
this.deps.assertUnlocked();
|
|
76
|
+
if (confirm !== true)
|
|
77
|
+
throw this.deps.makeError('INVALID_ARGUMENT', '恢复账本需要 confirm=true');
|
|
78
|
+
try {
|
|
79
|
+
return this.deps.viewOf(await this.deps.repo.restore(name));
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
throw this.deps.makeError('LEDGER_RESTORE_FAILED', error instanceof Error ? error.message : String(error));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** Take one manual snapshot (the automatic one runs at most daily). */
|
|
86
|
+
async backupLedger() {
|
|
87
|
+
const stamp = this.deps.ts().replace(/[:.]/g, '-');
|
|
88
|
+
return this.deps.repo.backup(`manual-${stamp}`);
|
|
89
|
+
}
|
|
90
|
+
/** Yuan from the UI → integer cents, rejecting non-positive or unsafe amounts. */
|
|
91
|
+
cashAmountCents(amount) {
|
|
92
|
+
if (typeof amount !== 'number' || !Number.isFinite(amount) || amount <= 0) {
|
|
93
|
+
throw this.deps.makeError('INVALID_ARGUMENT', '金额必须是正数');
|
|
94
|
+
}
|
|
95
|
+
const cents = Math.round(amount * 100);
|
|
96
|
+
if (!Number.isSafeInteger(cents) || cents <= 0) {
|
|
97
|
+
throw this.deps.makeError('INVALID_ARGUMENT', '金额至少 0.01 元');
|
|
98
|
+
}
|
|
99
|
+
return cents;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=ledger-admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger-admin.js","sourceRoot":"","sources":["../../src/service/ledger-admin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAuCH,yDAAyD;AACzD,SAAS,cAAc,CAAC,QAAwB;IAC9C,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,aAAa,EAAE,QAAQ,CAAC,aAAa;QACrC,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,GAAG;QAC9B,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,GAAG,CAAC,QAAQ,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;KACzE,CAAA;AACH,CAAC;AAED,MAAM,OAAO,WAAW;IACO;IAA7B,YAA6B,IAA2B;QAA3B,SAAI,GAAJ,IAAI,CAAuB;IAAG,CAAC;IAE5D,yEAAyE;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endar-port.js';
|
|
4
4
|
import type { AccountStore } from '../store/port.js';
|
|
5
5
|
import type { ShortlistStore } from '../store/shortlist.js';
|
|
6
|
+
import { type LedgerStatusView } from './ledger-admin.js';
|
|
6
7
|
export interface PaperServiceOptions {
|
|
7
8
|
repo: AccountStore;
|
|
8
9
|
data: MarketDataPort;
|
|
@@ -14,12 +15,13 @@ export interface PaperServiceOptions {
|
|
|
14
15
|
logger?: {
|
|
15
16
|
warn(message: string): void;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Registry lock, read live so `accounts/lock` takes effect immediately.
|
|
20
|
+
* Checked inside the service because tools reach it without the RPC guard.
|
|
21
|
+
*/
|
|
22
|
+
isLocked?: () => boolean;
|
|
23
|
+
/** Archived accounts are frozen as well; asked before `isLocked`. */
|
|
24
|
+
isArchived?: () => boolean;
|
|
23
25
|
}
|
|
24
26
|
/** Orchestrates the ledger, the data port, the calendar and the clock. No IO of its own. */
|
|
25
27
|
export declare class PaperService {
|
|
@@ -30,10 +32,19 @@ export declare class PaperService {
|
|
|
30
32
|
private readonly quoteGate;
|
|
31
33
|
private tickQuotes;
|
|
32
34
|
private dataProblem;
|
|
35
|
+
private admin;
|
|
33
36
|
constructor(options: PaperServiceOptions);
|
|
37
|
+
/** Export/snapshot/recovery plumbing shared with the futures plane. */
|
|
38
|
+
private ledgerAdmin;
|
|
34
39
|
private ts;
|
|
35
40
|
/** Attach the on-disk location so a locked account is repairable from a reply. */
|
|
36
41
|
private viewOf;
|
|
42
|
+
/**
|
|
43
|
+
* Refuse a state change on a registry-locked account. RPC checks this too;
|
|
44
|
+
* the service must as well, because the agent tools resolve services
|
|
45
|
+
* directly and never pass through the RPC guard.
|
|
46
|
+
*/
|
|
47
|
+
private assertUnlocked;
|
|
37
48
|
/** The single place that turns a blocked state into an error carrying its reason. */
|
|
38
49
|
private blocked;
|
|
39
50
|
account(): Promise<AccountView>;
|
|
@@ -47,6 +58,14 @@ export declare class PaperService {
|
|
|
47
58
|
/** Parse a symbol that must be an A-share stock; indices and funds cannot trade. */
|
|
48
59
|
private identifyStock;
|
|
49
60
|
/** Symbols whose price the account cares about: open orders and held positions. */
|
|
61
|
+
/**
|
|
62
|
+
* Symbols a tick has to touch.
|
|
63
|
+
*
|
|
64
|
+
* Resting orders are the only reason a background tick needs quotes. Positions
|
|
65
|
+
* are display state (`markPrices` never writes the ledger), so the host
|
|
66
|
+
* scheduler ticks with `includePositions: false` and an account that merely
|
|
67
|
+
* holds shares costs zero upstream calls until the panel polls.
|
|
68
|
+
*/
|
|
50
69
|
private symbolsInPlay;
|
|
51
70
|
/**
|
|
52
71
|
* Fetch quotes once and normalise failures into the port's four-state result,
|
|
@@ -70,12 +89,18 @@ export declare class PaperService {
|
|
|
70
89
|
/**
|
|
71
90
|
* Idempotent clock advance: close every due trade date and open the next one.
|
|
72
91
|
*
|
|
73
|
-
* The
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
92
|
+
* Two phases. The plan (calendar queries + boundary quotes) is built against a
|
|
93
|
+
* clone of the current state *outside* the store's single-writer queue, so a
|
|
94
|
+
* slow market-data call can never block reads and writes of this account.
|
|
95
|
+
* The transaction then re-checks that nobody wrote in the meantime and appends
|
|
96
|
+
* the pre-built events, so the day-boundary events still land exactly once and
|
|
97
|
+
* the `seq` values stay contiguous. A lost race only defers the advance to the
|
|
98
|
+
* next read; it never duplicates or drops a boundary. Missed sessions produce
|
|
99
|
+
* snapshots only, never fills.
|
|
77
100
|
*/
|
|
78
101
|
private advanceTo;
|
|
102
|
+
/** Build the due day-boundary events; all network calls happen here, unlocked. */
|
|
103
|
+
private planAdvance;
|
|
79
104
|
/**
|
|
80
105
|
* Quote for a draft, with `prevClose` recovered from the daily bars.
|
|
81
106
|
*
|
|
@@ -117,7 +142,9 @@ export declare class PaperService {
|
|
|
117
142
|
/** A row failed pre-check: the batch is refused with that row's code. */
|
|
118
143
|
private basketRejection;
|
|
119
144
|
cancel(orderId: string): Promise<OrderView>;
|
|
120
|
-
tick(
|
|
145
|
+
tick(options?: {
|
|
146
|
+
includePositions?: boolean;
|
|
147
|
+
}): Promise<TickView>;
|
|
121
148
|
orders(): Promise<OrderView[]>;
|
|
122
149
|
trades(): Promise<FillView[]>;
|
|
123
150
|
review(period?: '7d' | '30d' | 'all'): Promise<ReviewView>;
|
|
@@ -182,7 +209,7 @@ export declare class PaperService {
|
|
|
182
209
|
* `exportLedger` exists for downloading; this is the answer a human or an
|
|
183
210
|
* agent needs to locate the file and name the failing invariant.
|
|
184
211
|
*/
|
|
185
|
-
ledgerStatus(): Promise<
|
|
212
|
+
ledgerStatus(): Promise<LedgerStatusView>;
|
|
186
213
|
/**
|
|
187
214
|
* Snapshots that can be restored, newest first, plus the live ledger's state.
|
|
188
215
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-service.d.ts","sourceRoot":"","sources":["../../src/service/paper-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EAEX,gBAAgB,EAChB,iBAAiB,EAEjB,aAAa,EACb,aAAa,EACb,SAAS,EAET,QAAQ,EACR,YAAY,EACZ,mBAAmB,
|
|
1
|
+
{"version":3,"file":"paper-service.d.ts","sourceRoot":"","sources":["../../src/service/paper-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EAEX,gBAAgB,EAChB,iBAAiB,EAEjB,aAAa,EACb,aAAa,EACb,SAAS,EAET,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,aAAa,EACb,WAAW,EAEX,UAAU,EACV,SAAS,EACT,QAAQ,EAER,WAAW,EACZ,MAAM,gBAAgB,CAAA;AAcvB,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC1F,OAAO,KAAK,EAAE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