Price history of a product
em_price_historyTrack a product's average price over roughly three months in about 3-day intervals and compare the first and last values to determine if the price is rising or falling.
Instructions
Get the price history of one Emalls product: the average price over time in about 3-day steps (last ~3 months).
Use it for "is the price rising or falling". Dates are Jalali, oldest first, aligned with the price lists;
null = no price that day. summary compares first and last average.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shop_id | No | Add this shop's own series (id from em_offers). | |
| product_id | Yes | Product id from em_search. |