MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / writeUTAsConfig

Function writeUTAsConfig

src/core/config.ts:759–762  ·  view source on GitHub ↗
(utas: UTAConfig[])

Source from the content-addressed store, hash-verified

757}
758
759export async function writeUTAsConfig(utas: UTAConfig[]): Promise<void> {
760 const validated = utasFileSchema.parse(utas)
761 await writeAccountsFile(validated)
762}
763
764/**
765 * Wipe a UTA's persistent trading state (`data/trading/<id>/`). Used when

Callers 3

config.spec.tsFile · 0.85
purgeEphemeralUTAsFunction · 0.85

Calls 2

writeAccountsFileFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected