Live-streamed updates for newly listed pairs.
This endpoint is available on Codex Growth and Enterprise Plans
Endpoint: onLatestPairUpdated
Method: POST
Free Tier New Token Notifications
If you're not an enterprise user and you want to be alerted when new tokens are listed on Defined, set up a sound notification with the Distill Web Monitor plugin (available on the Chrome store).
Response
Name | Type | Description |
---|---|---|
address | String! | The contract address for the pair. |
exchangeHash | String! | The contract address for the exchange. |
id | String! | The ID of the pair (address:networkId ). |
initialPriceUsd | String! | The listing price, or first known price for the pair, in USD. |
liquidAt | Int | The unix timestamp for when liquidity was added to the pair. |
liquidity | String! | The total liquidity in the pair. |
liquidityToken | String | The token with higher liquidity within the pair. Can be token0 or token1 . |
networkId | Int! | The network ID the pair is deployed on. |
newToken | String! | The newly added token within the pair. Can be token0 or token1 . |
nonLiquidityToken | String | The token with lower liquidity within the pair. Can be token0 or token1 . |
oldToken | String! | The pre-existing token within the pair. Can be token0 or token1 . |
priceChange | Float! | The percent price change between the listing price and the current price. |
priceUsd | String! | The newly added token price in USD. |
token0 | LatestPairToken! | Metadata for token0 . |
token1 | LatestPairToken! | Metadata for token1 . |
transactionHash | String! | The unique hash for the transaction that added liquidity, if applicable, otherwise the transaction that added the pair. |
Example
Query
subscription LatestPairUpdated($id: String) {
onLatestPairUpdated(id: $id) {
}
}
Response
Ask questions, share what you're working on and request new features 👬👭