Skip to content

Example CLI for paper trading in Node.js+TypeScript

License

Notifications You must be signed in to change notification settings

grpcoin/example-cli-node

Repository files navigation

grpcoin

Grpc Coin Node cli

oclif Version Downloads/week License

Usage

You need to create premissonless GithHub token Create GitHub Token

$ export TOKEN=ghp_LONGRANDOMKEY
$ npx grpcoin@latest
$ npx grpcoin COMMAND
running command...
$ npx grpcoin (-v|--version|version)
grpcoin/0.3.0 linux-x64 node-v16.1.0
$ npx grpcoin --help [COMMAND]
USAGE
  $  grpcoin COMMAND
...

Commands

grpcoin buy [COIN] [AMOUNT]

Buy coin

USAGE
  $ npx grpcoin buy [COIN] [AMOUNT]

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ npx grpcoin buy ETH 2.5

See code: src/commands/buy.ts

grpcoin help [COMMAND]

Display help. To display help for a specific command run grpcoing help [command]

USAGE
  $ npx grpcoin help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

grpcoin sell [COIN] [AMOUNT]

Sell coin

USAGE
  $ npx grpcoin sell [COIN] [AMOUNT]

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ npx grpcoin sell ETH 2.5

See code: src/commands/sell.ts

grpcoin watch [COIN]

Watch coin

USAGE
  $ npx grpcoin watch [COIN]

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ npx grpcoin watch ETH

See code: src/commands/watch.ts

grpcoin portfolio

User portfolio

USAGE
  $ npx grpcoin portfolio

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ npx grpcoin portfolio

See code: src/commands/portfolio.ts