import axios from 'axios'; import type { NimbusPricePrice } from '../types/nimbus.js'; export const nimbusService = axios.create({ baseURL: 'https://api.getnimbus.io/', headers: { 'x-api-key': '5b918d2c-3f8e-4792-805a-5e84da373ae2', }, }); export const nimbusGetPrice = async ({ chain, tokens, }: { chain: string; tokens: string[]; }): Promise => { const { data } = await nimbusService.get('internal/v2/price', { params: { chain: String(chain).toUpperCase(), tokens: tokens.join(','), }, }); return data; };