{ "opencollection": "1.0.0", "info": { "name": "Level2 Strategy Builder Backtesting Market Data API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "api_key", "value": "{{api_key}}", "placement": "query" } }, "items": [ { "info": { "name": "Market Data", "type": "folder" }, "items": [ { "info": { "name": "Get OHLC historical data", "type": "http" }, "http": { "method": "GET", "url": "https://app.bytemine.io/api/olhc/:api_key/:ticker/:timeframe/:range", "params": [ { "name": "api_key", "value": "", "type": "path", "description": "Your Level2 API key used to authenticate requests. Obtain this from your Level2 account dashboard." }, { "name": "ticker", "value": "", "type": "path", "description": "The stock ticker symbol to query (e.g., AAPL, MSFT, TSLA). Level2 supports over 200,000 instruments from 75 global exchanges." }, { "name": "timeframe", "value": "", "type": "path", "description": "The chart timeframe for the analysis or data retrieval. Common values include 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w, and 1M representing minutes, hours, days, weeks, and months respectively." }, { "name": "range", "value": "", "type": "path", "description": "The historical date range for OHLC data retrieval. Specifies how far back to fetch data (e.g., 1d, 5d, 1mo, 3mo, 6mo, 1y, 5y, max)." } ] }, "docs": "Retrieves historical Open-High-Low-Close (OHLC) price data for a given ticker symbol at the specified timeframe and date range. This data is used for charting, backtesting strategies, and performing technical analysis. Level2 provides access to over 200,000 stocks and financial instruments from 75 global exchanges." } ] } ], "bundled": true }