{"uid":"cap_d5FfCMC9oeavpbUuxxoSX","slug":"market2000-xyz-portfolio-factors-7a5feac0","name":"market2000.xyz Portfolio Factors","description":"Portfolio Factors — price-based factor decomposition of a book (clean_prices.db).\n\nHOW TO CALL:\n  GET /api/portfolio-factors?holdings=xyz:NVDA:1000,BTC:500\n\nPARAMETERS:\n  holdings — TICKER:weight pairs, HL-format tickers (required)\n  lookback — estimation window in days, 60–250 (default 120)\n\nRESPONSE: notional-weighted momentum, trend, book beta to S&P 500 and BTC.\n\nPRICING: $0.05 per call.","url":"https://market2000.xyz/api/portfolio-factors","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["holdings"],"properties":{"holdings":{"type":"string","description":"TICKER:weight pairs, HL-format, e.g. 'xyz:NVDA:1000,BTC:500'"},"lookback":{"type":"integer","default":120,"description":"Estimation window in days (60–250)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T2i9GQQo7Arb6icqzl3mY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decomposes a portfolio of holdings into price-based factors including momentum, trend, and beta to S&P 500 and BTC.","exampleAgentPrompt":"Break down my portfolio — I'm holding 1000 notional in NVDA and 500 in BTC — into momentum, trend, and beta factors relative to the S&P 500 and BTC using a 90-day lookback window.","exampleUseCases":[{"title":"Portfolio risk factor check","prompt":"I have 2000 notional in NVDA and 1000 in BTC — can you tell me the momentum, trend, and market beta exposures of this book over the last 90 days?"},{"title":"Crypto beta exposure audit","prompt":"How much BTC beta does my book carry? I'm holding 500 in BTC and 1500 in NVDA, using a 180-day lookback."},{"title":"Pre-trade factor impact analysis","prompt":"Before I add NVDA to my BTC position, can you run a factor decomposition on a hypothetical book of 800 NVDA and 200 BTC so I can see how it would shift my momentum and trend exposure?"}],"resultDescription":"Returns notional-weighted factor scores for the submitted portfolio, including momentum, trend, beta to S&P 500, and beta to BTC — giving a quantitative breakdown of the book's systematic risk and style exposures.","failureModes":["Missing 'holdings' parameter returns an error requiring ticker:weight pairs","Invalid ticker format or unsupported tickers may return empty or partial results","Lookback value outside 60–250 range may be rejected or clamped","Payment failure (x402) if USDC payment is not properly submitted","Database (clean_prices.db) may lack price history for exotic or newly listed tickers"],"whenToPreferThis":"Use this endpoint when you need a quantitative factor decomposition of a multi-asset portfolio, particularly one mixing equities and crypto. It is purpose-built for momentum, trend, and dual-beta (S&P 500 + BTC) analysis in a single call, making it ideal for agents managing mixed books or performing pre-trade risk checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:41:40.344Z","isFirstParty":false}