balancednetwork/balanced-contracts

Need an API that returns pool stats by token addresses.

Closed this issue · 2 comments

Now, to get pool stats by token addresses. the frontend uses two APIs. getPoolId and getPoolStats in the Dex contract.
Please provide an API that returns pool stats by token addresses.

function requirements:
parameters types: getPoolId parameters types
return types: getPoolStats return types

This feature is important to fix the speed optimization issue in the frontend. @gedanziger

def getPoolStats(self, _id: int) -> dict:

Please add the pool Id field in the response. @dbrehmer