APIPresale Payment
Get Cryptocurrency Price
Retrieve real-time cryptocurrency market prices
Get Cryptocurrency Price
Fetch live market prices for supported cryptocurrencies
Query
💰
getCryptoPrice
Get current market price for a cryptocurrency
Schema
getCryptoPrice(
symbol: String!
): Float
Parameters
symbol
RequiredType:
String!
The cryptocurrency symbol (e.g., "BTC", "ETH", "USDT")
Return Value
📦
Returns Float
Current price in USD as a floating-point number
Examples
💻
Bitcoin Price
Get BTC price in USD
query {
getCryptoPrice(symbol: "BTC")
}
💻
Ethereum Price
Get ETH price in USD
query {
getCryptoPrice(symbol: "ETH")
}
Response Example
📤
Sample Response
Bitcoin price response
{
"data": {
"getCryptoPrice": 43250.75
}
}
Supported Cryptocurrencies
₿
BTC
Bitcoin
Ξ
ETH
Ethereum
₮
USDT
Tether
💵
USDC
USD Coin
Use Cases
📊
Price Display
Show real-time cryptocurrency prices to users on your platform
💱
Currency Conversion
Calculate equivalent amounts for payment processing
🔔
Price Alerts
Monitor prices for triggering notifications or automated actions
📈
Market Analysis
Track price trends for analytics and reporting features
💡
Best Practice
Implement caching to reduce API calls for frequently requested prices. Consider polling intervals of 30-60 seconds for real-time displays. Always validate the symbol parameter before making requests. Handle cases where the symbol might not be found or price data is unavailable.