Crypto Market Data API
Token prices, DEX pools, gas, perpetual futures, cross-chain swap quotes and raw JSON-RPC: the market reads an agent needs before it acts, each one HTTP call, paid per call.
8 endpoints
token-price
$0.0020 per callSpot prices for cryptocurrencies and tokens. Use when an agent values a holding, converts an amount, or checks a market before acting.
dex-pairs
$0.0100 per callOn-chain DEX liquidity for a token: which pools exist, how deep they are, and how much they trade.
gas-price
$0.0100 per callCurrent gas on an EVM chain, priced in both gwei and dollars.
perp-markets
$0.0020 per callPerpetual futures markets on Hyperliquid: price, 24h change, funding and open interest across every listed perp, in one call.
swap-quote
$0.0020 per callThe best routes to swap one token for another, or bridge between chains, across 60+ mainnets including Base, Ethereum, Arbitrum, BSC and Solana, routed through DEX agg…
swap-build
$0.0050 per callAn UNSIGNED swap or bridge transaction for the caller's own wallet (address) to sign and send.
rpc
$0.0020 per callRead-only JSON-RPC call against a supported blockchain.
exchange-rate
$0.0020 per callFiat currency conversion across 160+ currencies.
Call it
The first response is 402 with the exact price and every way to pay. Pay,
repeat the request with the proof, and you get the result.
curl -X POST https://api.glianalabs.com/v1/tools/token-price \
-H 'content-type: application/json' \
-d '{"symbols":"BTC,ETH","vs":"usd"}'How it works
Each endpoint answers one question cheaply enough to poll: what a token is worth, whether it can actually be traded and where, what a transaction will cost in gas, how perps are positioned, and what a swap or bridge would return. swap-build returns an unsigned transaction for your own wallet to sign.
Limits worth knowing
Nothing is custodial: no endpoint holds funds or signs for you. Quotes are snapshots and move with the market. None of it is investment advice.
Questions
Do you execute trades?
No. swap-quote prices routes and swap-build returns an unsigned transaction; you sign and send it from your own wallet.
Which chains are covered?
Gas covers Ethereum, Base, Arbitrum, Optimism, BSC and Polygon; swap quotes route across 60+ mainnets including Solana.
Is it cheap enough to poll?
token-price and perp-markets are $0.002 a call, priced for loops.
Is there a free tier?
No. Every call is paid individually, with no plan or minimum. A request that fails validation is refused before it runs, so it is never charged.
Do I need an account or an API key?
No. The first response is HTTP 402 with the exact price; pay it with USDC from your own wallet and repeat the request. To prepay instead, top up a balance in rupiah and send a gk_ key.