The PoolsTask
can be used to monitor one or more liquidity pools for changes. It's identifier is dex.pools
.
PoolsTask
takes one argument currencyId: { Token: string } | { Token: string }[] | "all"
that represents the token in a liquidity pool with aUSD
. It can either be a single token or a list of token's you would like to monitor. The value all
cal also be passed to currencyId
to monitor all of the liquidity pools.
for example:
...
task: dex.pools
arguments:
currencyId:
- Token: DOT
- Token: ACA
...
The output for this task will be in the following format:
{
"currencyId": string, // A two element array with representing the liquidityc pool of the input token and aUSD
"price": string,
"baseLiquidity": string,
"otherLiquidity": string
}
}