Class AccountBalanceNotifier

java.lang.Object
nxt.addons.AbstractContract<Object,Object>
com.jelurida.ardor.contracts.trading.AccountBalanceNotifier
All Implemented Interfaces:
Contract<Object,Object>

public class AccountBalanceNotifier extends AbstractContract<Object,Object>
A contact which monitors minimum balances for coins and assets and post a warning on a slack channel (configured via web-hook url) in case any of the coin or asset balances goes below some threshold balance (for instance the 10 ARDR necessary for the trading bot contract to operate).

Configuration: "slackWebHookUrl" - points to web-hook of slack channel for notifications "limits" - array of minimum balance limits

Here is contract runner config example:

 "AccountBalanceNotifier": {
   "slackWebHookUrl": "",
   "limits": [{
     "accountRs": "ARDOR-XK4R-7VJU-6EQG-7R335",
     "type": "coin",
     "id": "ARDR",
     "minBalance": 10.0,
     "refreshInterval": 1
   },{
     "accountRs": "ARDOR-E93F-7E8Z-BHJ8-A65RG",
     "type": "asset",
     "id": "123",
     "minBalance": 7.0,
     "refreshInterval": 3
   }]
 }
 
  • Constructor Details

    • AccountBalanceNotifier

      public AccountBalanceNotifier()
  • Method Details