mx-moni

Manage simulated A-share trading accounts via authenticated mockTrading API requests.

1|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/Ewan-yu/skill-repo --skill mx-moni-ewan-yu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mx-moni
Source: https://github.com/Ewan-yu/skill-repo/tree/main/skills/mx-moni
Command: npx skills add https://github.com/Ewan-yu/skill-repo --skill mx-moni-ewan-yu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests.

What problem does it solve?

This Skill helps you manage a simulated A-share trading account by turning natural-language requests into authenticated API calls for positions, funds, orders, executions, and buy/sell/cancel actions.

Core Features & Use Cases

  • Simulated portfolio operations: Query current holdings, available cash/total assets, and order history; execute buy/sell (limit or market) and cancel orders.
  • Intent-based execution: Detect whether your request is for holdings, funds, orders, trading, or cancellation, then call the correct backend endpoint and save raw JSON results.
  • Safety guardrails: Emphasizes simulation-only usage, requires MX_APIKEY/MX_API_URL, validates key input constraints like A-share 6-digit stock codes and 100-share lot sizes, and prevents malformed requests.

Quick Start

Ask the assistant: “Use mx-moni to query my simulated account’s available funds and total assets.”

Frequently Asked Questions about mx-moni

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place a simulated A-share trading order using natural language?

To place simulated A-share trading orders, provide a natural-language buy or sell request. The Skill validates 6-digit stock codes and 100-share lot sizing, then constructs authenticated JSON POST requests to execute limit or market orders.

Can I cancel orders and verify trade execution history in a simulated trading account?

Yes, you can cancel orders and verify execution history in a simulated trading account. The Skill detects cancellation and query intents, calls the correct mockTrading endpoints, and returns raw JSON results for positions, funds, and order history.

What API credentials do I need to manage a simulated A-share portfolio?

Managing a simulated A-share portfolio requires the MX_APIKEY environment variable for authentication. You can also optionally configure MX_API_URL to specify a custom backend endpoint for your mockTrading API requests.

Does this simulated trading tool validate A-share stock codes and lot sizes before submission?

Yes, the simulated trading tool validates A-share stock codes and lot sizes before submission. It enforces 6-digit stock code formatting and 100-share lot sizing constraints to prevent malformed order requests from reaching the backend.

What limitations exist when using requests for A-share market practice?

A key limitation is that this tool is restricted to simulation-only usage for A-share market practice. It does not execute real-money trades, and all order placement, cancellation, and portfolio queries depend entirely on the mockTrading API endpoint availability.

What is the best way to query available funds and total assets in a mock trading account?

The best way to query available funds and total assets in a mock trading account is to ask the assistant directly. The Skill identifies the funds query intent and sends an authenticated API request to retrieve your current cash balance and total portfolio value.