Kucoin Crypto Exchange
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Kucoin Futures API allows developers to programmatically access Kucoin's
futures trading functionality. Using the API, developers can create
applications that can trade futures contracts on Kucoin's platform.
Here are some examples of what you can build using the Kucoin Futures API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kucoin_futures: {
type: "app",
app: "kucoin_futures",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-futures.kucoin.com/api/v1/timestamp`,
headers: {
"api_key": `${this.kucoin_futures.$auth.api_key}`,
"secret_key": `${this.kucoin_futures.$auth.secret_key}`,
"passphrase": `${this.kucoin_futures.$auth.passphrase}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})