- Add asset_type column to instrument table (migration 000003) - Extend market domain types with asset_type and related fields - Update proto definitions for common and market messages - Regenerate Dart and Go protobuf code - Add shared query surface for US market data - Add KIS US daily itemchartprice provider and tests - Update backtest and operator components for US market support - Update socket market mapping for new asset types - Move paper-trading-command-workflow to archive - Add agent-task for m-us-market-expansion (subtasks 02+01, 03+01, 04+02,03) |
||
|---|---|---|
| .. | ||
| gen/go | ||
| proto/alt/v1 | ||
| README.md | ||
ALT Contracts
This package owns ALT application-level protobuf contracts.
proto-socket remains the transport protocol. ALT messages should be defined here and carried inside proto-socket PacketBase.data.
Initial contract direction:
- additive protobuf changes first
- explicit handshake/version messages because proto-socket protocol
0.1does not carry an application version field - market-neutral models with Korea market daily bars as the MVP path (including
ListBarsRequest/ListBarsResponseandGetBacktestResultRequest/GetBacktestResultResponsefor the MVP schema) - generated clients should be derived from
proto/sources, not edited by hand
Compatibility
- Prefer additive fields and messages.
- Never renumber existing fields.
- Reserve removals or semantic rewrites for an explicit version bump.
Transport Boundary
proto-socketownsPacketBase, heartbeat, nonce, and transport framing.- ALT
alt.v1messages are application payloads carried inPacketBase.data.
Codegen
Generated outputs are committed source-of-derivation artifacts:
- Go:
packages/contracts/gen/go/alt/v1/*.pb.go(Go modulegit.toki-labs.com/toki/alt/packages/contracts/gen/go). - Dart:
apps/client/lib/src/generated/alt/v1/*.pb*.dart.
Commands (run from repository root):
bin/contracts-genregenerates Go and Dart outputs fromproto/. Requiresprotoc,protoc-gen-go, and a workingapps/clientFlutter package (the Dart plugin is invoked viaapps/client/tool/protoc-gen-dart).bin/contracts-checksnapshots current generated outputs, regenerates, and fails when the regeneration produces a diff. Used bybin/testto keep schema and generated code aligned.
Do not hand-edit files under packages/contracts/gen/ or apps/client/lib/src/generated/.