ohlcv api python
Fetch OHLCV candles in Python with authentication, pagination, and production-safe request handling.
Python request example
import requests
response = requests.get(
"https://api.realmarketapi.com/api/v1/candle",
params={"ApiKey": "YOUR_KEY", "SymbolCode": "XAUUSD", "TimeFrame": "H1"},
timeout=15,
)
print(response.json())