leapcat-trading
Original:🇺🇸 English
Translated
Place, monitor, and cancel stock trading orders on Leapcat via the leapcat CLI.
8installs
Added on
NPX Install
npx skill4agent add leapcat-ai/leapcat-skills leapcat-tradingTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →LeapCat Stock Trading Skill
Place, monitor, and cancel stock trading orders using the leapcat.
Prerequisites
- Node.js 18+ is required (commands use which auto-downloads the CLI)
npx leapcat@latest - User must be authenticated — run first
npx leapcat@latest auth login --email <email> - KYC must be completed and approved
- Trade password must be set
Commands
trading place-order
Place a new stock order (buy or sell).
bash
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>] \
--jsonParameters:
- — Stock ticker symbol (e.g.,
--symbol <symbol>,AAPL)9988.HK - — Exchange code (e.g.,
--exchange <exchange>,NASDAQ)HKEX - — Order direction
--side <BUY|SELL> - — Order type; use
--order-type <LIMIT|MARKET>for a specific price orLIMITfor best available priceMARKET - — Number of shares
--quantity <qty> - — Limit price (required for LIMIT orders, ignored for MARKET)
--price <price> - — Order source identifier (default:
--source <source>)CLI - — Human-readable stock name (optional, for display purposes)
--stock-name <name> - — Unique key to prevent duplicate orders (optional but recommended)
--idempotency-key <key>
trading list-orders
List the user's orders with optional filters.
bash
npx leapcat@latest trading list-orders [--status <status>] [--symbol <symbol>] --jsonParameters:
- — Filter by order status (e.g.,
--status <status>,PENDING,FILLED)CANCELLED - — Filter by stock symbol
--symbol <symbol>
trading get-order
Get details of a specific order.
bash
npx leapcat@latest trading get-order --order-id <id> --jsonParameters:
- — The order identifier
--order-id <id>
trading cancel-order
Cancel a pending order.
bash
npx leapcat@latest trading cancel-order --order-id <id> --jsonParameters:
- — The order identifier to cancel
--order-id <id>
Workflow
- Get a market quote — Use to check the current price.
npx leapcat@latest market quote --symbol <symbol> --exchange <exchange> --json - Place an order — Run with the desired parameters. For limit orders, set
trading place-orderbased on the quote data. Consider using--priceto avoid duplicate submissions.--idempotency-key - Monitor order status — Run or
trading get-order --order-id <id> --jsonto track the order.trading list-orders --json - Cancel if needed — Run to cancel a pending/unfilled order.
trading cancel-order --order-id <id> --json
Error Handling
| 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 |