{"message":"NEPSE Floorsheet Analytics API (v1.2.2)","source":"https://staging-api.sran.com.np/api/v1/floorsheet","storage_mode":"derived_only","raw_trades_stored":false,"snapshots":["opening","midday","closing"],"default_snapshot":"closing","source_snapshot_values":{"opening":"opening","midday":"mid-day","closing":"closing"},"source_cutoffs_exclusive_npt":{"opening":"11:01:00","midday":"13:00:00","closing":"15:00:00"},"endpoints":{"GET /health":"Service + database health and data freshness","GET /stocks":"Symbols available (params: business_date, snapshot)","GET /dates":"Recent dates (params: limit, snapshot)","GET /summary/{symbol}":"Analytics + AI summary (params: business_date, snapshot)","GET /metrics/{symbol}":"OHLC / volume / VWAP (params: business_date, snapshot)","GET /brokers/{symbol}":"Broker flows (params: business_date, snapshot, top)","GET /history/{symbol}":"Daily metrics history (params: days)","GET /signals":"Fired signals (params: business_date, snapshot, rule_name, severity, page, size)","POST /chat":"Follow-up question answered from cached analytics (live AI)","GET /rules":"List pattern-detection rules","POST /rules":"Create or update a rule [admin]","POST /rules/toggle":"Enable or disable a rule [admin]","POST /backtest":"Dry-run a rule over recent sessions [admin]","POST /run-pipeline":"Load + analyse + summarise a date, end to end (background) [admin]","POST /collect":"Fetch a date and store compact deterministic metrics [admin]","POST /backfill":"Run the pipeline over a date range (background) [admin]","POST /regenerate-summary":"Regenerate AI summaries for a date [admin]","GET /pipeline-status":"Progress for one date + snapshot — poll this","GET /stale-analytics":"Dates whose baselines are thinner than now possible","GET /schema-check":"Verify tables, SQL functions and rules are installed"},"docs":"/docs"}