Learn-skills.dev aicoin-market

This skill should be used when the user asks about crypto prices, market data, K-line charts, funding rates, open interest, long/short ratios, whale orders, liquidation data, crypto news, newsflash, Twitter crypto tweets, trending coins, stock quotes, treasury holdings, or any crypto market query. Also use when user asks about configuring or checking AiCoin API key. Use when user says: 'BTC price', 'check price', 'show K-line', 'funding rate', 'open interest', 'whale orders', 'long/short ratio', 'crypto news', 'newsflash', 'trending coins', '查行情', '看价格', '大饼多少钱', 'K线', '资金费率', '多空比', '鲸鱼单', '新闻快讯', '热门币', 'liquidation map', '配置AiCoin key', 'AiCoin API key', 'AiCoin key安全吗'. Covers 200+ exchanges with real-time data. MUST run node scripts to fetch real data. NEVER generate fake prices or hallucinate market data. IMPORTANT — AiCoin API Key: When user asks about AiCoin API key (配置/检查/安全/能不能交易), run `node scripts/coin.mjs api_key_info` FIRST, show the security_notice to user. For exchange trading (buy/sell/balance), use aicoin-trading instead. For Freqtrade strategies/backtest, use aicoin-freqtrade. For Hyperliquid whale analytics, use aicoin-hyperliquid.

install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aicoincom/coinos-skills/aicoin-market" ~/.claude/skills/neversight-learn-skills-dev-aicoin-market-2a12c7 && rm -rf "$T"
manifest: data/skills-md/aicoincom/coinos-skills/aicoin-market/SKILL.md
source content

AiCoin Market

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

Critical Rules

  1. NEVER fabricate data. Always run scripts to fetch real-time data.
  2. NEVER use curl, web_fetch, or browser for crypto data. Always use these scripts.
  3. NEVER run
    env
    or
    printenv
    — leaks API secrets into logs.
  4. Scripts auto-load
    .env
    — never pass credentials inline.
  5. Reply in the user's language. Chinese input = all-Chinese response (titles, headings, analysis).
  6. On 304/403 error — STOP, do NOT retry. This is a paid feature. Follow the Paid Feature Guide to help the user upgrade.

Quick Reference

TaskCommandMin Tier
API Key Info
node scripts/coin.mjs api_key_info
When user asks about AiCoin API key (配置/安全/能不能下单), ALWAYS run this first.
Free
BTC price
node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'
Free
K-line
node scripts/market.mjs kline '{"symbol":"btcusdt:okex","period":"3600","size":"100"}'
Free
Funding rate
node scripts/coin.mjs funding_rate '{"symbol":"BTC"}'
Basic
Long/short ratio
node scripts/features.mjs ls_ratio
Basic
Whale orders
node scripts/features.mjs big_orders '{"symbol":"btcswapusdt:binance"}'
Standard
News flash
node scripts/news.mjs flash_list '{"language":"cn"}'
Basic
Trending coins
node scripts/market.mjs hot_coins '{"key":"defi"}'
Free
Open interest
node scripts/coin.mjs open_interest '{"symbol":"BTC","interval":"15m"}'
Professional
Liquidation map
node scripts/coin.mjs liquidation_map '{"dbkey":"btcswapusdt:binance","cycle":"24h"}'
Advanced

Symbol shortcuts:

BTC
,
ETH
,
SOL
,
DOGE
,
XRP
auto-resolve in coin.mjs.

Chinese Slang: 大饼=BTC, 姨太=ETH, 狗狗=DOGE, 瑞波=XRP, 索拉纳=SOL.

Free vs Paid Endpoints

Free (built-in key, no config needed):

coin_ticker
,
kline
,
hot_coins
,
exchanges
,
pair_ticker
,
news_rss
— only 6 endpoints.

Basic ($29/mo) adds:

coin_list
,
coin_config
,
funding_rate
,
trade_data
,
ticker
,
futures_interest
,
ls_ratio
,
nav
,
pair_by_market
,
pair_list
,
news_list
,
flash_list
,
twitter/latest
,
twitter/search
,
newsflash/search
,
newsflash/list

Standard ($79/mo) adds:

big_orders
,
agg_trades
,
grayscale_trust
,
gray_scale
,
signal_alert
,
signal_config
,
strategy_signal
,
change_signal
,
depth_latest
,
newsflash
,
news_detail
,
twitter/members
,
twitter/interaction_stats
,
newsflash/detail

Advanced ($299/mo) adds:

liquidation_map
,
liquidation_history
,
liquidation
,
indicator_kline
,
indicator_pairs
,
index_list
,
index_price
,
index_info
,
depth_full
,
depth_grouped

Professional ($699/mo) adds:

ai_analysis
,
open_interest
,
estimated_liquidation
,
historical_depth
,
super_depth
,
funding_rate
(weighted),
stock_quotes
,
stock_top_gainer
,
stock_company
,
treasury_*
,
stock_market
,
signal_alert_list
,
exchange_listing

