apilayer / marketstack

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

dividend data not available #19

Closed sergeprudhomme closed 3 years ago

sergeprudhomme commented 3 years ago

Did I miss something in the documentation? If a dividend was paid on certain day, I want that information added to the EOD data. Without this I cannot fulfill my use case.

Example: (see last line) { "open": 96.75, "high": 96.95, "low": 96.15, "close": 96.29, "volume": 12957900, "adj_high": null, "adj_low": null, "adj_close": 96.29, "adj_open": null, "adj_volume": null, "symbol": "RY.XTSE", "exchange": "XTSE", "date": "2020-10-23T00:00:00+0000", "dividend_amount": 1.0800 }

sergeprudhomme commented 3 years ago

As pointed out by support: dividend = day["close"] - day["adj_close"] :-)