Examples
import axios from 'axios';
const API_URL = 'https://pro.circular.fi/finder';
const API_KEY = 'your-api-key'; // Replace with your key
const params = {
tokensMint: ['So11111111111111111111111111111111111111112'].join(','),
tokensExclude: [
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB' // USDT
].join(','),
tokensMax: 10,
tokensTimeRange: 3600,
tokensAMMS: ['LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo,5'].join(','),
thresholdMaxTimeRange: 3600,
thresholdProfits: 0,
thresholdRevenues: 0,
thresholdTransactions: 0,
thresholdProvider: 'ALL',
thresholdBot: 'ALL',
percentilesFees: 'p50',
percentilesTips: 'p50',
percentilesProvider: 'ALL',
percentilesBot: 'ALL',
percentilesTimeRange: 3600
};
async function getFinder() {
try {
const res = await axios.get(API_URL, {
headers: { 'Content-Type': 'application/json', 'x-api-key': API_KEY },
params
});
console.log('Finder:', res.data);
} catch (e) {
console.error('Error:', e?.response?.data || e.message);
}
}
getFinder();Last updated