Skip to main content
Glama

get_etf_price_by_paloma_denom

Retrieve ETF price data using Paloma denomination identifiers for cross-chain trading operations on Paloma DEX.

Instructions

Get ETF price by Paloma denomination.

Args: paloma_denom: Paloma denomination (e.g., factory/paloma18xrvj2ffxygkmtqwf3tr6fjqk3w0dgg7m6ucwx/palomagold) Returns: JSON string with ETF price data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paloma_denomYes

Implementation Reference

  • The main handler function for the 'get_etf_price_by_paloma_denom' tool. It fetches ETF price data from the PalomaDEX API using the provided Paloma denomination by making an HTTP GET request and returns formatted JSON with the pricing information or error details.
    async def get_etf_price_by_paloma_denom(ctx: Context, paloma_denom: str) -> str: """Get ETF price by Paloma denomination. Args: paloma_denom: Paloma denomination (e.g., factory/paloma18xrvj2ffxygkmtqwf3tr6fjqk3w0dgg7m6ucwx/palomagold) Returns: JSON string with ETF price data. """ try: paloma_ctx = ctx.request_context.lifespan_context # Call Paloma DEX API to get custom pricing by denom # Note: This endpoint might need to be confirmed with Paloma team api_url = f"https://api.palomadex.com/etfapi/v1/customprice?paloma_denom={paloma_denom}" response = await paloma_ctx.http_client.get(api_url) if response.status_code == 200: price_data = response.json() result = { "paloma_denom": paloma_denom, "pricing": price_data, "timestamp": asyncio.get_event_loop().time(), "source": "paloma_dex_api_denom" } return json.dumps(result, indent=2) else: return f"Error: Failed to fetch ETF price for denom {paloma_denom}. Status: {response.status_code}" except Exception as e: logger.error(f"Error getting ETF price by paloma denom: {e}") return f"Error getting ETF price by paloma denom: {str(e)}"

Latest Blog Posts

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/VolumeFi/mcpPADEX'

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