with Cryptowatch and Referral Rocket?
The Cryptowatch API offers real-time cryptocurrency market data across multiple exchanges, providing an extensive dataset for traders and developers. With Pipedream, you can harness this data to create automated workflows that react to market changes, analyze trends, or synchronize data across platforms. Whether you're automating trade strategies, alerting on price movements, or consolidating market analysis, Pipedream's serverless platform facilitates rapid development and execution of these tasks without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cryptowatch: {
type: "app",
app: "cryptowatch",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cryptowat.ch/markets/kraken/btceur/price`,
headers: {
"X-CW-API-Key": `${this.cryptowatch.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
referral_rocket: {
type: "app",
app: "referral_rocket",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.referralrocket.io/api/v1/getAllParticipants`,
headers: {
"x-api-key": `${this.referral_rocket.$auth.api_key}`,
},
params: {
id: `${this.referral_rocket.$auth.campaign_id}`,
},
})
},
})