Closed deputat007 closed 4 years ago
https://api.marketstack.com/v1/intraday?sort=DESC&limit=2&offset=0&access_key= YOUR_ACCESS_KEY&interval=24h&date_from=2020-07-22&date_to=2020-07-23&symbols=AAPL
{ "error": { "code": "validation_error", "message": "Request failed with validation error", "context": [ { "key": "interval", "message": "[Optional] Specify your preferred data interval. Available values: 1min, 5min, 10min, 15min, 30min, 1h (Default), 3h, 6h, 12h and 24h" } ] } }
after 2 hours of reading documentation and trying different values, I found out that instead of 24h should be 24hour🤔 please update documentation!
24h
24hour
https://api.marketstack.com/v1/intraday?sort=DESC&limit=2&offset=0&access_key= YOUR_ACCESS_KEY&interval=24h&date_from=2020-07-22&date_to=2020-07-23&symbols=AAPL
{ "error": { "code": "validation_error", "message": "Request failed with validation error", "context": [ { "key": "interval", "message": "[Optional] Specify your preferred data interval. Available values: 1min, 5min, 10min, 15min, 30min, 1h (Default), 3h, 6h, 12h and 24h" } ] } }