- Use v20 REST API only if you have a v20 account
- Use v1 REST API if your account id contains only digits (ie. 2534253) as it is a legacy account
Setting the following values will modify all examples to use the provided configuration. This may help to generate examples that can be copied and without further modification.
Leverage trading is high risk and not suitable for all. You could lose all of your deposited funds. Articles are for general information purposes only and are not investment advice or a solution to buy or sell any investment product. Opinions are those of the authors and not necessarily those of OANDA, its officers, or its directors. Examples shown are for illustrative purposes only and may not reflect current prices or offers from OANDA