Commands

Overview

Lillo provides three main commands for accessing cryptocurrency market data:

  • /ticker - Detailed token information lookup

  • /dex - Solana DEX market data

  • /gecko - Global cryptocurrency market data

Command Reference

1. Ticker Command

/ticker <symbol>

Fetches detailed token information by symbol or address.

Parameters:

  • symbol (required): Token symbol or contract address

Features:

  • Fetches data through webapp endpoint

  • Supports both symbol and address lookups

  • Detailed token metrics

  • Social links and profile information (if available)

  • AI-powered market analysis using GPT-4o-mini

Response Format:

🪙 Token Name (SYMBOL)
<contract_address>

📊 Market Data
💎 Market Cap: $XXX
💰 Price: $XXX
🟢/🔴 Price Change: XX%
💧 Liquidity: $XXX
📊 Volume 24h: $XXX

📈 Time-Based Changes
1h: XX%
6h: XX%
24h: XX%

[Social Links if available]
[AI Analysis]

2. DEX Command

/dex [type]

Fetches real-time market data from DexScreener for Solana tokens.

Parameters:

  • type (optional): The type of data to fetch

    • trending (default) - Fetches top 50 trending tokens by volume, displays top 10

    • latest - Fetches 50 most recently created pairs, displays top 10

    • boosted - Fetches 50 most boosted tokens, displays top 10

Features:

  • Solana chain focused

  • Volume-based sorting

  • AI market analysis using GPT-4o-mini

  • Top 10 tokens display from 50 fetched

Response Format:

📊 Market Analysis
[AI-generated market analysis]

──────────────────────

📊 Market Data
[Top 10 tokens with details]
• Name and Symbol
• Market Cap
• Current Price
• Price Change (24h)
• Liquidity
• Volume 24h

3. Gecko Command

/gecko [type]

Retrieves market data from CoinGecko for major cryptocurrencies.

Parameters:

  • type (optional): The type of data to fetch

    • market (default) - Fetches top 50 by market cap, displays top 10

    • trending - Shows trending coins

Features:

  • Global market coverage

  • Market cap rankings

  • 24h and 7d price changes

  • AI market analysis using GPT-4o-mini

Response Format:

📊 Market Analysis
[AI-generated market analysis]

──────────────────────

📊 Market Data
[Top 10 coins with details]
• Name and Symbol
• Market Cap
• Current Price
• Price Changes (24h, 7d)
• Volume 24h

Implementation Details

Retry Logic

  • All commands implement retry logic (max 3 attempts)

  • Exponential backoff between retries (1s, 2s, 3s)

  • Clear error messages on failure

AI Analysis

  • Uses GPT-4o-mini model

  • Considers current market conditions

  • Provides actionable insights

  • Formatted with emojis and sections

Error Handling

  • Validates input parameters

  • Provides clear error messages

  • Handles API failures gracefully

  • Retries on transient failures

Best Practices

  1. Command Usage

    • Use /ticker for specific token lookups

    • Use /dex for Solana market overview

    • Use /gecko for global market overview

  2. Rate Limiting

    • Allow time between requests

    • Respect API limitations

    • Wait for retry attempts on failures

  3. Error Recovery

    • Check input parameters

    • Wait for retry attempts

    • Report persistent errors

Last updated