{"uid":"cap_QGSh5lYfYS5dL6EZFhMq1","slug":"gloom-perpetuals-market-history-658efeb4","name":"Gloom Perpetuals Market History","description":"Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.","url":"https://api.gloom.sh/v1/perps/markets/%7BmarketId%7D/history?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","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.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yHcw7Q7i7VjTFOtuFsXia","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves historical trading data for a specific perpetuals (perps) market on the Gloom finance terminal","exampleAgentPrompt":"Pull the historical trading data for the BTC-PERP market from Gloom so I can see how price has moved over time.","exampleUseCases":[{"title":"Backtest a perpetuals trading strategy","prompt":"Give me the full price history for the ETH-PERP market on Gloom so I can backtest my momentum trading strategy against it."},{"title":"Chart a perps market's price movement","prompt":"Fetch the historical data for the SOL perpetuals market from Gloom and show me how the price has trended over the past month."},{"title":"Compare perps market volatility periods","prompt":"Get me the historical data for the BTC-PERP market on Gloom — I want to identify the most volatile periods in the last quarter."}],"resultDescription":"Returns a JSON object with a `data` array containing historical records for the specified perpetuals market, likely including timestamps, prices, volumes, or funding rate snapshots.","failureModes":["Invalid or unknown marketId returns empty data array or 404","Malformed request with missing marketId path parameter returns error","Payment failure (x402) if USDC funds are insufficient for the $0.06 per-call cost","Rate limiting or service unavailability returning 5xx errors","No historical data available for newly listed markets returning empty data array"],"whenToPreferThis":"Use this endpoint when you need historical time-series data specifically for perpetuals (derivatives) markets tracked by the Gloom open-source finance terminal. Prefer this over spot market endpoints when analyzing leveraged derivatives instruments. It is most useful for backtesting, charting, and volatility analysis of crypto perps pairs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:44.156Z","isFirstParty":false,"canonicalSlug":"gloom-perpetuals-market-history-658efeb4"}