Dex Bot 监控是什么?
DEX Bot 监控是针对 DEX 的需求场景而设计的监控类型。该主要功能是监控各去中心化交易所的相关事件。
Dex Bot 监控典型场景
支持的数据源
支持的 Swap
如何配置 Dex Bot 监控?
登录 ChainBot 平台后,右上角 "Create Bot" -> "Dex Monitor"。
Info 说明
Conditions 说明
模板变量说明
术语说明
tokenBase:为基准 token,例如:WBTC/WETH 交易对中,其中 WBTC 为 tokenBase。
tokenQuote:为基准 token 定价的 token,例如:WBTC/WETH 交易对中,其中 WETH 为 tokenQuote。
tokenIn:在 dex 中使用 swap 功能使用 a 换 b时,其中 a 为 tokenIn,b 为 tokenOut。即:将 a token 放进流动性池子中,从流动性池子中拿出 b token 的行为。例如:swap WBTC/WETH 时,此时 WBTC 为 tokenIn,WETH 则为 tokenOut。
tokenBase, tokenQuote, tokenIn, tokenOut 均为 ERC20 的 Token,因此都有 name, symbol, decimals, address 等标准 ERC20 的方法。
默认告警模板
大额成交 Swap-WhaleSwap
复制 [ 🐳 {$bot.name} ]
Pair: { $dex .tokenBase.symbol}/{ $dex .tokenQuote.symbol} on { $dex .name}
Value: { $dex .value} USD
Action: {$dex.tokenIn.amount} {$dex.tokenIn.symbol} -> {$dex.tokenOut.amount} {$dex.tokenOut.symbol} at price {$dex.price} USD
Explore: { $chain .explore}/tx/{ $tx .hash}
流动性大额 Liquidity-WhaleAdd/WhaleRemove/WhaleAdRemove
复制 [ 🐳 {$bot.name} ]
Pair: { $dex .tokenBase.symbol}/{ $dex .tokenQuote.symbol} on { $dex .name}
Value: { $dex .value} USD
Action: {$dex.tokenIn.amount} {$dex.tokenIn.symbol} -> {$dex.tokenOut.amount} {$dex.tokenOut.symbol} at price {$dex.price} USD
Explore: { $chain .explore}/tx/{ $tx .hash}
Created By ChainBot.org
流动性大额百分比 Liquidity-WhaleAddPercent/WhaleRemovePercent/WhaleAddRemovePercent
复制 [ 🐳 {$bot.name} ]
Pair: { $dex .tokenBase.symbol}/{ $dex .tokenQuote.symbol} on { $dex .name}
Value: { $dex .value} USD
Action: { $dex .action} more than { $dex .changed.rate}% liquidity to pool
Explore: { $chain .explore}/tx/{ $tx .hash}
Created By ChainBot.org
流动性阈值 Liquidity-Above/Below
复制 [ {$bot.name} ]
📉📈 {$dex.tokenBase.symbol}/{$dex.tokenQuote.symbol} liquidity on {$dex.name} above/below {$dex.changed.rate} in the past {$dex.changed.duration}
current liquidity is { $dex .tokenQuote.balance} { $dex .tokenQuote.symbol}
流动性波动比率 Liquidity-ChangeRisesRate/ChangeDropsRate/ChangeRisesDropsRate
复制 [ {$bot.name} ]
📉📈 {$dex.tokenBase.symbol}/{$dex.tokenQuote.symbol} liquidity on {$dex.name} {$dex.direction} {$dex.changed.rate} in the past {$dex.changed.duration}
current liquidity is { $dex .tokenQuote.balance} { $dex .tokenQuote.symbol}
币价波动 Price-ChangeRisesRate/ChangeDropsRate/ChangeRisesDropsRate
复制 [ {$bot.name} ]
📉📈 {$dex.tokenBase.symbol}/{$dex.tokenQuote.symbol} price on {$dex.name} {$dex.direction} {$dex.changed.rate} in the past {$dex.changed.duration}
current price is { $dex .price} { $dex .tokenQuote.symbol}
币价阈值监控 Price-Above/Below
复制 [ {$bot.name} ]
📉📈 { $dex .tokenBase.symbol}/{ $dex .tokenQuote.symbol} price on { $dex .name} { $dex .direction} { $dex .setPrice}.
current price { $dex .price} USD.
了解告警通知模板?
通知消息示例
[ 🐳 Whale swap on Uniswap ETH/USDT pool ]
Pair: WETH/USDT on UniswapV3
Value: 51.237884 USD
Action: 0.0404716445741972 WETH -> 51.237884 USDT at price 1266.019321405753878 USD
Explore: https://etherscan.io/tx/0xef1cd8f1edfbfa7fc2efe74b814c3535c333921cedae9aaad66a9d969ab885b8
Created By ChainBot.io
Dex Bot 监控案例
Dex Bot 案例