Skip to main content
Glama

MCP Crypto API Servers

moralis_solana_price_api_json.json14.9 kB
{ "moralis_solana_price_api": { "base_url": "https://solana-gateway.moralis.io/api", "description": "Moralis Solana Price API for real-time token prices, historical data, and OHLCV candlestick charts", "authentication": { "method": "API_KEY", "header": "X-API-Key", "description": "API key required for all requests" }, "endpoints": { "get_token_price": { "method": "GET", "path": "/token/{network}/{address}/price", "description": "Get real-time token price in USD and native SOL", "parameters": { "network": { "type": "string", "description": "Network identifier (mainnet, devnet)", "required": true, "enum": ["mainnet", "devnet"] }, "address": { "type": "string", "description": "Token mint address", "required": true }, "to_block": { "type": "number", "description": "Block number for historical price", "required": false }, "to_date": { "type": "string", "description": "Date for historical price (ISO 8601)", "required": false } }, "response": { "tokenName": "string", "tokenSymbol": "string", "tokenLogo": "string", "tokenDecimals": "number", "nativePrice": { "value": "string", "decimals": "number", "name": "string", "symbol": "string" }, "usdPrice": "number", "usdPriceFormatted": "string", "24hrPercentChange": "number", "exchangeAddress": "string", "exchangeName": "string", "priceSource": "string" } }, "get_multiple_token_prices": { "method": "GET", "path": "/token/{network}/prices", "description": "Get prices for multiple tokens in a single request", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "tokens": { "type": "string", "description": "Comma-separated list of token addresses", "required": true } }, "response": { "tokens": [ { "tokenAddress": "string", "tokenName": "string", "tokenSymbol": "string", "tokenLogo": "string", "tokenDecimals": "number", "nativePrice": { "value": "string", "decimals": "number", "name": "string", "symbol": "string" }, "usdPrice": "number", "usdPriceFormatted": "string", "24hrPercentChange": "number", "exchangeAddress": "string", "exchangeName": "string" } ] } }, "get_ohlcv_by_pair": { "method": "GET", "path": "/pairs/{network}/{pairAddress}/ohlcv", "description": "Get OHLCV candlestick data for a specific trading pair", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "pairAddress": { "type": "string", "description": "Trading pair address", "required": true }, "timeframe": { "type": "string", "description": "Timeframe for candles", "required": true, "enum": ["1m", "5m", "15m", "30m", "1h", "4h", "1d", "1w"] }, "from_date": { "type": "string", "description": "Start date (ISO 8601)", "required": false }, "to_date": { "type": "string", "description": "End date (ISO 8601)", "required": false }, "limit": { "type": "number", "description": "Number of candles to return (max 2000)", "required": false, "default": 500 } }, "response": { "result": [ { "open": "number", "high": "number", "low": "number", "close": "number", "volume": "number", "timestamp": "string" } ] } }, "get_ohlcv_by_token": { "method": "GET", "path": "/token/{network}/{address}/ohlcv", "description": "Get OHLCV candlestick data for a token across all pairs", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "address": { "type": "string", "description": "Token mint address", "required": true }, "timeframe": { "type": "string", "description": "Timeframe for candles", "required": true, "enum": ["1m", "5m", "15m", "30m", "1h", "4h", "1d", "1w"] }, "from_date": { "type": "string", "description": "Start date (ISO 8601)", "required": false }, "to_date": { "type": "string", "description": "End date (ISO 8601)", "required": false }, "limit": { "type": "number", "description": "Number of candles to return (max 2000)", "required": false, "default": 500 } }, "response": { "result": [ { "open": "number", "high": "number", "low": "number", "close": "number", "volume": "number", "timestamp": "string" } ] } }, "get_token_price_history": { "method": "GET", "path": "/token/{network}/{address}/price/history", "description": "Get historical price data for a token over time", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "address": { "type": "string", "description": "Token mint address", "required": true }, "from_date": { "type": "string", "description": "Start date (ISO 8601)", "required": false }, "to_date": { "type": "string", "description": "End date (ISO 8601)", "required": false }, "interval": { "type": "string", "description": "Price data interval", "required": false, "enum": ["1h", "6h", "24h"], "default": "24h" } }, "response": { "prices": [ { "timestamp": "string", "usdPrice": "number", "nativePrice": "string", "volume24h": "number", "marketCap": "number" } ] } }, "get_pump_fun_token_price": { "method": "GET", "path": "/token/{network}/{address}/price/pump-fun", "description": "Get price data specifically for Pump.fun tokens", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "address": { "type": "string", "description": "Pump.fun token mint address", "required": true } }, "response": { "tokenName": "string", "tokenSymbol": "string", "tokenLogo": "string", "tokenDecimals": "number", "usdPrice": "number", "solPrice": "string", "marketCap": "number", "bondingCurveProgress": "number", "liquidityUsd": "number", "volume24h": "number", "priceChange24h": "number", "isGraduated": "boolean", "raydiumPool": "string" } }, "get_pair_price_stats": { "method": "GET", "path": "/pairs/{network}/{pairAddress}/stats", "description": "Get comprehensive price statistics for a trading pair", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "pairAddress": { "type": "string", "description": "Trading pair address", "required": true } }, "response": { "pairAddress": "string", "dex": "string", "baseToken": { "address": "string", "name": "string", "symbol": "string", "decimals": "number" }, "quoteToken": { "address": "string", "name": "string", "symbol": "string", "decimals": "number" }, "priceUsd": "number", "priceNative": "string", "priceChange": { "1h": "number", "6h": "number", "24h": "number" }, "volume": { "1h": "number", "6h": "number", "24h": "number" }, "liquidity": { "usd": "number", "base": "string", "quote": "string" }, "marketCap": "number", "fdv": "number" } }, "get_tradingview_widget_data": { "method": "GET", "path": "/token/{network}/{address}/widget", "description": "Get TradingView widget data for embedding charts", "parameters": { "network": { "type": "string", "description": "Network identifier", "required": true, "enum": ["mainnet", "devnet"] }, "address": { "type": "string", "description": "Token mint address", "required": true }, "theme": { "type": "string", "description": "Chart theme", "required": false, "enum": ["light", "dark"], "default": "light" }, "interval": { "type": "string", "description": "Default interval", "required": false, "enum": ["1", "5", "15", "60", "240", "1D"], "default": "15" } }, "response": { "symbol": "string", "widgetUrl": "string", "embedCode": "string", "chartData": { "symbol": "string", "interval": "string", "theme": "string", "style": "string", "locale": "string" } } } }, "supported_networks": [ "mainnet", "devnet" ], "supported_dexes": [ "Raydium", "Orca", "Meteora", "Pump.fun", "PumpSwap", "Jupiter", "Serum", "Aldrin", "Saber" ], "timeframes": { "1m": "1 minute", "5m": "5 minutes", "15m": "15 minutes", "30m": "30 minutes", "1h": "1 hour", "4h": "4 hours", "1d": "1 day", "1w": "1 week" }, "rate_limits": { "free_tier": { "requests_per_minute": 25, "requests_per_day": 25000 }, "pro_tier": { "requests_per_minute": 100, "requests_per_day": 100000 }, "enterprise_tier": { "requests_per_minute": "unlimited", "requests_per_day": "unlimited" } }, "features": { "real_time_prices": true, "historical_data": true, "ohlcv_candlesticks": true, "multiple_token_pricing": true, "pump_fun_support": true, "tradingview_integration": true, "cross_dex_aggregation": true, "price_change_tracking": true, "volume_analytics": true, "liquidity_data": true, "market_cap_fdv": true, "batch_requests": true }, "data_sources": { "description": "Aggregated from leading Solana DEXs", "primary_sources": [ "Raydium", "Orca", "Meteora", "Pump.fun", "Jupiter" ], "update_frequency": "Real-time", "data_accuracy": "Enterprise-grade" }, "example_requests": { "get_token_price": { "url": "https://solana-gateway.moralis.io/api/token/mainnet/So11111111111111111111111111111111111111112/price", "method": "GET", "headers": { "X-API-Key": "YOUR_API_KEY" } }, "get_multiple_prices": { "url": "https://solana-gateway.moralis.io/api/token/mainnet/prices?tokens=So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "method": "GET", "headers": { "X-API-Key": "YOUR_API_KEY" } }, "get_ohlcv_data": { "url": "https://solana-gateway.moralis.io/api/pairs/mainnet/58oQChx4yWmvKdwLLZzBi4ChoCKcLg6efDEDDrXQPzqR/ohlcv?timeframe=1h&limit=100", "method": "GET", "headers": { "X-API-Key": "YOUR_API_KEY" } }, "get_pump_fun_price": { "url": "https://solana-gateway.moralis.io/api/token/mainnet/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263/price/pump-fun", "method": "GET", "headers": { "X-API-Key": "YOUR_API_KEY" } } }, "use_cases": [ "Trading terminals and DEX interfaces", "Portfolio tracking applications", "Market analytics platforms", "Candlestick chart implementations", "Price alert systems", "DeFi yield farming tools", "Arbitrage detection systems", "Token discovery platforms" ], "error_responses": { "400": { "description": "Bad Request - Invalid parameters" }, "401": { "description": "Unauthorized - Invalid API key" }, "404": { "description": "Not Found - Token or pair not found" }, "429": { "description": "Too Many Requests - Rate limit exceeded" }, "500": { "description": "Internal Server Error" } } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adhinugroho1711/mcp-trading'

If you have feedback or need assistance with the MCP directory API, please join our Discord server