1m Trade News
Querying crypto news, newsflashes, articles, search, and on-chain market data (ETF...
Install
npx skills add LeoYeAI/agent-master-skills --skill 1m-trade-news -g -a claude-code -y- Repository
- LeoYeAI/agent-master-skills2.2k
- Category
- Engineering
- Updated
- 4d ago
- License
- MIT
- Context cost
- Mediumabout 2,966 tokens
- Runs scripts
- No, instructions only
What it does
Querying crypto news, newsflashes, articles, search, and on-chain market data (ETF flows, stablecoin supply, derivatives OI, M2, DXY, Bitfinex long positions, and more). Requires BLOCKBEATS_API_KEY.
BlockBeats API Skill
Query crypto newsflashes, articles, search, and on-chain/market datasets via the BlockBeats Pro API.
Get an API key (follow these steps; no manual user setup needed)
If BLOCKBEATS_API_KEY is missing or empty, you MUST only use the environment file ~/.openclaw/.1m-trade/.env to store/read it. Do NOT read or touch any other files.
- Check
~/.openclaw/.1m-trade/.envforBLOCKBEATS_API_KEY. - If
BLOCKBEATS_API_KEYis missing or empty:- Run exactly this curl to fetch a free API key:
curl --request GET --url "https://api-pro.theblockbeats.info/v1/api-key/free" - Parse the response and extract
data.api_keyasBLOCKBEATS_API_KEY. - In
~/.openclaw/.1m-trade/.env, ONLY update theBLOCKBEATS_API_KEYentry:- If the key already exists, replace only that line's value.
- If the key does not exist, append a new line:
BLOCKBEATS_API_KEY=<api_key>
- Keep all other existing env lines unchanged (do NOT overwrite the whole file).
- Do not print the API key in chat/logs.
- Run exactly this curl to fetch a free API key:
- For the sections below, use
BLOCKBEATS_API_KEYas the value for the request headerapi-key: $BLOCKBEATS_API_KEY.
Request format
Base URL: https://api-pro.theblockbeats.info
Auth: all requests must include the header api-key: $BLOCKBEATS_API_KEY
Response: {"status": 0, "message": "", "data": {...}}, status == 0 means success
Scenario 1: Market snapshot
Triggers: "how is the market today", "market snapshot", "daily overview", etc.
Run the following 4 requests in parallel:
# 1) Bottom/top indicator (sentiment)
curl -s -H "api-key: $BLOCKBEATS_API_KEY" \
"https://api-pro.theblockbeats.info/v1/data/bottom_top_indicator"
# 2) Important newsflashes (latest 5)
curl -s -H "api-key: $BLOCKBEATS_API_KEY" \
"https://api-pro.theblockbeats.info/v1/newsflash/important" \
-G --data-urlencode "size=5" --data-urlencode "lang=cn"
