POST /dex/mean-price
Changed onGets the mean prices for the given liquidity pool and asset pairs. Mean is not AVG from the last values, but the remaining amount of assets on the pool output
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/dex/mean-price
- Authnone required
Request body
Example request
{
"assetPairs": [
{
"asset2": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
},
"asset1": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
}
}
],
"after": {
"tx": "336d520af58ff440b2f20210ddb5ef5b2c035e0ec7ec258bae4b519a87fa1696",
"block": "2548ad5d0d9d33d50ab43151f574474454017a733e307229fa509c4987ca9782"
},
"untilBlock": "cf8c63a909d91776e27f7d05457e823a9dba606a7ab499ac435e7904ee70d7c8"
}Response
Example response
{
"meanPrices": [
{
"amount2": "2042352568679",
"amount1": "2042352568679",
"asset2": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
},
"asset1": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
}
}
]
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking