Fetch Ticker Node

This node fetches selected market information from an exchange. It can be used to get the last ask price (lowest price someone is asking for), the last bid price (highest price someone is offering), and the last price (actual trade).

info

There’s also a price watcher sensor node that subscribes to real-time price feeds of various crypto exchanges.

Configuration

Name optional
Unique name for this node
Exchange select
Select the exchange you wish to connect to
Market select
Select the market (pair) you wish to fetch
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)

Input

This node does not require any specific prior nodes.

Output

The message will be enriched by the ticker property:

payload float
Value of selected property, e.g. 20324.94 (here, bid was selected)
payload_text string
Human-readable representation, e.g. bid 20324.94 BTC/USDT
ticker.exchange string
Selected exchange, e.g. binance
ticker.market string
Selected market, e.g. BTC/USDT
ticker.bid float
Current bid price (highest price someone is offering), e.g. 20004.15
ticker.ask float
Current ask price (lowest price someone is asking for), e.g. 20005.18
ticker.last float
Last price (actual trade), e.g. 20004.14

Example message:

{
  "payload": 20004.15,
  "ticker": {
    "market": "BTC/USDT",
    "timestamp": 1665134702255,
    "datetime": "2022-10-07T09:25:02.255Z",
    "high": 20324.94,
    "low": 19810,
    "bid": 20004.15,
    "bidVolume": 0.08921,
    "ask": 20005.18,
    "askVolume": 0.01624,
    "vwap": 20049.72965123,
    "open": 20159.13,
    "close": 20004.14,
    "last": 20004.14,
    "previousClose": 20159.12,
    "change": -154.99,
    "percentage": -0.769,
    "average": 20081.635,
    "baseVolume": 250362.03943,
    "quoteVolume": 5019691205.501
  }
}
Last updated on Oct 7, 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