Pionex Market Data CLI
Public market data for Pionex: order book depth, trades, tickers, symbol metadata, and OHLCV klines. All commands are read-only and do not require API credentials.
API reference: Pionex API Docs.
Prerequisites
- Install
pionex-trade-cli CLI (from @pionex/pionex-ai-kit):npm install -g @pionex/pionex-ai-kit
- No credentials needed for market data.
- Verify:
pionex-trade-cli market tickers --symbol BTC_USDT
Skill Routing
- For market data (depth, tickers, symbols, klines, trades) → use pionex-market (this skill).
- For account balance → use pionex-portfolio.
- For placing/cancelling orders → use pionex-trade.
- For futures grid bot lifecycle → use pionex-bot.
Quickstart
# Order book depth (bids/asks)
pionex-trade-cli market depth BTC_USDT --limit 5
# Recent trades
pionex-trade-cli market trades BTC_USDT --limit 10
# Symbol metadata (precision, min size) — use before placing orders
pionex-trade-cli market symbols --symbols BTC_USDT
# 24h ticker(s)
pionex-trade-cli market tickers --symbol BTC_USDT
pionex-trade-cli market tickers --type SPOT
# Best bid/ask ticker(s)
pionex-trade-cli market book_tickers --symbol BTC_USDT
pionex-trade-cli market book_tickers --type PERP
# OHLCV klines (candlestick)
pionex-trade-cli market klines BTC_USDT 60M --limit 24
pionex-trade-cli market klines BTC_USDT 1D
Command Index
| # |
Command |
Type |
Description |
| 1 |
pionex-trade-cli market depth <symbol> [--limit <n>] |
READ |
Order book depth (bids/asks); limit 1–100, default 5 |
| 2 |
pionex-trade-cli market trades <symbol> [--limit <n>] |
READ |
Recent public trades; limit 1–100 |
| 3 |
pionex-trade-cli market symbols [--symbols <list>] [--type SPOT|PERP] |
READ |
Symbol metadata (precision, min size). Comma-separated symbols or type filter |
| 4 |
pionex-trade-cli market tickers [--symbol <s>] [--type SPOT|PERP] |
READ |
24h ticker(s): open, close, high, low, volume |
| 5 |
pionex-trade-cli market book_tickers [--symbol <s>] [--type SPOT|PERP] |
READ |
Best bid/ask ticker(s) for one symbol or all symbols by type |
| 6 |
pionex-trade-cli market klines <symbol> <interval> [--endTime <ms>] [--limit <n>] |
READ |
OHLCV klines. interval: 1M, 5M, 15M, 30M, 60M, 4H, 8H, 12H, 1D |
Cross-Skill: Check price/symbol before order
Before placing an order, use this skill to get last price and symbol rules:
# 1. Current price / 24h range
pionex-trade-cli market tickers --symbol BTC_USDT
# 2. Min size / precision (avoid TRADE_AMOUNT_FILTER_DENIED)
pionex-trade-cli market symbols --symbols BTC_USDT
Then use pionex-trade to place the order (after checking balance with pionex-portfolio if needed).
1---2name: pionex-market3description: Use when the user asks for Pionex market data: price, ticker, order book depth, recent trades, symbol info (precision/min size), or OHLCV klines. All commands are read-only and do NOT require API credentials. Do NOT use for account balance (pionex-portfolio) or placing/cancelling orders (pionex-trade).4license: MIT5---67# Pionex Market Data CLI89Public market data for Pionex: order book depth, trades, tickers, symbol metadata, and OHLCV klines. All commands are **read-only** and do **not require API credentials**. 10API reference: [Pionex API Docs](https://pionex-doc.gitbook.io/apidocs/).1112## Prerequisites13141. Install `pionex-trade-cli` CLI (from `@pionex/pionex-ai-kit`):15 ```bash16 npm install -g @pionex/pionex-ai-kit17 ```182. No credentials needed for market data.193. Verify:20 ```bash21 pionex-trade-cli market tickers --symbol BTC_USDT22 ```2324## Skill Routing2526- For market data (depth, tickers, symbols, klines, trades) → use **pionex-market** (this skill).27- For account balance → use **pionex-portfolio**.28- For placing/cancelling orders → use **pionex-trade**.29- For futures grid bot lifecycle → use **pionex-bot**.3031## Quickstart3233```bash34# Order book depth (bids/asks)35pionex-trade-cli market depth BTC_USDT --limit 53637# Recent trades38pionex-trade-cli market trades BTC_USDT --limit 103940# Symbol metadata (precision, min size) — use before placing orders41pionex-trade-cli market symbols --symbols BTC_USDT4243# 24h ticker(s)44pionex-trade-cli market tickers --symbol BTC_USDT45pionex-trade-cli market tickers --type SPOT4647# Best bid/ask ticker(s)48pionex-trade-cli market book_tickers --symbol BTC_USDT49pionex-trade-cli market book_tickers --type PERP5051# OHLCV klines (candlestick)52pionex-trade-cli market klines BTC_USDT 60M --limit 2453pionex-trade-cli market klines BTC_USDT 1D54```5556## Command Index5758| # | Command | Type | Description |59|---|---------|------|--------------|60| 1 | `pionex-trade-cli market depth <symbol> [--limit <n>]` | READ | Order book depth (bids/asks); limit 1–100, default 5 |61| 2 | `pionex-trade-cli market trades <symbol> [--limit <n>]` | READ | Recent public trades; limit 1–100 |62| 3 | `pionex-trade-cli market symbols [--symbols <list>] [--type SPOT\|PERP]` | READ | Symbol metadata (precision, min size). Comma-separated symbols or type filter |63| 4 | `pionex-trade-cli market tickers [--symbol <s>] [--type SPOT\|PERP]` | READ | 24h ticker(s): open, close, high, low, volume |64| 5 | `pionex-trade-cli market book_tickers [--symbol <s>] [--type SPOT\|PERP]` | READ | Best bid/ask ticker(s) for one symbol or all symbols by type |65| 6 | `pionex-trade-cli market klines <symbol> <interval> [--endTime <ms>] [--limit <n>]` | READ | OHLCV klines. interval: 1M, 5M, 15M, 30M, 60M, 4H, 8H, 12H, 1D |6667## Cross-Skill: Check price/symbol before order6869Before placing an order, use this skill to get last price and symbol rules:7071```bash72# 1. Current price / 24h range73pionex-trade-cli market tickers --symbol BTC_USDT7475# 2. Min size / precision (avoid TRADE_AMOUNT_FILTER_DENIED)76pionex-trade-cli market symbols --symbols BTC_USDT77```7879Then use **pionex-trade** to place the order (after checking balance with **pionex-portfolio** if needed).