apilayer / marketstack

Free Real-Time, Intraday & Historical Stock Market Data API
https://marketstack.com
67 stars 14 forks source link

24h Interval error. Specify your preferred data interval #8

Closed deputat007 closed 4 years ago

deputat007 commented 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" } ] } }

deputat007 commented 4 years ago

after 2 hours of reading documentation and trying different values, I found out that instead of 24h should be 24hour🤔 please update documentation!