import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kraken_io: {
type: "app",
app: "kraken_io",
}
},
async run({steps, $}) {
const data = {
"auth": {
"api_key": `${this.kraken_io.$auth.api_key}`,
"api_secret": `${this.kraken_io.$auth.api_secret}`
}
};
return await axios($, {
method: "post",
url: `https://api.kraken.io/user_status`,
headers: {
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
Kraken.io uses API keys for authentication. When you connect your Kraken.io account, Pipedream securely stores the keys so you can easily authenticate to Kraken.io APIs in both code and no-code steps.
Sign in and copy your API key directly from the API Dashboard