Watch state and alert inbox
const url = 'https://api.getchord.xyz/v1/lp/watch?chain=5042&wallet=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.getchord.xyz/v1/lp/watch?chain=5042&wallet=example'Whether the wallet’s positions are watched, how many Telegram chats receive its alerts, the alert thresholds, the last alerts, and the pools on its watchlist.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Chain id: 5042 Arc · 4663 Robinhood Chain · 143 Monad.
EVM address, hex, case-insensitive.
Responses
Section titled “ Responses ”object
EVM address, hex, case-insensitive.
Alert when uncollected fees pass this.
Alert when a pool loses this share of its liquidity.
Bot username for the deep link.
object
EVM address, hex, case-insensitive.
EVM address, hex, case-insensitive.
A pool: a 20-byte contract address (V2 / V3) or a 32-byte Uniswap V4 pool id.
EVM address, hex, case-insensitive.
Unix time, seconds, UTC.
Where the wallet’s owner acts on the alert: the position’s page for a mark, the pool with the same range for a followed wallet’s new position.
Take-profit / stop-loss marks by <manager>:<tokenId>.
object
object
Take-profit: PnL in percent of the dollars that went in, above 0.
Stop-loss: the same, between -100 and 0.
Unix time, seconds, UTC.
Present, and native, when the percent is counted in the chain’s own coin; absent = in dollars.
Unix time, milliseconds — when the server built this answer.
Example
{ "marks": { "additionalProperty": { "unit": "native" } }}Invalid parameters — error names the check that failed (INVALID_PARAMS, BAD_ADDRESS, BAD_LIMIT, BAD_HOURS, …).
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}