get_latest_brief
Latest MacroTape brief
Latest MacroTape market brief (newest weekday AM/PM edition): U.S. Treasury par curve, spreads and curve shape; every ECB currency vs USD with top movers and dollar breadth. format=text gives one compact line (cheapest), json the full structured brief. Needs an API key: send 'Authorization: Bearer <key>' or 'X-API-Key: <key>' on the HTTP connection. Counts against the key's daily limit. Quote each section's as_of; not investment advice.
输入参数format
get_brief_by_date
MacroTape brief for a date
A past MacroTape brief by date (YYYY-MM-DD, U.S. weekdays) and optional edition (am|pm; omit for the newest edition that day). List available dates with the open /api/index.json. Needs an API key: send 'Authorization: Bearer <key>' or 'X-API-Key: <key>' on the HTTP connection. Counts against the key's daily limit.
输入参数date必填formatedition
list_topics
List MacroTape topics
Every queryable subject (each Treasury tenor and spread, FX pair, aggregate) with its JSON field path, unit and source. Open, no API key needed.
无需输入参数。
get_sample
Free MacroTape sample
Free headline sample of the latest brief (2Y/10Y, 2s10s, curve shape, EURUSD/USDJPY). Open, no API key needed. format=text gives one compact line.
输入参数format
list_alert_webhooks
List MacroTape webhook alerts
List the webhook alert hooks registered for your API key (no secrets), your plan and hook limit. Needs an API Light, Pro or internal key in 'Authorization: Bearer <key>' (trial keys get 403). Informational market data only; not investment advice.
无需输入参数。
register_alert_webhook
Register a MacroTape webhook alert
Register an https URL to receive signed JSON alerts when the 10-year Treasury par yield moves more than 10 bp vs the prior close or MacroTape's computed DXY-style index from ECB reference rates (not the ICE U.S. Dollar Index) moves more than 1%. Returns the signing secret ONCE (header MacroTape-Signature: t=..,v1=HMAC-SHA256(secret, t + '.' + body)). Needs an API Light, Pro or internal key in 'Authorization: Bearer <key>' (trial keys get 403). Informational market data only; not investment advice.
输入参数url必填eventsdescription
delete_alert_webhook
Delete a MacroTape webhook alert
Delete one of your webhook alert hooks by id (wh_...). Needs an API Light, Pro or internal key in 'Authorization: Bearer <key>' (trial keys get 403). Informational market data only; not investment advice.
输入参数id必填
test_alert_webhook
Send a test ping to a MacroTape webhook
Send one signed test.ping event to one of your hooks now and report the receiver's HTTP status. A successful ping re-enables a disabled hook. Needs an API Light, Pro or internal key in 'Authorization: Bearer <key>' (trial keys get 403). Informational market data only; not investment advice.
输入参数id必填
get_history
MacroTape daily history for one topic
Daily history for one MacroTape topic: U.S. Treasury par yields (14 tenors, 1M-30Y) and 5 curve spreads since Jan 2, 2025; 29 USD FX pairs from ECB reference rates and MacroTape's computed DXY-style index (ECB rates, not the ICE U.S. Dollar Index) for the last year. days = calendar days back from the latest date (trial keys up to 30, API Light 365, API Pro the full series). Rows are [date, value]; quote the source and dates. Needs an API key ('Authorization: Bearer <key>'); counts as 1 request. Informational market data only; not investment advice.
输入参数daystopic必填