Get the price of a cryptocurrency in a fiat currency.
This endpoint returns the current price of a cryptocurrency in a fiat currency.
Allowed fiat currencies are: usd, eur
Allowed cryptocurrencies are: btc, eth, usdt, bnb, sol, usdc, xrp, steth, doge, trx, ton, ada, wsteth, wbtc, avax, shib, weth, link, bch, dot, leo, dai, ltc, uni, near, weeth, kas, matic, icp, xmr, pepe, apt, fet, usde, fdusd, xlm, etc, okb, sui, stx, cro, fil, render, imx, tao, mnt, aave, hbar, arb, vet, atom, op, wbt, mkr, inj, wif, weth, bgb, ar, reth, grt, rune, hnt, meth, floki, bonk, theta, solvbtc, ftm, algo, gt, kcs, jup, pyth, pyusd, ezeth, bsv, tia, qnt, ldo, jasmy, sei, weth, ondo, flow, ftn, eeth, om, core, not, btt, usdd, klay, egld, eos, flr, brett, gala, axs, strk, btc, eth, usdt, bnb, sol, usdc, xrp, steth, doge, trx, ton, ada, wsteth, wbtc, avax, shib, weth, link, bch, dot, leo, dai, ltc, uni, near, weeth, kas, matic, icp, xmr, pepe, apt, fet, usde, fdusd, xlm, etc, okb, sui, stx, cro, fil, render, imx, tao, mnt, aave, hbar, arb, vet, atom, op, wbt, mkr, inj, wif, weth, bgb, ar, reth, grt, rune, hnt, meth, floki, bonk, theta, solvbtc, ftm, algo, gt, kcs, jup, pyth, pyusd, ezeth, bsv, tia, qnt, ldo, sei, jasmy, weth, ondo, flow, ftn, eeth, om, core, not, btt, usdd, klay, egld, eos, flr, brett, gala, axs, strk
Request
- Base URLhttps://app.chaingateway.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.
Bearer token for authorization. Required for authenticated endpoints.
The MIME type of the request body.
Response
Example response
{
"status": 200,
"ok": true,
"message": "Market data for bnb",
"data": {
"price": "701.22"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.