AMM Pool Snapshot Notification
Subscribe to this topic to receive notifications about token balance updates for specific AMM Pools.
Rules
Topic name:
ammpool
ApiKey requred: No
snapshot mode ONLY!
Parameters
Parameter | Note |
---|---|
poolAddress |
Status code
Value | Note |
---|---|
102034 | receive illegal arg for topic ammpool |
Notification example
Data Model
Notification
Field | Type | Note |
---|---|---|
topic | JSON | Topic and parameters |
ts | integer | Notification timestamp (milliseconds) |
data | [[string, string], string] | Amm snapshot array |
PoolSnapshot
Index | Type | Note |
---|---|---|
1 | [string, string] | Token balance of in pool token pair, i.e. [base token amount, quote token amount] |
2 | string | Token balance of pool's LP token |
Last updated