Explore our growing ecosystem of DeAI applications in the awesome-aiforge repository.
Gain deep insights across 8+ blockchains with real-time data from 3000+ protocols. Power your AI agents with cross-chain analytics, arbitrage detection, and portfolio management.
Monitor token prices across all supported blockchains
Deep liquidity insights across DeFi protocols
Comprehensive multi-chain portfolio management
Advanced market insights and trend analysis
import { MultiChainAnalytics } from '@aiforge/sdk'
const analytics = new MultiChainAnalytics({
apiKey: 'your-api-key',
chains: ['ethereum', 'polygon', 'arbitrum', 'optimism']
})
// Get cross-chain token data
const tokenData = await analytics.getTokenData({
symbol: 'USDC',
chains: ['ethereum', 'polygon', 'arbitrum'],
metrics: ['price', 'volume', 'liquidity', 'market_cap']
})
console.log('Cross-chain USDC data:', tokenData)
// Detect arbitrage opportunities
const opportunities = await analytics.findArbitrageOpportunities({
token: 'WETH',
minProfitPercent: 0.5, // 0.5% minimum profit
maxGasPrice: 50, // 50 gwei max
includeGasCosts: true,
bridges: ['hop', 'across', 'stargate']
})
for (const opp of opportunities) {
console.log(`Arbitrage found:`)
console.log(` Token: ${opp.token}`)
console.log(` Buy on ${opp.buyChain} at $${opp.buyPrice}`)
console.log(` Sell on ${opp.sellChain} at $${opp.sellPrice}`)
console.log(` Profit: ${opp.profitPercent}% ($${opp.profitUSD})`)
console.log(` Gas cost: $${opp.gasCostUSD}`)
}
// Multi-chain portfolio analysis
const portfolio = await analytics.getPortfolioAnalysis({
walletAddresses: {
ethereum: '0x1234...',
polygon: '0x1234...',
arbitrum: '0x1234...'
},
timeframe: '30d',
includeDeFiPositions: true
})
console.log('Portfolio Summary:')
console.log(`Total Value: $${portfolio.totalValue}`)
console.log(`30d Return: ${portfolio.return30d}%`)
console.log(`Sharpe Ratio: ${portfolio.sharpeRatio}`)
console.log(`Max Drawdown: ${portfolio.maxDrawdown}%`)
// Chain breakdown
portfolio.chainBreakdown.forEach(chain => {
console.log(`${chain.name}: $${chain.value} (${chain.percentage}%)`)
})
Exploit price differences between chains for guaranteed profits
Find the best yield opportunities across all chains
Monitor and manage risk across multi-chain positions
Deep insights into cross-chain market dynamics