{"openapi":"3.1.0","info":{"title":"Candlestick Pattern API","version":"1.0.0","description":"Live candlestick-pattern recognition that traders and trading bots run on OHLC candles — computed on demand, no key, nothing cached. Detect the patterns that complete on the last candle of a series; scan a whole series for every pattern occurrence with its position; or list the 24 supported patterns. Each match carries a bullish, bearish or neutral signal. Works for any market — forex, stocks, crypto or commodities. A pattern-recognition engine, distinct from numeric-indicator and support-resistance tools: it turns raw candles into the reversal and continuation signals a chartist reads.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/candlestick-api","description":"oanor gateway"}],"tags":[{"name":"Candlestick"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/detect":{"get":{"operationId":"get_v1_detect","tags":["Candlestick"],"summary":"Patterns completing on the last candle","description":"","parameters":[{"name":"candles","in":"query","required":true,"description":"OHLC candles open:high:low:close, comma-separated, oldest first","schema":{"type":"string"},"example":"10:11:9.8:10.8,10.4:11.6:10.3:11.4,11:12.2:10.9:12"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"bias":"bullish","count":1,"source":"CANDLESTICK","at_index":2,"patterns":[{"name":"Three White Soldiers","type":"bullish","candles":3}],"candles_in":3,"last_candle":{"c":12,"h":12.2,"l":10.9,"o":11}},"meta":{"timestamp":"2026-06-10T22:56:10.971Z","request_id":"3fcb98e2-cfa2-4609-8de8-99862502359a"},"status":"ok","message":"Patterns detected","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Candlestick"],"summary":"Service metadata and endpoint list","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"candles = open:high:low:close, comma-separated, oldest first (e.g. candles=10:11:9.5:9.6,9.6:9.7:9:9.65,9.6:10.2:9.5:10.1).","source":"Computed in-process from caller-supplied OHLC candles (no upstream)","service":"candlestick-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/scan":"Every pattern occurrence across the series with its index (candles=...).","GET /v1/detect":"Patterns completing on the last candle (candles=o:h:l:c,...).","GET /v1/patterns":"List the supported candlestick patterns."},"description":"Live candlestick-pattern recognition computed on demand from OHLC candles. The detect endpoint returns the patterns that complete on the last candle of a series; the scan endpoint finds every pattern occurrence across the whole series with its position; the patterns endpoint lists the 24 supported patterns. Each match carries a bullish / bearish / neutral signal. Works for any market — forex, stocks, crypto or commodities. A pattern-recognition engine, distinct from numeric-indicator and support-resistance tools.","upstream_status":"ok"},"meta":{"timestamp":"2026-06-10T22:56:11.067Z","request_id":"ced99e21-7f44-44b1-ad51-48d6e149a4a4"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/patterns":{"get":{"operationId":"get_v1_patterns","tags":["Candlestick"],"summary":"List the supported candlestick patterns","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Pass candles as open:high:low:close, comma-separated, oldest first. A pattern needs at least its 'candles' count of bars.","count":22,"source":"CANDLESTICK","patterns":[{"name":"Doji","type":"neutral","candles":1},{"name":"Dragonfly Doji","type":"bullish","candles":1},{"name":"Gravestone Doji","type":"bearish","candles":1},{"name":"Bullish Marubozu","type":"bullish","candles":1},{"name":"Bearish Marubozu","type":"bearish","candles":1},{"name":"Hammer","type":"bullish","candles":1},{"name":"Hanging Man","type":"bearish","candles":1},{"name":"Inverted Hammer","type":"bullish","candles":1},{"name":"Shooting Star","type":"bearish","candles":1},{"name":"Spinning Top","type":"neutral","candles":1},{"name":"Bullish Engulfing","type":"bullish","candles":2},{"name":"Bearish Engulfing","type":"bearish","candles":2},{"name":"Bullish Harami","type":"bullish","candles":2},{"name":"Bearish Harami","type":"bearish","candles":2},{"name":"Piercing Line","type":"bullish","candles":2},{"name":"Dark Cloud Cover","type":"bearish","candles":2},{"name":"Tweezer Bottom","type":"bullish","candles":2},{"name":"Tweezer Top","type":"bearish","candles":2},{"name":"Morning Star","type":"bullish","candles":3},{"name":"Evening Star","type":"bearish","candles":3},{"name":"Three White Soldiers","type":"bullish","candles":3},{"name":"Three Black Crows","type":"bearish","candles":3}]},"meta":{"timestamp":"2026-06-10T22:56:11.169Z","request_id":"7c641223-9def-48f6-896b-2e11bb51d5c5"},"status":"ok","message":"Patterns listed","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/scan":{"get":{"operationId":"get_v1_scan","tags":["Candlestick"],"summary":"Every pattern occurrence across the series","description":"","parameters":[{"name":"candles","in":"query","required":true,"description":"OHLC candles open:high:low:close, comma-separated, oldest first","schema":{"type":"string"},"example":"10:11:9.8:10.8,10.4:11.6:10.3:11.4,11:12.2:10.9:12"},{"name":"limit","in":"query","required":false,"description":"Max occurrences returned (default 200)","schema":{"type":"string"},"example":"200"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":1,"source":"CANDLESTICK","bearish":0,"bullish":1,"candles_in":3,"occurrences":[{"name":"Three White Soldiers","type":"bullish","index":2,"candles":3}]},"meta":{"timestamp":"2026-06-10T22:56:11.263Z","request_id":"acf33ffc-3e16-4651-b269-a0265860eccb"},"status":"ok","message":"Series scanned","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":5100,"rps_limit":3,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":640,"monthly_call_quota":114000,"rps_limit":10,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1760,"monthly_call_quota":545000,"rps_limit":25,"hard_limit":true},{"slug":"business","name":"Business","price_cents_month":4240,"monthly_call_quota":3280000,"rps_limit":55,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/candlestick-api"}