- SQL: Allium Developer runs on ClickHouse for Solana and Postgres for all other chains.
- Timestamps: All timestamps are in Coordinated Universal Time (UTC).
- Prices: All prices-related data are in USD denomination unless otherwise stated.
- Address Casing: All EVM addresses are in lower casing.
- Native token: Native tokens are represented by the zero address for most chains. For example,
- for Ethereum and most EVM chains:
0x0000000000000000000000000000000000000000
- for Solana:
So11111111111111111111111111111111111111112
- for Tron:
T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb
- for Ethereum and most EVM chains:
Token Liquidity
In some of our endpoints, you can passwith_liquidity_info=true
to the query parameters to get liquidity info. This can be useful to filter out spam/scam tokens from your application. This data will be available in the total_liquidity_usd
field.
For example, you can use this to filter for tokens with at least $5000 USD (adjust according to your preferences):
{"amount": 123, "details": null}
. The amount indicates the sum of USD value of the total liquidity of the token across all pools.{"amount": null, "details": "LIQUIDITY_TOO_HIGH"}
. This indicates that the token is very popular, and hence very likely not a scam, for example WETH in Ethereum chain.null
, indicating no liquidity information exists for the pool.
- from a token, get all pools associated with it
- if we determine that the token has very high liquidity, return
LIQUIDITY_TOO_HIGH
- get the total amount of tokens inside all those pools
- multiply them with the price of that token to get
total_liquidity_usd