API Reference

Return DEX Pool Total Value Locked (TVL) and Liquidity Information for up to 1,000 pools in a single request.

Method: GET

Endpoint: https://api.syve.ai/v1/market-api/token-pools

Request Parameters

NameType(s)Description
token_addressstringThe address of the token to fetch pool addresses for.

Response Fields

NameTypeDescription
token_addressstringThe block number (i.e. height) of the event log.
pool_addresslistThe list of pool addresses that contain the provided token address.

Example: All pools that contain $WBTC

📘

Try it out

In the Live Example section you can try out the request with different arguments.

Query

In the requests below 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 is the address of $WBTC.

Example GET Request

Request: https://api.syve.ai/v1/market-api/token-pools?token_address=0x2260fac5e5542a773aa44fbcfedf7c193bc2c599

Response

{
    "token_address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
    "pool_address": [
        "0x02098976e02bebd91f402ddc752f7f2473383218",
        "0x03ddbfd13b5020ebbaa77e6917f2f7cf94a8f302",
        "0x14b49fe0aeca3beabfee01b16900322313089681",
        "0x011e903da81919f1e143e6f651f7fe454571643b",
        "0x03dc256087553af7871090df00d0bed694567e8e",
        "0x1d108372a83fbc3a0bfb7ca4d0e427449e7a5ca2",
        "0x1a25fdf24d22f094193cee5bddd93e18e3f919c4",
        "0x21ca348fef9f09fdb79b155a75efa7f02f82733a",
        "0x01d8249d7c7a6058060bef027adda0b529035ff5",
        "0x007f74c5c82d68a138cc3bc623e51270279fa525",
        "0x157f1e9e01e42e6f680e67f30a9c58ed905a6617",
        "0x164fe0239d703379bddde3c80e4d4800a1cd452b",
        "0x026babd2ae9379525030fc2574e39bc156c10583",
        "0x007cde6b6a38131c201644d57d4b4956402de87b",
        "0x1622f1bef90233a6993f3bc85759adf5b9d9d7b9",
        "0x163697ee97ed7b4cef571cc27a2579efc4f3bfe9",
        "0x004375dff511095cc5a197a54140a24efef3a416",
        "0x016d7096a73bf466f444f286e704d81d09babec2",
        "0x05032c6eb50b001b7e8e494384dc33b09b6a5510",
        "0x0273d4aac5b0f0c86bbd6ad58cf89710b2ece234"
    ]
}

Live Example

Press Try It to make a request and see what the response looks like. Feel free to try different query parameters.

Language
Click Try It! to start a request and see the response here!