π°Pricing with Subgraph
Endpoint:
https://api.subgraph.ormilabs.com/api/public/d7eed6cc-ad4a-4862-8017-89893c4095d3/subgraphs/kodiak-v3/latest/gnQuery examples
{ token(id: "TOKEN_ADDRESS") { id symbol name derivedETH } bundle(id: "1") { ethPriceUSD } }{ tokens(first: 10) { id symbol name derivedETH } bundle(id: "1") { ethPrice } }{ "data": { "tokens": [ { "id": "0x...123", "symbol": "USDT", "name": "Tether", "derivedETH": "0.0005" }, { "id": "0x...456", "symbol": "USDC", "name": "USD Coin", "derivedETH": "0.0005" } ], "bundle": { "ethPrice": "2000" } } }
Last updated