OANDA is a global leader in online multi-asset trading services, currency data, corporate payments and FX services.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
What You Can Build With the OANDA API
The OANDA API allows developers to build a wide range of financial trading
applications. It provides APIs for Spot, FX, and CFD Trading, Historical
Currency Conversion, and Exchange Rates. With the tools and services offered by
OANDA, you can create the following types of programs and applications:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
oanda: {
type: "app",
app: "oanda",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-fxtrade.oanda.com/v3/accounts`,
headers: {
Authorization: `Bearer ${this.oanda.$auth.personal_token}`,
},
})
},
})
// 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
},
})