Compute Fibonacci retracement and extension levels API
Compute retracement and extension prices between a supplied swing low and high, or between the highest high and lowest low of caller-supplied bars.
The Compute Fibonacci retracement and extension levels operation is part of the Technical Analysis Indicators API API on BRAINIAC.software. Compute retracement and extension prices between a supplied swing low and high, or between the highest high and lowest low of caller-supplied bars. It is exposed as POST /api/v1/technical-analysis/fibonacci-levels and priced at $0.02 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Caller-supplied OHLCV bars (no market-data feed) Indicator formulas as originally published: Wilder (RSI, ATR, ADX, Parabolic SAR), Appel (MACD), Bollinger, Keltner, Donchian, Hosoda (Ichimoku), Chande (Aroon), Granville (OBV), Quong and Soudack (MFI) StockCharts ChartSchool indicator definitions and worked examples Limitations: Not investment advice. Outputs are calculations on the bars you send, not trading signals, forecasts or recommendations. No price data is fetched: bars must be strictly ascending in time, with l <= min(o,c) and h >= max(o,c). Indicators run on bar index; time gaps are not filled. Series are aligned 1:1 with the bars; positions inside the warm-up window are null and each response reports the warm-up length. A period longer than the number of bars is rejected as period_too_long. Pattern detection (candlesticks, chart patterns, support and resistance) uses the explicit numeric rules returned in params; other charting software may define patterns differently. Backtests fill at the next bar's open on supplied bars with simple fee and slippage inputs; they ignore liquidity, margin, borrow costs, taxes and survivorship, and past results do not predict future results. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Compute moving averages (SMA, EMA, WMA, DEMA, TEMA, HMA), Compute momentum oscillators (RSI, Stochastic, CCI, MFI), Compute MACD with signal line and crossovers, Compute Bollinger, Keltner and Donchian bands. Open the group documentation for the full request schema, field notes, and response examples before integrating.
/api/v1/technical-analysis/fibonacci-levelsExample request
curl -i -X POST "https://www.brainiac.software/api/v1/technical-analysis/fibonacci-levels" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"swingLow": 100,
"swingHigh": 200,
"direction": "up",
"levels": [
0.236,
0.382,
0.5,
0.618,
0.786
],
"extensions": [
1.272,
1.618
]
}
JSONAn unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Compute moving averages (SMA, EMA, WMA, DEMA, TEMA, HMA) — $0.02 USDC
- Compute momentum oscillators (RSI, Stochastic, CCI, MFI) — $0.03 USDC
- Compute MACD with signal line and crossovers — $0.02 USDC
- Compute Bollinger, Keltner and Donchian bands — $0.03 USDC