octav-api
정보
octav-api 스킬은 개발자가 애플리케이션에 멀티체인 암호화폐 포트폴리오 추적 및 DeFi 분석 기능을 통합할 수 있도록 지원합니다. 이 스킬은 65개 이상의 블록체인에서 지갑 잔액 추적, 거래 내역 조회, DeFi 포지션 모니터링을 제공합니다. 애플리케이션에서 통합된 암호화폐 포트폴리오 데이터나 온체인 분석이 필요한 경우 이 스킬을 사용하세요.
빠른 설치
Claude Code
추천npx skills add Octav-Labs/octav-api-skill -a claude-code/plugin add https://github.com/Octav-Labs/octav-api-skillgit clone https://github.com/Octav-Labs/octav-api-skill.git ~/.claude/skills/octav-apiClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Octav API Integration
API for cryptocurrency portfolio tracking, transaction history, and DeFi analytics.
Quick Reference
Base URL: https://api.octav.fi
Auth: Bearer token in Authorization header
Rate Limit: 360 requests/minute/key
Pricing: Credit-based ($0.02-0.025/credit)
Dev Portal: https://data.octav.fi
Authentication
curl -X GET "https://api.octav.fi/v1/credits" \
-H "Authorization: Bearer YOUR_API_KEY"
Store API key in environment variable OCTAV_API_KEY. Never hardcode.
Endpoints Overview
| Endpoint | Method | Cost | Description |
|---|---|---|---|
/v1/portfolio | GET | 1 credit | Portfolio holdings across chains/protocols |
/v1/nav | GET | 1 credit | Net Asset Value (simple number) |
/v1/transactions | GET | 1 credit | Transaction history with filtering |
/v1/token-overview | GET | 1 credit | Token breakdown by protocol (PRO only) |
/v1/historical | GET | 1 credit | Historical portfolio snapshots |
/v1/sync-transactions | POST | 1+ credits | Trigger transaction sync |
/v1/status | GET | Free | Check sync status |
/v1/credits | GET | Free | Check credit balance |
Core Endpoints
Portfolio
Get holdings across wallets and DeFi protocols.
const response = await fetch(
`https://api.octav.fi/v1/portfolio?addresses=${address}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
const portfolio = await response.json();
// portfolio.networth, portfolio.assetByProtocols, portfolio.chains
Parameters:
addresses(required): Comma-separated EVM/Solana addressesincludeNFTs: Include NFT holdings (default: false)includeImages: Include asset/protocol image URLs (default: false)waitForSync: Wait for fresh data if stale (default: false)
Response structure:
{
"address": "0x...",
"networth": "45231.89",
"assetByProtocols": {
"wallet": { "key": "wallet", "name": "Wallet", "value": "12453.20", "assets": [...] },
"aave_v3": { "key": "aave_v3", "name": "Aave V3", "value": "8934.12", "assets": [...] }
},
"chains": {
"ethereum": { "value": "25123.45", "protocols": [...] },
"arbitrum": { "value": "20108.44", "protocols": [...] }
}
}
Nav (Net Asset Value)
Get simple net worth number.
const response = await fetch(
`https://api.octav.fi/v1/nav?addresses=${address}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
const nav = await response.json(); // Returns: 1235564.43434
Transactions
Query transaction history with filtering.
const params = new URLSearchParams({
addresses: '0x...',
limit: '50',
offset: '0',
sort: 'DESC',
hideSpam: 'true'
});
const response = await fetch(
`https://api.octav.fi/v1/transactions?${params}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
Required parameters:
addresses: Wallet address(es)limit: Results per page (1-250)offset: Pagination offset
Optional filters:
sort:DESC(newest) orASC(oldest)networks: Chain filter (e.g.,ethereum,arbitrum,base)txTypes: Transaction type filter (e.g.,SWAP,DEPOSIT)protocols: Protocol filter (e.g.,uniswap_v3,aave_v3)hideSpam: Exclude spam (default: false)hideDust: Exclude dust transactions (default: false)startDate/endDate: ISO 8601 date rangeinitialSearchText: Full-text search in assets
Response (array of transactions):
[{
"hash": "0xa1b2c3...",
"timestamp": "1699012800",
"chain": { "key": "ethereum", "name": "Ethereum" },
"type": "SWAP",
"protocol": { "key": "uniswap_v3", "name": "Uniswap V3" },
"fees": "0.002134",
"feesFiat": "7.12",
"assetsIn": [{ "symbol": "WETH", "amount": "1.5", "value": "4800.00" }],
"assetsOut": [{ "symbol": "USDC", "amount": "4795.23", "value": "4795.23" }]
}]
Sync Transactions
Trigger manual sync for fresh transaction data.
const response = await fetch('https://api.octav.fi/v1/sync-transactions', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ addresses: ['0x...'] })
});
// Returns: "Address is syncing" or "Address already syncing"
Cost: 1 credit + 1 credit per 250 transactions indexed (first-time only).
Status (Free)
Check sync status before expensive operations.
const response = await fetch(
`https://api.octav.fi/v1/status?addresses=${address}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
const [status] = await response.json();
// status.portfolioLastSync, status.transactionsLastSync, status.syncInProgress
Credits (Free)
Check remaining credit balance.
const credits = await fetch('https://api.octav.fi/v1/credits', {
headers: { 'Authorization': `Bearer ${apiKey}` }
}).then(r => r.json());
// Returns: 19033 (number)
Historical Portfolio
Get portfolio snapshot for a specific date. Requires subscription.
const response = await fetch(
`https://api.octav.fi/v1/historical?addresses=${address}&date=2024-11-01`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
Token Overview (PRO Only)
Detailed token breakdown by protocol.
const response = await fetch(
`https://api.octav.fi/v1/token-overview?addresses=${address}&date=2024-11-01`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
Transaction Types
Common types for filtering:
| Type | Description |
|---|---|
TRANSFERIN | Received tokens |
TRANSFEROUT | Sent tokens |
SWAP | Token exchange |
DEPOSIT | DeFi deposit |
WITHDRAW | DeFi withdrawal |
STAKE | Staking tokens |
UNSTAKE | Unstaking tokens |
CLAIM | Reward claims |
ADDLIQUIDITY | LP deposit |
REMOVELIQUIDITY | LP withdrawal |
BORROW | Lending protocol borrow |
LEND | Lending protocol supply |
BRIDGEIN / BRIDGEOUT | Cross-chain bridge |
APPROVAL | Token approval |
MINT | NFT/token minting |
Supported Chains
Full support (portfolio + transactions): ethereum, arbitrum, base, polygon, optimism, avalanche, binance, solana, blast, linea, gnosis, sonic, starknet, fraxtal, unichain
Portfolio only: scroll, zksync (era), mantle, manta, fantom, cronos, celo, and 40+ more
Use chain keys in networks filter: ?networks=ethereum,arbitrum,base
Error Handling
async function fetchWithRetry(url, options, maxRetries = 3) {
for (let i = 0; i < maxRetries; i++) {
const response = await fetch(url, options);
if (response.status === 429) {
const retryAfter = response.headers.get('Retry-After') || 60;
await new Promise(r => setTimeout(r, retryAfter * 1000));
continue;
}
if (!response.ok) {
const error = await response.json();
throw new Error(`API Error ${response.status}: ${error.message}`);
}
return response;
}
throw new Error('Max retries exceeded');
}
Common errors:
401: Invalid/missing API key402: Insufficient credits403: Endpoint requires PRO subscription429: Rate limit exceeded (wait and retry)404: Address not indexed (>100k transactions)
Cost Optimization
- Batch addresses:
?addresses=0x123,0x456,0x789(1 credit vs 3) - Use free endpoints:
/v1/statusand/v1/creditscost nothing - Filter on server: Use
networks,txTypesparams vs client filtering - Cache results: Portfolio cached 1 minute, transactions 10 minutes
- Check status first: Avoid unnecessary syncs
Common Patterns
Multi-wallet portfolio
const addresses = ['0x123...', '0x456...', '0x789...'];
const response = await fetch(
`https://api.octav.fi/v1/portfolio?addresses=${addresses.join(',')}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
Paginated transaction fetch
async function getAllTransactions(address) {
const transactions = [];
let offset = 0;
const limit = 250;
while (true) {
const response = await fetch(
`https://api.octav.fi/v1/transactions?addresses=${address}&limit=${limit}&offset=${offset}&sort=DESC`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
const batch = await response.json();
if (batch.length === 0) break;
transactions.push(...batch);
offset += batch.length;
if (batch.length < limit) break;
}
return transactions;
}
Smart sync workflow
async function smartSync(address) {
// Check status first (free)
const [status] = await fetch(
`https://api.octav.fi/v1/status?addresses=${address}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
).then(r => r.json());
const lastSync = new Date(status.transactionsLastSync);
const minutesSinceSync = (Date.now() - lastSync) / 1000 / 60;
if (minutesSinceSync > 10 && !status.syncInProgress) {
await fetch('https://api.octav.fi/v1/sync-transactions', {
method: 'POST',
headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ addresses: [address] })
});
}
}
TypeScript Interfaces
interface Portfolio {
address: string;
networth: string;
cashBalance: string;
dailyIncome: string;
dailyExpense: string;
fees: string;
feesFiat: string;
lastUpdated: string;
assetByProtocols: Record<string, Protocol>;
chains: Record<string, Chain>;
}
interface Protocol {
key: string;
name: string;
value: string;
assets: Asset[];
}
interface Asset {
balance: string;
symbol: string;
price: string;
value: string;
contractAddress?: string;
chain?: string;
}
interface Transaction {
hash: string;
timestamp: string;
chain: { key: string; name: string };
from: string;
to: string;
type: string;
protocol?: { key: string; name: string };
value: string;
valueFiat: string;
fees: string;
feesFiat: string;
assetsIn: Asset[];
assetsOut: Asset[];
functionName?: string;
}
Pricing
| Package | Credits | Price | Per Credit |
|---|---|---|---|
| Starter | 4,000 | $100 | $0.025 |
| Small Team | 100,000 | $2,500 | $0.025 |
| Intensive | 1,000,000 | $20,000 | $0.020 |
Credits never expire. First-time address indexing: 1 credit per 250 transactions.
Resources
- Dev Portal: https://data.octav.fi
- API Docs: https://docs.octav.fi
- Discord: https://discord.com/invite/qvcknAa73A
- Protocol List: https://protocols.octav.fi
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
