akaszynski / keepa

Python Keepa.com API
https://keepaapi.readthedocs.io/en/latest/
Apache License 2.0
241 stars 77 forks source link

How to get previous price of a deal from delta category? #158

Open Haiz14 opened 11 months ago

Haiz14 commented 11 months ago

I got the deals from api.deals() but couldn't figure out how to get previous price of the product.

>>> deals['dr'][1]['delta']
[[1443, 1443, 0, 5672, 0, 0, 0, 18, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 1443, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [9958, 9363, 0, 16086, 0, 0, 0, 79, 0, -1, 0, 0, 0, 0, 0, 0, 0, -1, 9363, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [9951, 9152, 0, 17841, 0, 0, 0, 111, 0, -1, 0, -1, 1, 0, 0, 0, 0, -3, 9139, 0, 0, 0, 0, 0, 0, 0, 0, 0, -2096, 0, 0, 0, 0, 0], [8322, 8144, 0, 36611, 0, 0, 0, -2144, 0, -1, 0, -1, 0, 0, 0, 0, 0, -5, 10424, 0, 0, 0, 0, 0, 0, 0, 0, 0, -4959, 0, 0, 0, 0, 0]]