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
{
"topic" : {
"topic" : "ammpool",
"poolAddress" : "0x18920d6E6Fb7EbE057a4DD9260D6D95845c95036",
"snapshot" : true
},
"ts" : 1611267558234,
"data" : [ [ "11792920485390000000000000", "3998385574130000000000" ], "41277091829000" ]
}
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
Was this helpful?