External Integrations
Overview of partners and protocols integrated with Metalos.
Overview of partners and protocols integrated with Metalos.
Metalos integrates with multiple external platforms and protocols to deliver a comprehensive DeFi experience:
All integrations follow a consistent pattern:
lib/data-sources/[source].ts
lib/data-sources/__tests__/
// lib/data-sources/dexscreener.ts
export async function getTokenPrice(address: string) {
// 1. Check cache first
const cached = await redis.get(`token:${address}`)
if (cached) return JSON.parse(cached)
// 2. Fetch from API
const data = await fetch(`https://api.dexscreener.com/...`)
// 3. Cache response (5 min TTL for price data)
await redis.setex(`token:${address}`, 300, JSON.stringify(data))
return data
}
For technical integration details, see:
docs/base-mini-app-implementation.md
lib/data-sources/
directorynpm run test:integration
.env.example
All integrations follow production-grade patterns with comprehensive error handling, caching, and testing.