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

Function decodeStr

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

Source from the content-addressed store, hash-verified

44 * instead of Python's type objects.
45 */
46export function decodeStr(fields: Iterator<string>): string {
47 const r = fields.next()
48 if (r.done) throw new BadMessage('no more fields')
49 return r.value
50}
51
52export function decodeInt(fields: Iterator<string>, showUnset = false): number {
53 const r = fields.next()

Callers 15

decodeContractFieldsMethod · 0.70
decodeActionMethod · 0.70
decodeOrderTypeMethod · 0.70
decodeTIFMethod · 0.70
decodeOcaGroupMethod · 0.70
decodeAccountMethod · 0.70
decodeOpenCloseMethod · 0.70
decodeOrderRefMethod · 0.70
decodeGoodAfterTimeMethod · 0.70
skipSharesAllocationMethod · 0.70
decodeFAParamsMethod · 0.70
decodeModelCodeMethod · 0.70

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected