Loading...
Loading...
Place, monitor, and cancel stock trading orders on Leapcat via the leapcat CLI.
npx skill4agent add leapcat-ai/leapcat-skills leapcat-tradingnpx leapcat@latestnpx leapcat@latest auth login --email <email>npx leapcat@latest trading place-order \
--symbol <symbol> \
--exchange <exchange> \
--side <BUY|SELL> \
--order-type <LIMIT|MARKET> \
--quantity <qty> \
[--price <price>] \
[--source <source>] \
[--stock-name <name>] \
[--idempotency-key <key>] \
--json--symbol <symbol>AAPL9988.HK--exchange <exchange>NASDAQHKEX--side <BUY|SELL>--order-type <LIMIT|MARKET>LIMITMARKET--quantity <qty>--price <price>--source <source>CLI--stock-name <name>--idempotency-key <key>npx leapcat@latest trading list-orders [--status <status>] [--symbol <symbol>] --json--status <status>PENDINGFILLEDCANCELLED--symbol <symbol>npx leapcat@latest trading get-order --order-id <id> --json--order-id <id>npx leapcat@latest trading cancel-order --order-id <id> --json--order-id <id>npx leapcat@latest market quote --symbol <symbol> --exchange <exchange> --jsontrading place-order--price--idempotency-keytrading get-order --order-id <id> --jsontrading list-orders --jsontrading cancel-order --order-id <id> --json| Error | Cause | Resolution |
|---|---|---|
| Session expired | Re-authenticate with |
| KYC verification incomplete | Complete the KYC flow first |
| Trade password required | Set via |
| Not enough funds for the buy order | Deposit funds via wallet |
| Unrecognized stock symbol | Verify symbol with |
| Market is not open for trading | Wait for market hours or place a limit order |
| Invalid order ID | Re-check with |
| Order already filled or cancelled | No further action possible |
| Idempotency key already used | Use a new idempotency key or check existing order |