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

Function decodeTagValueMap

packages/ibkr/src/decoder/orders.ts:131–136  ·  view source on GitHub ↗
(protoMap: { [key: string]: string } | undefined)

Source from the content-addressed store, hash-verified

129}
130
131function decodeTagValueMap(protoMap: { [key: string]: string } | undefined): TagValue[] | null {
132 if (!protoMap) return null
133 const entries = Object.entries(protoMap)
134 if (entries.length === 0) return null
135 return entries.map(([tag, value]) => new TagValue(tag, value))
136}
137
138function decodeConditionsFromProto(conditions: OrderConditionProto[] | undefined): OrderCondition[] {
139 if (!conditions || conditions.length === 0) return []

Callers 1

decodeOrderFromProtoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected