import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
marketstack: {
type: "app",
app: "marketstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.marketstack.com/v1/tickers`,
params: {
access_key: `${this.marketstack.$auth.api_key}`,
},
})
},
})
Marketstack uses API keys for authentication. When you connect your Marketstack account, Pipedream securely stores the keys so you can easily authenticate to Marketstack APIs in both code and no-code steps.
Sign in and copy your API key directly from your dashboard.