lighter
GitHub用于通过 Superior Trade Unified API 进行 Lighter 市场发现、Nautilus 回测、部署及执行。需先检查 API 契约,遵循严格的安全规则,处理账户就绪状态及资金操作,并区分 Robinhood Chain 变体。
Trigger Scenarios
Install
npx skills add Superior-Trade/superior-skills --skill lighter -g -y
SKILL.md
Frontmatter
{
"name": "lighter",
"metadata": {
"env": [
{
"name": "SUPERIOR_TRADE_API_KEY",
"type": "api_key",
"required": true,
"description": "Superior Trade API key (x-api-key header). Obtained at https:\/\/account.superior.trade. Used for Unified wallet reads, market context, backtests, and contract-supported Lighter deployments."
}
],
"auth": {
"env": "SUPERIOR_TRADE_API_KEY",
"type": "api_key",
"scope": "Read the user's Unified wallet and Lighter market context, and manage contract-supported Nautilus backtests and deployments. One-time actions, venue-specific onboarding, deposits, and withdrawals are available only when the Unified OpenAPI contract explicitly exposes them. Cannot export private keys or access other users' data.",
"header": "x-api-key"
},
"source": "https:\/\/github.com\/Superior-Trade",
"updated": 1784678400,
"version": "1.0.2",
"homepage": "https:\/\/account.superior.trade",
"primaryEnv": "SUPERIOR_TRADE_API_KEY",
"externalEndpoints": [
{
"url": "https:\/\/unified-api-zag4gzx6gq-an.a.run.app",
"purpose": "Unified Lighter market context, wallet reads, backtests, and deployments"
}
]
},
"description": "Use when researching, backtesting, deploying, or running a supported one-time Lighter action through the Superior Trade Unified API."
}
Superior Trade Lighter
Use this skill for Lighter market discovery, Nautilus backtests and deployments, managed-wallet checks, and supported typed executions through Unified API.
Read ../../references/unified-runtime.md
before making any request. The OpenAPI contract, not older venue workflows,
defines which Lighter operations are available.
Base URL: https://unified-api-zag4gzx6gq-an.a.run.app
Auth: x-api-key: $SUPERIOR_TRADE_API_KEY
Venue config: { "venue": "lighter", "instrument_id": "<SYMBOL>.LIGHTER" }
Unified API only
Read ../../references/unified-runtime.md
before onboarding, backtesting, deployment, or execution. Use GET /context/venues
and GET /runtime/frameworks first, then the Unified runtime endpoints. If the
contract does not expose the required Lighter operation, report it as
unavailable.
Robinhood Chain Variant
Use the separate lighter-robinhood skill and venue name for Robinhood Chain Lighter. Do not treat lighter-robinhood as an alias for this default lighter profile; it uses a different venue profile, chain id, deposit asset, and instrument suffix.
Safety Rules
- Never ask for private keys, seed phrases, API private keys, passwords, or wallet credentials.
- Never log, echo, store, or display secrets. The only credential an agent should use is
SUPERIOR_TRADE_API_KEY. - Never move funds or start live trading without explicit user confirmation.
- Never submit a Lighter order without explicit user confirmation of market, side, size, order type, and risk.
- Treat any contract-supported Lighter deposit or withdrawal as a real fund-moving action.
- Do not retry an ambiguous execution or withdrawal automatically. Read its durable status and report the persisted state.
- Do not claim managed-wallet funds are available on Lighter unless Unified API returns the required readiness and balance evidence.
- Do not claim Lighter readiness or balance without querying the API.
- If onboarding, CCTP funding, delayed withdrawal, or signed proxy submission is
absent from
GET /openapi.json, report it as unavailable.
Account readiness
Read the managed wallet with GET /wallet and venue support with
GET /context/venues. Do not infer a Lighter-specific account state machine
from generic wallet history. If Unified API does not return the readiness data
needed for a live deployment, report the deployment as unavailable rather than
reusing an older onboarding flow.
Reference files
Load on demand.
| Read | When |
|---|---|
references/api.md |
You need Unified routing for market context, wallet readiness, backtests, deployments, or supported typed executions. |
references/deployment.md |
You are creating, starting, stopping or monitoring a Lighter Nautilus deployment. |
Related Skills
- Use
superior-trade-authfirst when the user needs an API key. - Use
trade-thesisbefore deploying a new live strategy idea. - Use
hyperliquidfor Hyperliquid workflows. Lighter deployments use the same Unified runtime lifecycle with the Nautilus framework.
Version History
-
d6f188f
Current 2026-09-08 20:00
重构技能以迁移至 Unified API,更新基础 URL 和参考文档,强调基于 OpenAPI 契约的操作验证。
- 9333090 2026-08-16 16:12


