TRADEFLAGS 交易提示 TERMINAL · 實時 · · 27 數據包 · 4 定價套餐 · 免費套餐
*DELAYED 15M*
SPY 690.43 -0.15%
VIX 31.49 -12.26%
UST10Y 4.94 0bp
USDJPY 159.28 +0.43%
BTC 63802.52 +4.32%
GOLD 3619.30 +2.96%
WTI 81.57 -2.87%
DXY 104.06 +0.24%

TRADEFLAGS 交易提示 · QUANTITATIVE DATA INFRASTRUCTURE AI 智能體就緒

TF> list packages
Docs / Quickstart

Quickstart

Install the MCP server, issue a key, make your first call.

1. 取得 API 密鑰

在 api.tradeflags.com/account 登入,並按下 取得 API 密鑰。免費級別每月允許 1,000 次調用,無需信用卡;付費級別載於 速率限制 頁面。請妥善保管密鑰 — 它是您的智能體所需的唯一憑證。

2. 連接您的智能體

TradeFlags MCP 伺服器是一個遠端端點。連接一次,即可使用全部 35 個工具。這些工具按數據包(波動率曲面、累計期權、網絡、廣度、…)分組以便探索,但單一連接即可使用整個目錄 — 無需按數據包個別安裝。

Claude Code

在您的專案根目錄,透過 CLI 加入伺服器:

claude mcp add tradeflags --transport http \
  --url https://api.tradeflags.com/mcp \
  --header "Authorization: Bearer ***"

…或在專案根目錄建立 .mcp.json:

{
  "mcpServers": {
    "tradeflags": {
      "type": "http",
      "url": "https://api.tradeflags.com/mcp",
      "headers": { "Authorization": "Bearer tf_live_YOUR_KEY" }
    }
  }
}

Hermes

在 ~/.hermes/config.yaml 的 mcp_servers 之下加入伺服器:

mcp_servers:
  tradeflags:
    url: "https://api.tradeflags.com/mcp"
    headers:
      Authorization: "Bearer tf_live_YOUR_KEY"

重新啟動智能體。其工具會以 mcp_tradeflags_* 形式出現。

3. 實作範例

為累計期權定價

要求您的智能體以一隻股票及一個變體調用 accumulator__price:

Price a ko_fixed accumulator on 0700 at 2.0x leverage.

該工具會將結構求解至淨零 NPV,並返回現貨價、累計水平、敲出障礙、NPV 及希臘值。當您想自行設定行使價、障礙及基礎水平,而非讓求解器代為挑選時,請使用 otc_pricing__price。

請求數據序列

要求 ads__index 以取得最新的 Aruoba-Diebold-Scotti 商業狀況讀數及其狀態。每個工具都會說明其單位及所描述的時段,因此智能體無需查閱 schema 即可知道所取得的內容。

評估投資決策

智能體會組合多個工具。若要衡量是否進軍香港股票,它可以取得 ads__index(美國商業週期)、moirai__forecast(香港分佈預測)及 network__valuation(同業相對估值),並綜合三者。以下提示即為可使用的格式。

4. 範例提示

I am considering adding Hong Kong equities to a portfolio this month.
Using the TradeFlags MCP tools, walk me through the current picture:
1. ads__index — what is the US business-cycle regime right now?
2. moirai__forecast — what is the P10 / median / P90 HK outlook over the next 30 days?
3. network__valuation — which sectors look cheapest relative to their peers?
Then give me a one-paragraph, clearly-caveated read on whether the risk/reward
favours waiting, and cite the numbers you used for each conclusion.

5. 查看您的收費

每次調用都會按您的級別計量收費,而您的用量可在帳戶頁面查看。請參閱 速率限制 了解各級別及計費規則。

下一步

  • MCP 工具 — 完整的 35 個工具目錄。
  • 數據包 — 工具的組合方式。
  • 錯誤 — 調用失敗時的處理方法。