Getting Started
Prerequisites
LLM API Key (OpenAI, Deepseek)
Installation
Follow these simple steps to install and set up Tempus Labs:
Step 1: Install Tempus
Begin by installing the Tempus framework using pip:
pip install tempus-labs==1.0.0Step 2: Create the Environment File
Set up a .env file to store your API key securely:
OPENAI_API_KEY=your_api_key # Fill if you are using OpenAI
DEEPSEEK_API_KEY=your_api_key # Fill if you are using DeepseekStep 3: Basic usage
from tempus.agents import QuantAIAgent
# Initialize with default settings (OpenAI)
agent = QuantAIAgent()
# Basic analysis
response = agent.chat("Analyze pump.fun market trends")
print(response)
# Streaming responses
for chunk in agent.chat_stream("What's happening with $ai16z?"):
chunk.pretty_print()Basic Concepts
QuantAIAgent
The QuantAIAgent is your main interface to the Tempus framework. It provides:
Market analysis capabilities
Real-time data streaming
Multiple LLM provider support
Conversation memory
Market Analysis Tools
Tempus comes with several built-in analysis tools:
Contract Analysis: Deep dive into token contracts
Ticker Analysis: Research specific tokens
Market Trends: Track trending tokens
Meta Market Analysis: Explore token categories (AI, Gaming, Meme)
Data Sources
Tempus integrates with:
Pump.fun for real-time token data
DexScreener for comprehensive market data
Multi-chain support (focused on Solana)
Next Steps
Check out the API Reference for detailed documentation
Learn about advanced features in Advanced Usage
See Examples for more use cases
You're now ready to explore the power of Tempus Labs for AI-driven quantitative insights on the Solana ecosystem!
Last updated