SunPerp Perpetual Futures Trading

Trade USDT-margined perpetual futures on SunPerp with market data and order management.

91|14|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/BofAI/skills --skill sunperp-perpetual-futures-trading
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SunPerp Perpetual Futures Trading
Source: https://github.com/BofAI/skills/tree/main/sunperp-skill
Command: npx skills add https://github.com/BofAI/skills --skill sunperp-perpetual-futures-trading

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node-fetch, tronweb, and includes scripts (resource) components.

What problem does it solve?

Traders need a reliable way to query SunPerp market data and manage USDT-margined perpetual futures positions without manually wiring REST calls and safety checks.

Core Features & Use Cases

  • Market data retrieval: Fetch tickers, order books (depth), candlesticks, funding rates, index/best bid-offer, and recent trades for decision-making.
  • Account & risk operations: Check balances, fee rates, trading bills, leverage, position mode, risk limits, and position limits.
  • Order & position management with guardrails: Place/cancel orders and open/close positions while enforcing a max leverage cap and mandatory stop-loss for position-opening orders.
  • Example Use Case: An agent monitors BTC-USDT funding and price, confirms available margin, then opens a limit long with an attached stop-loss to reduce liquidation risk and later closes the position when conditions change.

Quick Start

Tell the AI: check the current funding rate for contract TRX-USDT and report the next funding details.

Frequently Asked Questions about SunPerp Perpetual Futures Trading

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

FAQPage Schema
How do I trade USDT-margined perpetual futures on SunPerp using an AI agent?

To trade USDT-margined perpetual futures on SunPerp, an AI agent can orchestrate market data lookups, authenticated account queries, and order actions. It requires SUNPERP_ACCESS_KEY and SUNPERP_SECRET_KEY for private REST operations.

How do I retrieve TRON market data like tickers and depth for analysis?

You can retrieve TRON market data by fetching tickers, order books, candlesticks, funding rates, and recent trades via REST endpoints. This provides the necessary quantitative inputs for analyzing perpetual futures conditions.

Do I need a stop-loss to open new positions on TRX perpetual futures?

Yes, a mandatory stop-loss is required for opening new positions. The system enforces strict safety constraints by returning clear error handling if stop-loss parameters are missing from your order placement.

What leverage limits apply when placing orders on SunPerp?

Leverage is validated against a configurable maximum cap when placing orders. This safety guardrail ensures traders do not exceed their defined risk limits when managing USDT-margined perpetual futures positions.

Can I manage position modes and leverage without manual REST calls?

Yes, you can manage position modes and leverage settings without manually wiring REST calls. The system automates authenticated account queries and risk limit checks against the SunPerp API endpoints.

Why does my perpetual futures order management fail with an authentication error?

Order management fails with an authentication error if SUNPERP_ACCESS_KEY and SUNPERP_SECRET_KEY are missing. These credentials are strictly required to authorize private operations on the SunPerp API endpoints.