HashtagSell / posting-api

API for storage and retrieval of posting details for Hashtagsell
0 stars 0 forks source link

/Suggested average price #66

Closed that1guy closed 8 years ago

that1guy commented 9 years ago

Hi Josh,

/Suggested endpoint predicts category of item for sale. I think it makes sense at that moment to also return the average price of all the items in each predicted category. If this is low hanging fruit lets squeeze this in. If more complicated let me know and I'll just do another get request to posting api and do on UI side.

[
  {
    "code": "SAPP",
    "count": 67,
   "avgPrice": 1200
  },
  {
    "code": "SOTH",
    "count": 10,
   "avgPrice": 643
  },
  {
    "code": "SHNB",
    "count": 7,
   "avgPrice": 922
  },
  {
    "code": "SSNF",
    "count": 4,
   "avgPrice": 55
  }
]
brozeph commented 9 years ago

Currently not indexing asking price - will do some research on this!

that1guy commented 9 years ago

The sell box is now using the v1/groupings/suggested endpoint. If this is easy to implement lets add avg_price data at this endpoint instead of popcat.

Popcat is now only used during search I believe.

that1guy commented 8 years ago

Closing this for now. We can recreate in future if prioritized.