v1
latestOpenAPI 3.0.0MIT2026-07-171769101.7 KBGets the swap prices for the given liquidity pool and asset pairs. Operation "mean" is not AVG from the last values, but the remaining amount of assets on the pool output
post/dex/last-price
Request body
Example request
{
"assetPairs": [
{
"asset2": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
},
"asset1": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
}
}
]
}Response
Example response
{
"lastPrice": [
{
"amount2": "2042352568679",
"amount1": "2042352568679",
"asset2": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
},
"asset1": {
"assetName": "42657272794e617679",
"policyId": "b863bc7369f46136ac1048adb2fa7dae3af944c3bbb2be2f216a8d4f"
}
}
]
}