Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.13 KB

File metadata and controls

61 lines (43 loc) · 2.13 KB

Intro

Ticker Monitor module can be used to be notified when some ticker conditions are met on an exchange or a service

Following exchanges are supported :

  • All exchanges with support for wsTicker feature

Following services are supported :

  • MarketCap

Supported fields on exchanges

  • last : last trade’s price

  • buy : highest buy price

  • sell : lowest sell price

  • high : highest price (last 24H)

  • low : lowest price (last 24H)

  • volume : volume (last 24H)

  • priceChangePercent : % change of price in last 24H (0-100)

Supported fields on MarketCap

  • price_usd : per-unit price in USD

  • price_btc : per-unit price in BTC

  • volume_24_usd : USD volume of last 24H

  • circulating_supply : the number of coins in existence available to the public

  • market_cap_usd : USD market cap

  • percent_change_1h : % change of price in last hour (0-100)

  • percent_change_1d : % change of price in last 24H (0-100)

  • percent_change_7d : % change of price in last 7d (0-100)

Supported operators

  • eq : to check if field value == target value

  • neq : to check if field value != target value

  • lt : to check if field value < target value

  • lte : to check if field value <= target value

  • gt : to check if field value > target value

  • gte : to check if field value >= target value

  • in : to check if field value is in range [a,b]

  • out : to check if field value is outside of range [a,b]

Ticker Monitor entries

An entry can contain multiple conditions. When creating an entry, it is possible to define :

  • if entry will become active only if all conditions are met

  • if entry will become active after one of the condition is met

Following status are possible for a condition :

  • unknown : state is unknown, we don’t have any value for the requested field yet

  • active : field matches the target value

  • inactive : field does not match the target value

  • invalid : field, exchange or service is not supported anymore

Checking conditions

Ticker Monitor will check entries every X seconds. Delay can be configured in config.json (default = 30)