alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
142 stars 13 forks source link

The Calendar API is now broken #81

Closed gjtorikian closed 5 years ago

gjtorikian commented 5 years ago

start and end are no longer accepted as parameters:

curl "https://paper-api.alpaca.markets/v2/calendar?start=2019-07-11"
{"code":40010001,"message":"start is in an invalid format. Consider formatting your timestamp more explicitly, like: '2006-01-02T15:04:05Z'"}

 curl "https://paper-api.alpaca.markets/v2/calendar?start=2006-01-02T15:04:05Z"
{"code":40010001,"message":"start is in an invalid format. Consider formatting your timestamp more explicitly, like: '2006-01-02T15:04:05Z'"}

curl "https://paper-api.alpaca.markets/v2/calendar?start='2019-07-11T15:04:05Z'"
{"code":40010001,"message":"start is in an invalid format. Consider formatting your timestamp more explicitly, like: '2006-01-02T15:04:05Z'"}
umitanuki commented 5 years ago

The issue should be resolved now.