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

Function decodeBool

packages/ibkr/src/utils.ts:75–80  ·  view source on GitHub ↗
(fields: Iterator<string>)

Source from the content-addressed store, hash-verified

73}
74
75export function decodeBool(fields: Iterator<string>): boolean {
76 const r = fields.next()
77 if (r.done) throw new BadMessage('no more fields')
78 const s = r.value
79 return parseInt(s || '0', 10) !== 0
80}
81
82export function decodeDecimal(fields: Iterator<string>): Decimal {
83 const r = fields.next()

Callers 15

decodeOutsideRthMethod · 0.70
decodeHiddenMethod · 0.70
decodeBlockOrderMethod · 0.70
decodeSweepToFillMethod · 0.70
decodeAllOrNoneMethod · 0.70
skipETradeOnlyMethod · 0.70
skipFirmQuoteOnlyMethod · 0.70
decodeVolOrderParamsMethod · 0.70
decodeNotHeldMethod · 0.70
decodeDeltaNeutralMethod · 0.70

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected