Index of every page on this site: llms.txt
All skills
bofai avatar

/sunperp-skill

@0c50fae
by BANK OF AIbofai/skills167 stars
24
Run it yourself

Trade USDT-margined perpetual futures on SunPerp (TRON) — place orders, manage positions, query market data, and manage account via REST API.

  • 11 files
  • 79.9 KB
  • Updated 2 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/bofai/skills/sunperp-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈513 tokens on demand. Your agent reads this file only when SKILL.md points to it.

SunPerp Perpetual Futures Skill

AI agent skill for trading USDT-margined perpetual futures on SunPerp (TRON blockchain).

What This Skill Does

Enables AI agents to interact with SunPerp's REST API to:

  • Query real-time market data (prices, order books, candlesticks, funding rates)
  • Manage account (balances, fee rates, trading bills)
  • Place and cancel orders (market, limit, post-only with TP/SL)
  • Manage positions (view, set leverage, set position mode, close)

Quick Start

1. Install Dependencies

npm install

2. Set API Keys

Create keys at https://www.sunperp.com/futures/api-manage/ then:

export SUNPERP_ACCESS_KEY="your_access_key"
export SUNPERP_SECRET_KEY="your_secret_key"

3. Test Connection

# Public endpoint (no auth)
node scripts/market.js ticker contract_code=BTC-USDT

# Authenticated endpoint
node scripts/account.js balance

Scripts

Script Purpose
scripts/market.js Market data (ticker, depth, kline, funding, etc.)
scripts/account.js Account balance, fee rates, bills
scripts/order.js Place, cancel, query orders
scripts/position.js Positions, leverage, position mode
scripts/wallet.js Withdraw USDT, query deposit/withdraw records
scripts/utils.js Shared auth/signature utilities

Important Disclaimer

This skill covers trading operations only (placing orders, managing positions, querying market data). It does not handle on-chain wallet operations. The agent operator is responsible for:

  • Deposits: Manually transferring USDT (TRC-20) to the SunPerp platform
  • Withdrawals: Manually initiating and confirming withdrawals from SunPerp
  • Private key management: Never share private keys with agents or store them in skill files

Ensure the trading account is funded before the agent begins trading.

For AI Agents

Read SKILL.md for complete usage instructions, command reference, examples, and error handling guidance.

License

MIT

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 0c50fae. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 2 weeks ago
version
3.1.0
dependencies
[
  "node ^22.23.4 || ^24.22.1 || >=26.12.1"
]
tags
[
  "defi",
  "perpetual",
  "futures",
  "tron",
  "sunperp",
  "trading"
]
Other metadata
author
bankofai
homepage
https://www.sunperp.com
arguments
[
  {
    "name": "action",
    "description": "The trading action to perform (e.g., market_buy, limit_sell, check_balance, get_price)",
    "required": true
  },
  {
    "name": "contract_code",
    "description": "Trading pair symbol (e.g., BTC-USDT, ETH-USDT, TRX-USDT)",
    "required": false
  },
  {
    "name": "volume",
    "description": "Number of contracts to trade",
    "required": false
  },
  {
    "name": "price",
    "description": "Limit price for limit orders",
    "required": false
  },
  {
    "name": "leverage",
    "description": "Leverage multiplier (e.g., 10, 20, 50)",
    "required": false
  }
]

README badge

README badge for bofai/skills/sunperp-skill