SunPerp Perpetual Futures Trading
Installation
SKILL.md
SunPerp Perpetual Futures Trading
Overview
This skill enables AI agents to trade USDT-margined perpetual futures on SunPerp, the perpetual futures DEX on the TRON blockchain. It provides scripts for:
- Market data: Prices, order books, candlesticks, funding rates
- Account management: Balances, fee rates, trading bills
- Order management: Place, cancel, and query orders (market, limit, post-only)
- Position management: View positions, set leverage, set position mode, close positions
All scripts communicate with the SunPerp REST API at https://api.sunx.io.
Prerequisites
Credentials depend on the operation: Public market queries require no credentials. Private account and trading calls use
SUNPERP_ACCESS_KEYandSUNPERP_SECRET_KEY. Withdrawals additionally requireTRON_PRIVATE_KEYfor confirmation signing. No separate wallet or onboarding Skill is required; follow the operation-specific setup below.