Full tier table:

docs/api-tiers.md

Setup

Scripts work out of the box with a built-in free key (6 endpoints). For more endpoints, add your API key to

.env
:

AICOIN_ACCESS_KEY_ID=your-key
AICOIN_ACCESS_SECRET=your-secret

安全说明: AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的信息。如需交易功能,需单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在本地设备

.env
文件中,不会上传到任何服务器。

.env
is auto-loaded from: cwd →
~/.openclaw/workspace/.env
~/.openclaw/.env

Scripts

All scripts:

node scripts/<name>.mjs <action> [json-params]

scripts/coin.mjs — Coin Data

ActionDescriptionMin TierParams
api_key_info
AiCoin API Key status + security notice. Run when user asks about key config/safety.FreeNone
coin_ticker
Real-time pricesFree
{"coin_list":"bitcoin,ethereum"}
coin_list
List all coinsBasicNone
coin_config
Coin profileBasic
{"coin_list":"bitcoin"}
funding_rate
Funding rate (BTC only, aggregated)Basic
{"symbol":"BTC","interval":"8h"}
Weighted: add
"weighted":"true"
(Pro). For per-exchange real-time rates, use aicoin-trading:
node scripts/exchange.mjs funding_rate '{"exchange":"binance","symbol":"BTC/USDT:USDT"}'
trade_data
Trade dataBasic
{"symbol":"btcswapusdt:okcoinfutures"}
ai_analysis
AI analysis & predictionPro
{"coin_keys":"[\"bitcoin\"]","language":"CN"}
open_interest
Open interestPro
{"symbol":"BTC","interval":"15m"}
Coin-margined: add
"margin_type":"coin"
liquidation_map
Liquidation heatmapAdv
{"symbol":"btcswapusdt:binance","cycle":"24h"}
liquidation_history
Liquidation historyAdv
{"symbol":"btcswapusdt:binance","interval":"1m"}
estimated_liquidation
Estimated liquidationPro
{"symbol":"btcswapusdt:binance","cycle":"24h"}
historical_depth
Historical depthPro
{"symbol":"btcswapusdt:okcoinfutures"}
super_depth
Large order depth >$10kPro
{"symbol":"btcswapusdt:okcoinfutures"}

scripts/market.mjs — Market Data

ActionDescriptionMin TierParams
kline
Standard K-lineFree
{"symbol":"btcusdt:okex","period":"3600","size":"100"}
period: 900/3600/14400/86400
hot_coins
Trending coinsFree
{"key":"defi"}
key: gamefi/anonymous/market/web/newcoin/stable/defi
exchanges
Exchange listFreeNone
ticker
Exchange tickersBasic
{"market_list":"okex,binance"}
futures_interest
Futures OI rankingBasic
{"language":"cn"}
depth_latest
Real-time depthStd
{"symbol":"btcswapusdt:binance"}
indicator_kline
Indicator K-lineAdv
{"symbol":"btcswapusdt:binance","indicator_key":"fundflow","period":"3600"}
indicator_pairs
Indicator pairsAdv
{"indicator_key":"fundflow"}
index_list
Index listAdvNone
index_price
Index priceAdv
{"key":"i:diniw:ice"}
index_info
Index detailsAdv
{"key":"i:diniw:ice"}
depth_full
Full order bookAdv
{"symbol":"btcswapusdt:binance"}
depth_grouped
Grouped depthAdv
{"symbol":"btcswapusdt:binance","groupSize":"100"}
stock_quotes
Stock quotesPro
{"tickers":"i:mstr:nasdaq"}
stock_top_gainer
Top gainersPro
{"us_stock":"true"}
stock_company
Company detailsPro
{"symbol":"i:mstr:nasdaq"}
treasury_entities
Holding entitiesPro
{"coin":"BTC"}
treasury_history
Transaction historyPro
{"coin":"BTC"}
treasury_accumulated
Accumulated holdingsPro
{"coin":"BTC"}
treasury_latest_entities
Latest entitiesPro
{"coin":"BTC"}
treasury_latest_history
Latest historyPro
{"coin":"BTC"}
treasury_summary
Holdings overviewPro
{"coin":"BTC"}

scripts/features.mjs — Features & Signals

ActionDescriptionMin TierParams
pair_ticker
Pair tickerFree
{"key_list":"btcusdt:okex,btcusdt:huobipro"}
ls_ratio
Long/short ratioBasicNone
nav
Market navigationBasic
{"language":"cn"}
pair_by_market
Pairs by exchangeBasic
{"market":"binance"}
pair_list
Pair listBasic
{"market":"binance","currency":"USDT"}
grayscale_trust
Grayscale trustStdNone
gray_scale
Grayscale holdingsStd
{"coins":"btc,eth"}
signal_alert
Signal alertsStdNone
signal_config
Alert configStd
{"language":"cn"}
strategy_signal
Strategy signalStd
{"signal_key":"depth_win_one"}
change_signal
Anomaly signalStd
{"type":"1"}
big_orders
Whale ordersStd
{"symbol":"btcswapusdt:binance"}
agg_trades
Aggregated large tradesStd
{"symbol":"btcswapusdt:binance"}
liquidation
Liquidation dataAdv
{"type":"1","coinKey":"bitcoin"}
signal_alert_list
Alert listProNone
stock_market
Crypto stocksProNone
delete_signal
Delete alertPro
{"id":"xxx"}

