OANDA is a global leader in online multi-asset trading services, currency data, corporate payments and FX services.
Go to siteWhat 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}`,
},
})
},
})
OANDA uses API keys for authentication. When you connect your OANDA account, Pipedream securely stores the keys so you can easily authenticate to OANDA APIs in both code and no-code steps.
A personal access token can be used to access your account through the OANDA v20 API. Once created, a token will grant access to all of your sub-accounts. Please note, your personal access token is like a password, so you should guard it carefully. These tokens are unique to an OANDA account and should be stored securely.
Obtaining a Personal Access Token
There is a link on your OANDA fxTrade account profile page titled “Manage API Access” (My Account -> My Services -> Manage API Access). From there, you can generate a personal access token to use with the OANDA API, as well as revoke a token you may currently have.
For more information, refer to OANDA's documentation.