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

Function getOptionExerciseTypeName

packages/ibkr/src/execution.ts:38–43  ·  view source on GitHub ↗
(entry: OptionExerciseTypeEntry)

Source from the content-addressed store, hash-verified

36export type OptionExerciseTypeEntry = (typeof OptionExerciseType)[keyof typeof OptionExerciseType]
37
38function getOptionExerciseTypeName(entry: OptionExerciseTypeEntry): string {
39 for (const [key, val] of Object.entries(OptionExerciseType)) {
40 if (val === entry) return key
41 }
42 return 'Unknown'
43}
44
45export class Execution {
46 execId = ''

Callers 1

toStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected