API Reference
Token Price
Get real-time token prices
Returns price from the most liquid pool.
Endpoint#
GET /token/price/:tokenAddress
Request (curl)#
curl -H "x-api-key: YOUR_KEY" \
https://us-east.dritan.dev/token/price/So11111111111111111111111111111111111111112
Request (TypeScript, SDK)#
import { DritanClient } from "dritan-sdk";
const client = new DritanClient({ apiKey: "YOUR_KEY" });
const res = await client.getTokenPrice("So11111111111111111111111111111111111111112");
console.log(res);
Response#
{
"mint": "So11111111111111111111111111111111111111112",
"dex": "damm2",
"priceUsd": 0.0123,
"marketCap": 1234567,
"liquiditySol": 42.0
}