Examples

// Define constants
const API_URL = 'https://pro.circular.bot/market/cache';
const API_KEY = 'your-api-key'; // Replace by your API Key

const requestOptions = {
    headers: {
        'Content-Type': 'application/json',
        'x-api-key': API_KEY,
    },
    params: {
        onlyjup: false,
        tokens: [
            "So11111111111111111111111111111111111111112",
            "BbtrrZ2ExfCTzrndFBCx5iNDFXxuVxNMdEZ14BZxpump",
            "6b7NtVRo6jDSUZ75qfhHgpy99XVkSu1kfoTFu2E3pump",
        ].join(',')
    },
};

const getFilteredMarketCache = async () => {
    try {
        const response = await axios.get(API_URL, requestOptions);

        console.log('Market-Cache: ', response?.data);
    } catch (error) {
        console.log('Error: ', error?.response?.data);
    }
};

getFilteredMarketCache();

Last updated