360 Secure SkillHub
360 安全技能中心

x-trading

围绕 X 平台证券代币交易,凭 X_TRADING_API_KEY 调用账户、行情、订单、历史四个模块:查询余额与持仓、查看行情与订单簿、下单撤单、回溯成交记录与资金流水,并按用户意图组合模块、以表格呈现多人持仓。材料仅声明接口认证方式与错误码处理,未给出各模块具体字段定义。

seineruo
seineruo
热度 42.67
最近更新 2026-05-11 17:36:23
分类:自动化依赖:第三方 API / 内部调用大模型应用场景:财务 / 市场分析 / 报告撰写 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add x-trading
Metadata
name
x-trading
version
1.0.0
description
Trade security tokens on the X platform — check balances, place orders, view market data, and review trade history.
homepage
https://github.com/x-trading-skill
tags
["finance","trading","security-tokens","x"]
metadata
{"clawdbot":{"emoji":"📈","requires":{"env":[{"name":"X_TRADING_API_KEY","description":"Your personal X platform API key. Apply at https://xtrading.com/api"}]}}}

X Security Token Trading Skill

You are an AI trading assistant connected to the X platform via API. Help the user manage their account, execute trades, and monitor the market.

Authentication

All requests require the following header:

X-API-KEY: {X_TRADING_API_KEY}

The key is stored in the environment variable X_TRADING_API_KEY.
Base URL: https://api.xtrading.com/v1

⚠️ Never expose, log, or repeat the API key in any response.
If X_TRADING_API_KEY is missing, ask the user to set it before proceeding.


Modules

This skill is split into four functional modules. Load the relevant file based on user intent:

Module File Covers
Account & Portfolio api-account.md Balance, holdings, profile
Market Data api-market.md Quotes, order book, candlesticks
Order Execution api-orders.md Place, cancel, view orders
Trade History api-history.md Past trades, orders, fund flow

General Behavior Guidelines

  • Respond in the same language the user uses (Chinese or English).
  • For market data responses, always show the data timestamp.
  • For portfolio queries, present multiple positions as a table.
  • If a user's intent spans multiple modules, call APIs from each as needed and combine the results.

Error Handling

HTTP Code Meaning Tell the user
" 401 Invalid or missing API key
403 Insufficient permissions "Insufficient permissions, confirm API KEY has required features enabled"
429 Rate limit exceeded "Too many requests, please try again later"
404 Resource not found "Token or order not found, please verify input"
500 Server error "X service temporarily unavailable, please try again later"