Aller au contenu
GET /v1/patterns

List the supported candlestick patterns

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/candlestick-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/candlestick-api/v1/patterns" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/candlestick-api/v1/patterns", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/candlestick-api/v1/patterns");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/candlestick-api/v1/patterns",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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":
…