{"slug":"agents-x402stock-xyz-api-v1-forex-pair-aggregates-d4df7c","title":"Historical OHLCV bars for a foreign-exchange pair at the requested multiplier an","host":"agents.x402stock.xyz","method":"GET","resource":"https://agents.x402stock.xyz/api/v1/forex/:pair/aggregates","category":"market","description":"Historical OHLCV bars for a foreign-exchange pair at the requested multiplier and timespan (minute, hour, day, week, month) between `from` and `to`. Pass the pair in the path as BASE-QUOTE, e.g. EUR-USD or USD-JPY. Use for FX charting, backtesting, and macro/rate analysis. From x402stock, a pay-per-","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":451,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","pathParams":{"pair":"EUR-USD"},"queryParams":{},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"pair":{"type":"string"},"type":"object"},"queryParams":{"properties":{"adjusted":{"default":true,"type":"boolean"},"from":{"default":"2025-07-31","minLength":1,"type":"string"},"limit":{"default":5000,"exclusiveMinimum":0,"maximum":50000,"type":"integer"},"multiplier":{"default":1,"exclusiveMinimum":0,"maximum":50000,"type":"integer"},"sort":{"default":"asc","enum":["asc","desc"],"type":"string"},"timespan":{"default":"day","enum":["minute","hour","day","week","month","quarter","year"],"type":"string"},"to":{"default":"2026-07-31","minLength":1,"type":"string"}},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":451,"error":null}],"description_full":"Historical OHLCV bars for a foreign-exchange pair at the requested multiplier and timespan (minute, hour, day, week, month) between `from` and `to`. Pass the pair in the path as BASE-QUOTE, e.g. EUR-USD or USD-JPY. Use for FX charting, backtesting, and macro/rate analysis. From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.","last_updated":"2026-09-19T16:00:19.221Z","schemes":["exact"]}