{"openapi":"3.1.0","info":{"title":"Automated Market & Trend Data Feed (Clean JSON)","description":"Clean JSON market and trend intelligence for autonomous agents. Commercial routes serve a precompiled feed from cache; each call costs 0.01 USDC and is accepted through Skyfire (kyapay-token header) or Coinbase x402 v2 (X-402-Payment-Receipt header). Query parameters never trigger live compilation.","version":"2.2.0"},"paths":{"/health":{"get":{"tags":["meta"],"summary":"Service health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}},"security":[]}},"/v1/pricing":{"get":{"tags":["meta"],"summary":"Per-call pricing and payment rails","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingResponse"}}}}},"security":[]}},"/v1/market/trends":{"get":{"tags":["market"],"summary":"Market regime, momentum leaders and laggards","operationId":"market_trends_v1_market_trends_get","responses":{"200":{"description":"Precompiled trend intelligence","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketTrendsResponse"}}}},"503":{"description":"Feed not compiled yet or cache unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Payment required. The x402 v2 envelope is returned in the body and, Base64-encoded, in the Payment-Required header.","headers":{"Payment-Required":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}}}},"security":[{"SkyfireToken":[]}],"x-x402":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}},"/v1/data":{"get":{"tags":["market"],"summary":"All tracked items with momentum scores","operationId":"data_list_v1_data_get","responses":{"200":{"description":"Precompiled item list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataListResponse"}}}},"503":{"description":"Feed not compiled yet or cache unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Payment required. The x402 v2 envelope is returned in the body and, Base64-encoded, in the Payment-Required header.","headers":{"Payment-Required":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}}}},"security":[{"SkyfireToken":[]}],"x-x402":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}},"/v1/data/{item_id}":{"get":{"tags":["market"],"summary":"One tracked item by id","operationId":"data_item_v1_data__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9:._-]{0,63}$","title":"Item Id"}}],"responses":{"200":{"description":"Precompiled single item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataItemResponse"}}}},"404":{"description":"Unknown item id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Feed not compiled yet or cache unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. The x402 v2 envelope is returned in the body and, Base64-encoded, in the Payment-Required header.","headers":{"Payment-Required":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"},"example":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}}}},"security":[{"SkyfireToken":[]}],"x-x402":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]}}}},"components":{"schemas":{"Breadth":{"properties":{"bullish":{"type":"integer","minimum":0.0,"title":"Bullish"},"bearish":{"type":"integer","minimum":0.0,"title":"Bearish"},"neutral":{"type":"integer","minimum":0.0,"title":"Neutral"}},"additionalProperties":false,"type":"object","required":["bullish","bearish","neutral"],"title":"Breadth"},"DataItemResponse":{"properties":{"metadata":{"$ref":"#/components/schemas/FeedMetadata"},"item":{"$ref":"#/components/schemas/TrendItem"}},"additionalProperties":false,"type":"object","required":["metadata","item"],"title":"DataItemResponse"},"DataListResponse":{"properties":{"metadata":{"$ref":"#/components/schemas/FeedMetadata"},"items":{"items":{"$ref":"#/components/schemas/TrendItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["metadata","items"],"title":"DataListResponse"},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"additionalProperties":false,"type":"object","required":["code","message"],"title":"ErrorDetail"},"ErrorEnvelope":{"properties":{"status":{"type":"string","const":"error","title":"Status","default":"error"},"error":{"$ref":"#/components/schemas/ErrorDetail"}},"additionalProperties":false,"type":"object","required":["error"],"title":"ErrorEnvelope"},"FeedMetadata":{"properties":{"schema_version":{"type":"string","const":"1.0","title":"Schema Version","default":"1.0"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"valid_until":{"type":"string","format":"date-time","title":"Valid Until"},"item_count":{"type":"integer","minimum":0.0,"title":"Item Count"},"intelligence":{"type":"string","enum":["deepseek-v3","deterministic_fallback"],"title":"Intelligence"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"sources":{"items":{"$ref":"#/components/schemas/SourceStatus"},"type":"array","title":"Sources"}},"additionalProperties":false,"type":"object","required":["generated_at","valid_until","item_count","intelligence","sources"],"title":"FeedMetadata"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"service":{"type":"string","title":"Service"},"version":{"type":"string","title":"Version"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"redis":{"type":"boolean","title":"Redis"},"feed_generated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Feed Generated At"}},"additionalProperties":false,"type":"object","required":["status","service","version","timestamp","redis"],"title":"HealthResponse"},"MarketTrendsResponse":{"properties":{"metadata":{"$ref":"#/components/schemas/FeedMetadata"},"market_regime":{"type":"string","enum":["risk_on","risk_off","mixed"],"title":"Market Regime"},"summary":{"type":"string","title":"Summary"},"breadth":{"$ref":"#/components/schemas/Breadth"},"average_momentum_score":{"type":"number","title":"Average Momentum Score"},"themes":{"items":{"$ref":"#/components/schemas/Theme"},"type":"array","title":"Themes"},"leaders":{"items":{"$ref":"#/components/schemas/TrendItem"},"type":"array","title":"Leaders"},"laggards":{"items":{"$ref":"#/components/schemas/TrendItem"},"type":"array","title":"Laggards"}},"additionalProperties":false,"type":"object","required":["metadata","market_regime","summary","breadth","average_momentum_score","themes","leaders","laggards"],"title":"MarketTrendsResponse"},"PricingResponse":{"properties":{"status":{"type":"string","title":"Status"},"price_per_call_usdc":{"type":"string","title":"Price Per Call Usdc"},"atomic_units":{"type":"string","title":"Atomic Units"},"decimals":{"type":"integer","title":"Decimals"},"network":{"type":"string","title":"Network"},"asset":{"type":"string","title":"Asset"},"pay_to":{"type":"string","title":"Pay To"},"protected_routes":{"items":{"type":"string"},"type":"array","title":"Protected Routes"},"gateways":{"additionalProperties":true,"type":"object","title":"Gateways"},"x402":{"additionalProperties":true,"type":"object","title":"X402"}},"additionalProperties":false,"type":"object","required":["status","price_per_call_usdc","atomic_units","decimals","network","asset","pay_to","protected_routes","gateways","x402"],"title":"PricingResponse"},"SourceStatus":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["ok","failed"],"title":"Status"},"item_count":{"type":"integer","minimum":0.0,"title":"Item Count"}},"additionalProperties":false,"type":"object","required":["name","status","item_count"],"title":"SourceStatus"},"Theme":{"properties":{"label":{"type":"string","title":"Label"},"momentum_score":{"type":"integer","maximum":100.0,"minimum":-100.0,"title":"Momentum Score"},"item_ids":{"items":{"type":"string"},"type":"array","title":"Item Ids"}},"additionalProperties":false,"type":"object","required":["label","momentum_score","item_ids"],"title":"Theme"},"TrendItem":{"properties":{"item_id":{"type":"string","pattern":"^[a-z0-9][a-z0-9:._-]{0,63}$","title":"Item Id"},"symbol":{"type":"string","title":"Symbol"},"name":{"type":"string","title":"Name"},"category":{"type":"string","enum":["equity","crypto","commodity","index","rate","fx"],"title":"Category"},"source":{"type":"string","enum":["yahoo_finance","coingecko"],"title":"Source"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"change_pct_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct 24H"},"change_pct_7d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct 7D"},"trending_rank":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Trending Rank"},"momentum_score":{"type":"integer","maximum":100.0,"minimum":-100.0,"title":"Momentum Score"},"direction":{"type":"string","enum":["bullish","bearish","neutral"],"title":"Direction"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence"},"tags":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Tags"},"as_of":{"type":"string","format":"date-time","title":"As Of"}},"additionalProperties":false,"type":"object","required":["item_id","symbol","name","category","source","momentum_score","direction","confidence","as_of"],"title":"TrendItem"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"SkyfireToken":{"type":"apiKey","in":"header","name":"kyapay-token","description":"Skyfire pay or kya-pay token. Coinbase x402 v2 clients may instead answer the 402 challenge with the X-402-Payment-Receipt header.","x-skyfire-token-type":["pay","kya-pay"]}}},"servers":[{"url":"https://trend.rdxdata.xyz","description":"Production Macro Commodities Subdomain Server"}],"security":[{"SkyfireToken":[]}],"x-skyfire-token-type":["pay","kya-pay"],"x-x402":{"x402Version":2,"error":"Payment required","resource":{"url":"https://trend.rdxdata.xyz","description":"Automated Market & Trend Data Feed: clean JSON trend indicators, directional momentum scores and metadata for equities, crypto, commodities and macro benchmarks, compiled for autonomous agents.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"10000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}]},"x-agent-discovery":{"pricing":"/v1/pricing","paid_routes":["/v1/market/trends","/v1/data","/v1/data/{item_id}"],"skyfire_header":"kyapay-token","x402_receipt_header":"X-402-Payment-Receipt","x402_challenge_header":"Payment-Required"}}