mcpField
P
pionex-market

pionex-market

github.com/pionex-officialOther5129 installsUpdated 14w ago
Repository

About pionex-market

pionex-market is a read-only skill for retrieving public Pionex market data through `pionex-trade-cli`. It is intended for users and agents checking prices, trades, order books, and symbol rules without API credentials.

Key features

  1. 01Order book depth
  2. 02Recent public trades
  3. 0324-hour ticker data
  4. 04Symbol metadata
  5. 05Best bid and ask
  6. 06OHLCV klines

Use cases

  1. 01Check a pair’s price before placing an order
  2. 02Inspect minimum size and precision rules
  3. 03Review recent trades and order book levels

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pionex-official/pionex-skills --skill pionex-market

After installing, type/pionex-marketin Claude Code to confirm it loaded.

Details

From the project README

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

  1. Install pionex-trade-cli CLI (from @pionex/pionex-ai-kit):
    npm install -g @pionex/pionex-ai-kit
    
  2. No credentials needed for market data.
  3. 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

#CommandTypeDescription
1pionex-trade-cli market depth <symbol> [--limit <n>]READOrder book depth (bids/asks); limit 1–100, default 5
2pionex-trade-cli market trades <symbol> [--limit <n>]READRecent public trades; limit 1–100
3pionex-trade-cli market symbols [--symbols <list>] [--type SPOT|PERP]READSymbol metadata (precision, min size). Comma-separated symbols or type filter
4pionex-trade-cli market tickers [--symbol <s>] [--type SPOT|PERP]READ24h ticker(s): open, close, high, low, volume
5pionex-trade-cli market book_tickers [--symbol <s>] [--type SPOT|PERP]READBest bid/ask ticker(s) for one symbol or all symbols by type
6pionex-trade-cli market klines <symbol> <interval> [--endTime <ms>] [--limit <n>]READOHLCV 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).

Comments

Markdown supported