scripts/news.mjs — News & Content

ActionDescriptionMin TierParams
news_rss
RSS news feedFree
{"page":"1"}
news_list
News listBasic
{"page":"1","page_size":"20"}
flash_list
Industry flash newsBasic
{"language":"cn"}
newsflash
AiCoin flash newsStd
{"language":"cn"}
news_detail
News detailStd
{"id":"xxx"}
exchange_listing
Exchange listing announcementsPro
{"memberIds":"477,1509"}

scripts/twitter.mjs — Twitter/X Crypto Tweets

ActionDescriptionMin TierParams
latest
Latest crypto tweetsBasic
{"language":"cn","page_size":"20"}
search
Search tweetsBasic
{"keyword":"bitcoin","language":"cn","page_size":"20"}
members
Search KOL/usersStd
{"keyword":"elon","page":"1","page_size":"20"}
interaction_stats
Tweet engagement statsStd
{"flash_ids":"123,456,789"}

scripts/newsflash.mjs — Newsflash (OpenData)

ActionDescriptionMin TierParams
search
Search newsflashBasic
{"keyword":"bitcoin","page":"1","page_size":"20"}
list
Newsflash list with filtersBasic
{"page_size":"20","language":"cn"}
detail
Newsflash full contentStd
{"flash_id":"123456"}

scripts/airdrop.mjs — Airdrop (OpenData)

ActionDescriptionMin TierParams
list
Airdrop projects list (multi-source)Basic
{"source":"all","status":"ongoing","page":"1","page_size":"20","exchange":"binance"}
detail
Airdrop detail (hodler/xlaunch)Std
{"type":"hodler","token":"SIGN"}
banner
Hot airdrop bannersBasic
{"limit":"5"}
exchanges
Available exchanges and activity typesBasic
{"lan":"cn"}
calendar
Airdrop calendar (year+month required)Std
{"year":"2026","month":"3"}

Source options for list:

all
(default),
hodler
,
xlaunch
,
earncoin
,
alpha
,
bitget_launchpool
,
bitget_poolx

scripts/drop_radar.mjs — Drop Radar (OpenData)

ActionDescriptionMin TierParams
list
Project list with filtersBasic
{"page":"1","page_size":"20","status":"CONFIRMED","keyword":"airdrop"}
detail
Project detailBasic
{"airdrop_id":"xxx"}
widgets
Statistics overviewBasic
{"lan":"cn"}
filters
Available filter optionsBasic
{"lan":"cn"}
events
Project event calendarStd
{"airdrop_id":"xxx"}
team
Project team membersStd
{"airdrop_id":"xxx"}
x_following
Project X following listStd
{"airdrop_id":"xxx"}
status_changes
Recent status changesStd
{"days":"7","page":"1","page_size":"20"}
tweets
Search project tweetsStd
{"keywords":"bitcoin,airdrop","page_size":"20"}

Cross-Skill References

NeedUse
Exchange trading (buy/sell/balance)aicoin-trading
Freqtrade strategies/backtest/deployaicoin-freqtrade
Hyperliquid whale trackingaicoin-hyperliquid

Common Errors

  • errorCode 304 / HTTP 403
    — Paid feature. Follow Paid Feature Guide below.
  • Invalid symbol
    — Check format: AiCoin uses
    btcusdt:okex
    , not
    BTC/USDT
  • Rate limit exceeded
    — Wait 1-2s between requests; use batch queries

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):

  1. What happened: This feature needs a paid AiCoin API subscription.
  2. How to get a key: Visit https://www.aicoin.com/opendata to register and create an API key.
  3. Tier options:
TierPriceHighlights
Free$0Prices, 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/moAll 63 endpoints: AI analysis, OI, stocks, treasury
  1. How to configure: After getting a key, add to
    .env
    file:
AICOIN_ACCESS_KEY_ID=your-key-id
AICOIN_ACCESS_SECRET=your-secret

Scripts auto-load

.env
from cwd,
~/.openclaw/workspace/.env
, or
~/.openclaw/.env
.

  1. After configuring: The same script command will work. No code changes needed.
  2. MUST tell the user: AiCoin API Key 仅用于获取市场数据(行情、K线、新闻等),无法进行任何交易操作,也无法读取你在交易所的任何信息。如需在交易所下单,需要单独到交易所申请交易 API Key(见 aicoin-trading skill)。所有密钥仅保存在你的本地设备
    .env
    文件中,不会上传到任何服务器。