Price Watcher Sensor Node

This sensor node subscribes to real-time price feeds of various crypto exchanges. It can be used to get an almost live view of the current ask price (lowest price someone is asking for), the current bid price (highest price someone is offering), and the last price (actual trade).

You can send a test message by clicking the square on the left side of the node.

Configuration

Name optional
Unique name for this node
Exchange select
Select the exchange that is to be watched
Market select
Select the corresponding market that is to be watched
Property select
ask current ask price (lowest price someone is asking for)
bid current bid price (highest price someone is offering)
last last price (actual trade)
Method select
relative minimum change in percent
absolute minimum absolute change
none no minimum change
Change number
Minimum change of selected property either in percent or as absolute value (depending on method)

Input

n.a.

Output

The message will be enriched by the price_watcher property:

payload float
Value of selected property, e.g. 20094.56 (here, last was selected)
payload_text string
Human-readable representation, e.g. last price decreased by -2.41 USD₮ (-0.01%) on BTC/USDT @ binance
sensor string
Always price-watcher
price_watcher.exchange string
Selected exchange, e.g. binance
price_watcher.market string
Selected market, e.g. BTC/USDT
price_watcher.bid float
Current bid price (highest price someone is offering), e.g. 20094.73
price_watcher.ask float
Current ask price (lowest price someone is asking for), e.g. 20095.66
price_watcher.last float
Last price (actual trade), e.g. 20094.56
price_watcher.delta float
Absolute difference of previous payload, e.g. -2.41 (previous payload was 20096.97)

Example message:

{
  "payload": 20094.56,
  "payload_text": "last price decreased by -2.41 USD₮ (-0.01%) on BTC/USDT @ binance",
  "sensor": "price-watcher",
  "price_watcher": {
    "exchange": "binance",
    "market": "BTC/USDT",
    "timestamp": 1664894726789,
    "datetime": "2022-10-04T14:45:26.789Z",
    "high": 20270,
    "low": 19310,
    "bid": 20094.73,
    "bidVolume": 0.00057,
    "ask": 20095.66,
    "askVolume": 0.025,
    "vwap": 19740.32242695,
    "open": 19434,
    "close": 20094.56,
    "last": 20094.56,
    "previousClose": 19432.74,
    "change": 660.56,
    "percentage": 3.399,
    "baseVolume": 314440.11976,
    "quoteVolume": 6207149348.032259,
    "delta": -2.41
  }
}
Last updated on Oct 4, 2022

Newsletter

Subscribe to our newsletter to stay updated and to get notified once the platform officially launches:

By subscribing, you agree with Foretale’s Privacy Policy

© foretale - 2022