MCPcopy Create free account
hub / github.com/discountry/ritmex-bot / parsePositionCommand

Function parsePositionCommand

src/cli/command-parser.ts:195–205  ·  view source on GitHub ↗
(
  action: string,
  options: Record<string, string | boolean>,
  common: CommandCommonOptions & { help?: boolean }
)

Source from the content-addressed store, hash-verified

193}
194
195function parsePositionCommand(
196 action: string,
197 options: Record<string, string | boolean>,
198 common: CommandCommonOptions & { help?: boolean }
199): ParsedCliCommand {
200 assertAllowedOptions(options, GLOBAL_OPTION_NAMES);
201 if (action === "list") {
202 return { kind: "position-list", ...common };
203 }
204 throw new CommandParseError(`Unsupported position action '${action}'`);
205}
206
207function parseOrderCommand(
208 action: string,

Callers 1

parseCommandArgvFunction · 0.85

Calls 1

assertAllowedOptionsFunction · 0.85

Tested by

no test coverage detected