← 返回
未分类 Key 中文

Matic Trades

Matic Trades API — AI toolbox (AI_PICK), Twelve Data (SMART_SEARCH), autonomous charting. Use for stocks, crypto, indicators, charts, news, sentiment. Trigge...
Matic Trades API — AI toolbox (AI_PICK), Twelve Data (SMART_SEARCH), autonomous charting. Use for stocks, crypto, indicators, charts, news, sentiment. Trigge...
ortmind ortmind 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 322
下载
💾 0
安装
1
版本
#latest

概述

Matic Trades

This skill tells you how to call Matic Trades from OpenClaw using the bundled script. Keep instructions short: run the script, pass the user’s words as --prompt, return a clear summary (and image URLs when present).

How OpenClaw uses this

  • Skills are markdown + optional files; the model follows this file when the task matches the description.
  • Prefer python3 "{baseDir}/scripts/matic.py" … so requests stay consistent with the real API (no hand-rolled JSON in chat).
  • After the script prints JSON, summarize for the user; don’t dump raw JSON unless they ask.

Docs: OpenClaw — Creating skills, Skills loading.

Config

VariableRequiredPurpose
-----------------------------
MATIC_API_KEYYesBearer token (same as dashboard API key). Alias: MATIC_TRADES_API_KEY.
MATIC_TRADES_API_BASENoDefault https://api.matictrades.com/api/v1 (no trailing slash). Override if your deployment uses another host.

Never print or log the API key.


1) Toolbox — AI_PICK (default for “use Matic tools”)

What the API does: POST /toolbox/execute with mode: AI_PICK. The server uses the prompt alone to decide which tools to run (e.g. chart_analysis, market_news, social_search), then executes them. context is not required and is not what drives tool selection in normal use—put everything important in the prompt (tickers, timeframe, what they want).

Minimal request body (this is correct):

{ "mode": "AI_PICK", "prompt": "User’s full request in natural language" }

Run:

python3 "{baseDir}/scripts/matic.py" toolbox --prompt "USER_TEXT_HERE"

Examples (prompt-only):

  • toolbox --prompt "Unusual options activity and any relevant news today"
  • toolbox --prompt "Chart and sentiment for NVDA — focus on near-term levels"
  • toolbox --prompt "Crypto whale moves and what people are saying on social"

Do not require or invent a context object for AI_PICK unless you are implementing a documented advanced API feature (e.g. custom_handlers from Matic’s API docs). For ClawHub users, prompt-only is the supported path.


2) Data — SMART_SEARCH (Twelve Data via natural language)

What the API does: POST /data/execute with mode: SMART_SEARCH. The server maps the prompt to an allowed Twelve Data endpoint and parameters.

Run:

python3 "{baseDir}/scripts/matic.py" data --prompt "USER_TEXT_HERE"

Optional hints only if the user gave them: --symbol AAPL, --interval 1day. The API still centers on prompt for SMART_SEARCH.


3) Agent charting — autonomous charts + analysis

What the API does: POST /agent/chart/autonomous — multi-step chart agent; can return image URLs or base64 in snapshots.

Run:

python3 "{baseDir}/scripts/matic.py" chart --prompt "USER_TEXT_HERE" --images url

Use --images url when the client can open links; b64 or both if the UI supports inline images.

Optional: --max-actions N, --model MODEL (see references/api.md).


Which command when?

User goalCommand
--------------------
Broad research, multiple possible tools, news/social/chart mixtoolbox (AI_PICK, prompt only)
“Get RSI / price / indicator / series for …” in plain Englishdata (SMART_SEARCH)
“Walk through charts”, “show me the chart”, visual narrativechart

Chaining: Only if it clearly helps—e.g. data for numbers, then toolbox for synthesis, or chart for visuals. Avoid redundant double calls.


Response handling

  • Parse JSON stdout; explain tool_runs / analysis / data in plain language.
  • If snapshots.pre_url, snapshots.post_url, or URLs appear in outputs, give the user those links.

Errors

  • 401 — Missing/wrong MATIC_API_KEY.
  • 429 — Rate limit; slow down or check plan.
  • Quota / billing messages — Point to Matic dashboard.

Files

  • references/api.md — request/response shapes.
  • README.md — install, ClawHub upload, env setup.

Scope

Only call matic.py with user-supplied prompt text (sanitized for shell if needed). HTTP targets only MATIC_TRADES_API_BASE paths used by this script. No arbitrary curl to other hosts with user data.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,424
data-analysis

Stock Analysis

udiedrichsen
利用Yahoo Finance数据深度分析股票和加密货币。支持投资组合管理、关注列表与提醒、股息分析、八维度股票评分、热门趋势扫描(热点扫描器)及谣言/早期信号检测。适用于股票分析、投资组合追踪、财报反应、加密货币监控、热门股票发现及在主流
★ 281 📥 58,036
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 275 📥 101,204