aicoin-market
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAiCoin Market
AiCoin 市场
Crypto market data toolkit powered by AiCoin Open API. Prices, K-lines, news, signals, whale orders, and more from 200+ exchanges.
Version: 1.0.0
由AiCoin Open API提供支持的加密货币市场数据工具包,涵盖200多家交易所的价格、K线、新闻、信号、鲸鱼订单等数据。
版本: 1.0.0
Critical Rules
关键规则
- NEVER fabricate data. Always run scripts to fetch real-time data.
- NEVER use curl, web_fetch, or browser for crypto data. Always use these scripts.
- NEVER run or
env— leaks API secrets into logs.printenv - Scripts auto-load — never pass credentials inline.
.env - Reply in the user's language. Chinese input = all-Chinese response (titles, headings, analysis).
- On 304/403 error — STOP, do NOT retry. This is a paid feature. Follow the Paid Feature Guide to help the user upgrade.
- 绝对不能虚构数据,始终运行脚本获取实时数据。
- 绝对不能使用curl、web_fetch或浏览器获取加密数据,始终使用本工具提供的脚本。
- 绝对不能运行或
env——会导致API密钥泄露到日志中。printenv - 脚本会自动加载——不要内联传递凭证信息。
.env - 使用用户的语言回复,中文输入对应全中文响应(标题、表头、分析内容均为中文)。
- 遇到304/403错误时立即停止,不要重试,这是付费功能,请按照付费功能指南引导用户升级。
Quick Reference
快速参考
| Task | Command | Min Tier |
|---|---|---|
| API Key Info | | Free |
| BTC price | | Free |
| K-line | | Free |
| Funding rate | | Basic |
| Long/short ratio | | Basic |
| Whale orders | | Standard |
| News flash | | Basic |
| Trending coins | | Free |
| Open interest | | Professional |
| Liquidation map | | Advanced |
Symbol shortcuts: , , , , auto-resolve in coin.mjs.
BTCETHSOLDOGEXRPChinese Slang: 大饼=BTC, 姨太=ETH, 狗狗=DOGE, 瑞波=XRP, 索拉纳=SOL.
| 任务 | 命令 | 最低版本等级 |
|---|---|---|
| API密钥信息 | | 免费 |
| BTC价格 | | 免费 |
| K线 | | 免费 |
| 资金费率 | | 基础版 |
| 多空比 | | 基础版 |
| 鲸鱼订单 | | 标准版 |
| 新闻快讯 | | 基础版 |
| 热门币种 | | 免费 |
| 持仓量 | | 专业版 |
| 清算热力图 | | 高级版 |
交易对快捷方式: 、、、、可在coin.mjs中自动解析。
BTCETHSOLDOGEXRP中文俚语对应: 大饼=BTC, 姨太=ETH, 狗狗=DOGE, 瑞波=XRP, 索拉纳=SOL。
Free vs Paid Endpoints
免费与付费端点说明
Free (built-in key, no config needed): , , , , , — only 6 endpoints.
coin_tickerklinehot_coinsexchangespair_tickernews_rssBasic ($29/mo) adds: , , , , , , , , , , , , , , ,
coin_listcoin_configfunding_ratetrade_datatickerfutures_interestls_rationavpair_by_marketpair_listnews_listflash_listtwitter/latesttwitter/searchnewsflash/searchnewsflash/listStandard ($79/mo) adds: , , , , , , , , , , , , ,
big_ordersagg_tradesgrayscale_trustgray_scalesignal_alertsignal_configstrategy_signalchange_signaldepth_latestnewsflashnews_detailtwitter/memberstwitter/interaction_statsnewsflash/detailAdvanced ($299/mo) adds: , , , , , , , , ,
liquidation_mapliquidation_historyliquidationindicator_klineindicator_pairsindex_listindex_priceindex_infodepth_fulldepth_groupedProfessional ($699/mo) adds: , , , , , (weighted), , , , , , ,
ai_analysisopen_interestestimated_liquidationhistorical_depthsuper_depthfunding_ratestock_quotesstock_top_gainerstock_companytreasury_*stock_marketsignal_alert_listexchange_listingFull tier table:
docs/api-tiers.md免费(内置密钥,无需配置): 仅包含6个端点:、、、、、。
coin_tickerklinehot_coinsexchangespair_tickernews_rss基础版(29美元/月)新增: 、、、、、、、、、、、、、、、
coin_listcoin_configfunding_ratetrade_datatickerfutures_interestls_rationavpair_by_marketpair_listnews_listflash_listtwitter/latesttwitter/searchnewsflash/searchnewsflash/list标准版(79美元/月)新增: 、、、、、、、、、、、、、
big_ordersagg_tradesgrayscale_trustgray_scalesignal_alertsignal_configstrategy_signalchange_signaldepth_latestnewsflashnews_detailtwitter/memberstwitter/interaction_statsnewsflash/detail高级版(299美元/月)新增: 、、、、、、、、、
liquidation_mapliquidation_historyliquidationindicator_klineindicator_pairsindex_listindex_priceindex_infodepth_fulldepth_grouped专业版(699美元/月)新增: 、、、、、(加权)、、、、、、、
ai_analysisopen_interestestimated_liquidationhistorical_depthsuper_depthfunding_ratestock_quotesstock_top_gainerstock_companytreasury_*stock_marketsignal_alert_listexchange_listing完整等级表见:
docs/api-tiers.mdSetup
配置说明
Scripts work out of the box with a built-in free key (6 endpoints). For more endpoints, add your API key to :
.envAICOIN_ACCESS_KEY_ID=your-key
AICOIN_ACCESS_SECRET=your-secret安全说明: AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的信息。如需交易功能,需单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在本地设备 文件中,不会上传到任何服务器。
.env.env~/.openclaw/workspace/.env~/.openclaw/.env脚本内置免费密钥可直接使用(支持6个端点)。如需使用更多端点,请将你的API密钥添加到文件中:
.envAICOIN_ACCESS_KEY_ID=your-key
AICOIN_ACCESS_SECRET=your-secret安全说明: AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的信息。如需交易功能,需单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在本地设备 文件中,不会上传到任何服务器。
.env.env~/.openclaw/workspace/.env~/.openclaw/.envScripts
脚本说明
All scripts:
node scripts/<name>.mjs <action> [json-params]所有脚本使用格式:
node scripts/<name>.mjs <action> [json-params]scripts/coin.mjs — Coin Data
scripts/coin.mjs — 币种数据
| Action | Description | Min Tier | Params |
|---|---|---|---|
| AiCoin API Key status + security notice. Run when user asks about key config/safety. | Free | None |
| Real-time prices | Free | |
| List all coins | Basic | None |
| Coin profile | Basic | |
| Funding rate (BTC only, aggregated) | Basic | |
| Trade data | Basic | |
| AI analysis & prediction | Pro | |
| Open interest | Pro | |
| Liquidation heatmap | Adv | |
| Liquidation history | Adv | |
| Estimated liquidation | Pro | |
| Historical depth | Pro | |
| Large order depth >$10k | Pro | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| AiCoin API密钥状态+安全说明,用户询问密钥配置/安全性时优先运行 | 免费 | 无 |
| 实时价格 | 免费 | |
| 所有币种列表 | 基础版 | 无 |
| 币种介绍 | 基础版 | |
| 资金费率(仅BTC,聚合数据) | 基础版 | |
| 交易数据 | 基础版 | |
| AI分析与预测 | 专业版 | |
| 持仓量 | 专业版 | |
| 清算热力图 | 高级版 | |
| 清算历史 | 高级版 | |
| 预估清算 | 专业版 | |
| 历史深度 | 专业版 | |
| 大额订单深度(>1万美元) | 专业版 | |
scripts/market.mjs — Market Data
scripts/market.mjs — 市场数据
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Standard K-line | Free | |
| Trending coins | Free | |
| Exchange list | Free | None |
| Exchange tickers | Basic | |
| Futures OI ranking | Basic | |
| Real-time depth | Std | |
| Indicator K-line | Adv | |
| Indicator pairs | Adv | |
| Index list | Adv | None |
| Index price | Adv | |
| Index details | Adv | |
| Full order book | Adv | |
| Grouped depth | Adv | |
| Stock quotes | Pro | |
| Top gainers | Pro | |
| Company details | Pro | |
| Holding entities | Pro | |
| Transaction history | Pro | |
| Accumulated holdings | Pro | |
| Latest entities | Pro | |
| Latest history | Pro | |
| Holdings overview | Pro | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 标准K线 | 免费 | |
| 热门币种 | 免费 | |
| 交易所列表 | 免费 | 无 |
| 交易所行情 | 基础版 | |
| 期货持仓量排名 | 基础版 | |
| 实时深度 | 标准版 | |
| 指标K线 | 高级版 | |
| 指标交易对 | 高级版 | |
| 指数列表 | 高级版 | 无 |
| 指数价格 | 高级版 | |
| 指数详情 | 高级版 | |
| 完整订单簿 | 高级版 | |
| 分组深度 | 高级版 | |
| 股票报价 | 专业版 | |
| 涨幅榜 | 专业版 | |
| 公司详情 | 专业版 | |
| 持有主体 | 专业版 | |
| 交易历史 | 专业版 | |
| 累计持有量 | 专业版 | |
| 最新持有主体 | 专业版 | |
| 最新交易历史 | 专业版 | |
| 持有概览 | 专业版 | |
scripts/features.mjs — Features & Signals
scripts/features.mjs — 功能与信号
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Pair ticker | Free | |
| Long/short ratio | Basic | None |
| Market navigation | Basic | |
| Pairs by exchange | Basic | |
| Pair list | Basic | |
| Grayscale trust | Std | None |
| Grayscale holdings | Std | |
| Signal alerts | Std | None |
| Alert config | Std | |
| Strategy signal | Std | |
| Anomaly signal | Std | |
| Whale orders | Std | |
| Aggregated large trades | Std | |
| Liquidation data | Adv | |
| Alert list | Pro | None |
| Crypto stocks | Pro | None |
| Delete alert | Pro | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 交易对行情 | 免费 | |
| 多空比 | 基础版 | 无 |
| 市场导航 | 基础版 | |
| 按交易所查询交易对 | 基础版 | |
| 交易对列表 | 基础版 | |
| 灰度信托 | 标准版 | 无 |
| 灰度持仓 | 标准版 | |
| 信号提醒 | 标准版 | 无 |
| 提醒配置 | 标准版 | |
| 策略信号 | 标准版 | |
| 异常信号 | 标准版 | |
| 鲸鱼订单 | 标准版 | |
| 大额聚合交易 | 标准版 | |
| 清算数据 | 高级版 | |
| 提醒列表 | 专业版 | 无 |
| 加密相关股票 | 专业版 | 无 |
| 删除提醒 | 专业版 | |
scripts/news.mjs — News & Content
scripts/news.mjs — 新闻与内容
| Action | Description | Min Tier | Params |
|---|---|---|---|
| RSS news feed | Free | |
| News list | Basic | |
| Industry flash news | Basic | |
| AiCoin flash news | Std | |
| News detail | Std | |
| Exchange listing announcements | Pro | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| RSS新闻源 | 免费 | |
| 新闻列表 | 基础版 | |
| 行业快讯 | 基础版 | |
| AiCoin快讯 | 标准版 | |
| 新闻详情 | 标准版 | |
| 交易所上币公告 | 专业版 | |
scripts/twitter.mjs — Twitter/X Crypto Tweets
scripts/twitter.mjs — Twitter/X 加密相关推文
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Latest crypto tweets | Basic | |
| Search tweets | Basic | |
| Search KOL/users | Std | |
| Tweet engagement stats | Std | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 最新加密推文 | 基础版 | |
| 搜索推文 | 基础版 | |
| 搜索KOL/用户 | 标准版 | |
| 推文互动数据 | 标准版 | |
scripts/newsflash.mjs — Newsflash (OpenData)
scripts/newsflash.mjs — 快讯(开放数据)
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Search newsflash | Basic | |
| Newsflash list with filters | Basic | |
| Newsflash full content | Std | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 搜索快讯 | 基础版 | |
| 带筛选的快讯列表 | 基础版 | |
| 快讯全文 | 标准版 | |
scripts/airdrop.mjs — Airdrop (OpenData)
scripts/airdrop.mjs — 空投(开放数据)
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Airdrop projects list (multi-source) | Basic | |
| Airdrop detail (hodler/xlaunch) | Std | |
| Hot airdrop banners | Basic | |
| Available exchanges and activity types | Basic | |
| Airdrop calendar (year+month required) | Std | |
Source options for list: (default), , , , , ,
allhodlerxlaunchearncoinalphabitget_launchpoolbitget_poolx| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 多源空投项目列表 | 基础版 | |
| 空投详情(hodler/xlaunch) | 标准版 | |
| 热门空投横幅 | 基础版 | |
| 支持的交易所与活动类型 | 基础版 | |
| 空投日历(需指定年月) | 标准版 | |
list接口source可选值: (默认), , , , , ,
allhodlerxlaunchearncoinalphabitget_launchpoolbitget_poolxscripts/drop_radar.mjs — Drop Radar (OpenData)
scripts/drop_radar.mjs — 空投雷达(开放数据)
| Action | Description | Min Tier | Params |
|---|---|---|---|
| Project list with filters | Basic | |
| Project detail | Basic | |
| Statistics overview | Basic | |
| Available filter options | Basic | |
| Project event calendar | Std | |
| Project team members | Std | |
| Project X following list | Std | |
| Recent status changes | Std | |
| Search project tweets | Std | |
| 操作 | 描述 | 最低版本等级 | 参数 |
|---|---|---|---|
| 带筛选的项目列表 | 基础版 | |
| 项目详情 | 基础版 | |
| 统计概览 | 基础版 | |
| 可用筛选选项 | 基础版 | |
| 项目活动日历 | 标准版 | |
| 项目团队成员 | 标准版 | |
| 项目X关注列表 | 标准版 | |
| 近期状态变更 | 标准版 | |
| 搜索项目推文 | 标准版 | |
Cross-Skill References
跨skill参考
| Need | Use |
|---|---|
| Exchange trading (buy/sell/balance) | aicoin-trading |
| Freqtrade strategies/backtest/deploy | aicoin-freqtrade |
| Hyperliquid whale tracking | aicoin-hyperliquid |
| 需求 | 使用skill |
|---|---|
| 交易所交易(买入/卖出/余额查询) | aicoin-trading |
| Freqtrade策略/回测/部署 | aicoin-freqtrade |
| Hyperliquid鲸鱼追踪 | aicoin-hyperliquid |
Common Errors
常见错误
- — Paid feature. Follow Paid Feature Guide below.
errorCode 304 / HTTP 403 - — Check format: AiCoin uses
Invalid symbol, notbtcusdt:okexBTC/USDT - — Wait 1-2s between requests; use batch queries
Rate limit exceeded
- — 付费功能,请按照下方付费功能指南处理。
errorCode 304 / HTTP 403 - — 检查格式:AiCoin使用
Invalid symbol格式,而非btcusdt:okexBTC/USDT - — 请求间隔1-2秒;使用批量查询
Rate limit exceeded
Paid Feature Guide
付费功能指南
When a script returns 304 or 403, this endpoint requires a higher API tier. Do NOT retry the same call.
Tell the user (in their language):
- What happened: This feature needs a paid AiCoin API subscription.
- How to get a key: Visit https://www.aicoin.com/opendata to register and create an API key.
- Tier options:
| Tier | Price | Highlights |
|---|---|---|
| Free | $0 | Prices, K-lines, trending coins (6 endpoints) |
| Basic | $29/mo | + Funding rate, L/S ratio, news, twitter (24 endpoints) |
| Standard | $79/mo | + Whale orders, signals, grayscale (38 endpoints) |
| Advanced | $299/mo | + Liquidation map, indicator K-lines, index, depth (49 endpoints) |
| Professional | $699/mo | All 63 endpoints: AI analysis, OI, stocks, treasury |
- How to configure: After getting a key, add to file:
.env
AICOIN_ACCESS_KEY_ID=your-key-id
AICOIN_ACCESS_SECRET=your-secretScripts auto-load from cwd, , or .
.env~/.openclaw/workspace/.env~/.openclaw/.env- After configuring: The same script command will work. No code changes needed.
- MUST tell the user: AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的任何信息。如需在交易所下单,需要单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在你的本地设备 文件中,不会上传到任何服务器。
.env
当脚本返回304或403时,说明该端点需要更高的API等级。不要重试相同请求。
用用户使用的语言告知用户:
- 发生了什么:该功能需要付费的AiCoin API订阅。
- 如何获取密钥:访问https://www.aicoin.com/opendata 注册并创建API密钥。
- 等级选项:
| 等级 | 价格 | 核心权益 |
|---|---|---|
| 免费 | 0美元 | 价格、K线、热门币种(6个端点) |
| 基础版 | 29美元/月 | 新增资金费率、多空比、新闻、Twitter相关(24个端点) |
| 标准版 | 79美元/月 | 新增鲸鱼订单、信号、灰度持仓(38个端点) |
| 高级版 | 299美元/月 | 新增清算热力图、指标K线、指数、深度数据(49个端点) |
| 专业版 | 699美元/月 | 全部63个端点:AI分析、持仓量、股票、国库持仓数据 |
- 如何配置:获取密钥后,添加到文件:
.env
AICOIN_ACCESS_KEY_ID=your-key-id
AICOIN_ACCESS_SECRET=your-secret脚本会自动从当前工作目录、或加载文件。
~/.openclaw/workspace/.env~/.openclaw/.env.env- 配置完成后:相同的脚本命令即可正常使用,无需修改代码。
- 必须告知用户:AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的任何信息。如需在交易所下单,需要单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在你的本地设备 文件中,不会上传到任何服务器。 ",
.env