---
title: "Discussion on \"Build a pricing function that says \"not enough data\" when it should (Node.js)\" | Hashnode"
description: "Discussion on \"Build a pricing function that says \"not enough data\" when it should (Node.js)\". A small function that widens the date window before it loosens the query, and returns a price, a range, a direction or no data"
url: "https://hashnode.com/posts/build-a-pricing-function-that-says-not-enough-data-when-it-should-node-js/6b001fb7ce87604cd1d9776d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a pricing function that says "not enough data" when it should (Node.js)](https://compsapi.hashnode.dev/build-a-pricing-function-that-says-not-enough-data-when-it-should-node-js?utm_source=hashnode&utm_medium=feed)

A small function that widens the date window before it loosens the query, and returns a price, a range, a direction or no data

14h ago · 6 min read · compsapi.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#api](https://hashnode.com/tag/api)
-   [#data-analysis](https://hashnode.com/tag/data-analysis)
-   [#ebay](https://hashnode.com/tag/ebay)

## Written by

[Sam Smith](https://hashnode.com/@compsapi)

@compsapi · United States

  
[View profile](https://hashnode.com/@compsapi)

I build CompsAPI, an API for eBay sold prices, and write up what the data shows.

I build CompsAPI, an API for eBay sold prices with three years of history and the real accepted Best Offer price on each sale. I publish measurements from the data.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
