import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
coingecko: {
type: "app",
app: "coingecko",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pro-api.coingecko.com/api/v3/ping`,
headers: {
"accept": `application/json`,
"x-cg-pro-api-key": `${this.coingecko.$auth.api_key}`,
},
})
},
})
CoinGecko uses API keys for authentication. When you connect your CoinGecko account, Pipedream securely stores the keys so you can easily authenticate to CoinGecko APIs in both code and no-code steps.