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

Function fromJSON

packages/ibkr/src/protobuf/ScannerDataElement.ts:133–143  ·  view source on GitHub ↗
(object: any)

Source from the content-addressed store, hash-verified

131 },
132
133 fromJSON(object: any): ScannerDataElement {
134 return {
135 rank: isSet(object.rank) ? globalThis.Number(object.rank) : undefined,
136 contract: isSet(object.contract) ? Contract.fromJSON(object.contract) : undefined,
137 marketName: isSet(object.marketName) ? globalThis.String(object.marketName) : undefined,
138 distance: isSet(object.distance) ? globalThis.String(object.distance) : undefined,
139 benchmark: isSet(object.benchmark) ? globalThis.String(object.benchmark) : undefined,
140 projection: isSet(object.projection) ? globalThis.String(object.projection) : undefined,
141 comboKey: isSet(object.comboKey) ? globalThis.String(object.comboKey) : undefined,
142 };
143 },
144
145 toJSON(message: ScannerDataElement): unknown {
146 const obj: any = {};

Callers

nothing calls this directly

Calls 2

isSetFunction · 0.70
fromJSONMethod · 0.65

Tested by

no test coverage detected