npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pionex/pionex-trade-mcp

v0.2.31

Published

Pionex MCP Server - reads credentials from ~/.pionex/config.toml

Readme

@pionex/pionex-trade-mcp

MCP server for Pionex. Reads credentials from ~/.pionex/config.toml (no env vars needed in client config).

Install & Setup

  1. Create config (if not done yet):
    pionex-ai-kit onboard (from @pionex/pionex-ai-kit).

  2. Register with your AI client using the CLI:

    pionex-ai-kit setup --mcp=pionex-trade-mcp --client cursor
    pionex-ai-kit setup --mcp=pionex-trade-mcp --client claude-desktop
    pionex-ai-kit setup --mcp=pionex-trade-mcp --client claude-code
    pionex-ai-kit setup --mcp=pionex-trade-mcp --client windsurf
    pionex-ai-kit setup --mcp=pionex-trade-mcp --client vscode
    pionex-ai-kit setup --mcp=pionex-trade-mcp --client openclaw

    Supported: cursor, claude-desktop, windsurf, vscode, claude-code, openclaw.

  3. Restart Cursor (or your client).

Credentials are read from ~/.pionex/config.toml when the server starts; the client config (e.g. ~/.cursor/mcp.json) only needs a command such as:

{
  "mcpServers": {
    "pionex-trade-mcp": {
      "command": "npx",
      "args": ["-y", "@pionex/pionex-trade-mcp"]
    }
  }
}

Tools

  • Market (no auth): pionex_market_get_depth, pionex_market_get_trades, pionex_market_get_symbol_info, pionex_market_get_tickers, pionex_market_get_book_tickers, pionex_market_get_klines
  • Account (auth): pionex_account_get_balance
  • Orders (auth): pionex_orders_new_order, pionex_orders_get_order, pionex_orders_get_order_by_client_order_id, pionex_orders_get_open_orders, pionex_orders_get_all_orders, pionex_orders_cancel_order, pionex_orders_get_fills, pionex_orders_get_fills_by_order_id, pionex_orders_cancel_all_orders
  • Bot / Futures Grid (auth): pionex_bot_futures_grid_get_order, pionex_bot_futures_grid_create, pionex_bot_futures_grid_adjust_params, pionex_bot_futures_grid_reduce, pionex_bot_futures_grid_cancel

pionex_bot_futures_grid_create (strict OpenAPI)

Source: openapi_bot.yamlCreateFuturesGridRequest / CreateFuturesGridOrderData.

Implementation (JSON Schema + runtime validation): @pionex-ai/coreschemas/futures-grid-create.ts (exported as createFuturesGridCreateToolInputSchema, parseAndValidateCreateFuturesGridBuOrderData).

Tool arguments = CreateFuturesGridRequest (+ internal __dryRun optional)

| Field | Required | OpenAPI | |-------|----------|---------| | base | yes | yes | | quote | yes | yes | | buOrderData | yes | yes | | copyFrom | no | no | | copyType | no | no | | copyBotOrderId | no | no | | __dryRun | no | internal (CLI): preview body without POST |

buOrderData = CreateFuturesGridOrderData — only these keys allowed (additionalProperties: false in schema; unknown keys rejected at runtime).

Required in buOrderData: top, bottom, row, grid_type, trend, leverage, quoteInvestment

Optional in buOrderData (if present, types must match YAML):
extraMargin, condition, conditionDirection, lossStopType, lossStop, lossStopDelay, profitStopType, profitStop, profitStopDelay, lossStopHigh, shareRatio, investCoin, investmentFrom, uiInvestCoin, lossStopLimitPrice, lossStopLimitHighPrice, profitStopLimitPrice, slippage, bonusId, uiExtraData, movingIndicatorType, movingIndicatorInterval, movingIndicatorParam, movingTrailingUpParam, cateType, movingTop, movingBottom, enableFollowClosed

Handler: base is normalized to *.PERP when the futures suffix is missing.

Docs: Futures Grid API