{"slug":"coinofut-compute-fly-dev-x402-compute-reading-013974","title":"Market regime reading for a perpetual futures market, computed from the candles ","host":"coinofut-compute.fly.dev","method":"POST","resource":"https://coinofut-compute.fly.dev/x402/compute/reading","category":"market","description":"Market regime reading for a perpetual futures market, computed from the candles and open interest YOU send (no market data is supplied). Returns the price x open interest regime, spot vs perp taker flow, funding class, perp/spot basis, move quality and robust z-scores, with the thresholds used. Dete","price_listed":0.02,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"oi":[[1793667600000,81250.4],[1793671200000,81710.9]],"perp":[[1793664000000,68000,68400,67900,68250,152000000,80100000],[1793667600000,68250,68600,68100,68500,141000000,75300000],[1793671200000,68500,68700,68200,68300,120000000,57800000]],"tf":"1h"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"asOf":{"description":"Computation time (ms UTC), within the last candle; default: its close time","type":"integer"},"funding":{"additionalProperties":false,"properties":{"history":{"items":{"type":"number"},"maxItems":1000,"type":"array"},"intervalHours":{"default":8,"enum":[1,2,4,8],"type":"integer"},"rate":{"maximum":0.1,"minimum":-0.1,"type":"number"}},"required":["rate"],"type":"object"},"liquidations":{"additionalProperties":false,"properties":{"events":{"items":{"description":"[t, \"long\"|\"short\" (liquidated side), price, usd]","maxItems":4,"minItems":4,"type":"array"},"maxItems":5000,"type":"array"},"since":{"description":"Start of observation (ms UTC)","type":"integer"}},"required":["since","events"],"type":"object"},"lookback":{"default":12,"description":"Window in candles","maximum":96,"minimum":3,"type":"integer"},"oi":{"description":"Open interest points, strictly increasing time","items":{"description":"[time ms UTC, open interest in contracts]","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":5000,"minItems":2,"type":"array"},"perp":{"description":"Perpetual candles, contiguous, oldest first","items":{"description":"[openTime ms UTC, open, high, low, close, quoteVolume, takerBuyQuoteVolume]","items":{"type":"number"},"maxItems":7,"minItems":7,"type":"array"},"maxItems":1000,"minItems":2,"type":"array"},"spot":{"description":"Spot candles on the same grid (optional)","items":{"description":"[openTime ms UTC, open, high, low, close, quoteVolume, takerBuyQuoteVolume]","items":{"type":"number"},"maxItems":7,"minItems":7,"type":"array"},"maxItems":1000,"minItems":11,"type":"array"},"spotMult":{"description":"Contract multiplier vs spot (e.g. 1000), requires spot","exclusiveMinimum":0,"type":"number"},"tf":{"description":"Candle interval","enum":["1m","5m","15m","1h","4h"],"type":"string"}},"required":["tf","perp","oi"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"description":"Reading: regime, flow, funding, basis, quality, z-scores, thresholds (see documentation)","type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Market regime reading for a perpetual futures market, computed from the candles and open interest YOU send (no market data is supplied). Returns the price x open interest regime, spot vs perp taker flow, funding class, perp/spot basis, move quality and robust z-scores, with the thresholds used. Deterministic and rule-based: same input, same output. Not investment advice. No charge on invalid input or insufficient history.","last_updated":"2026-11-18T23:14:59.431Z","schemes":["exact"]}