The Trade Scripts Python code allows you to Get specific Trade or all open Trades, Close an open Trade and Set Trade Client Extensions. It demonstrates the use of OANDA's v20 REST API along with OANDA's v20 bindings for Python. The API allows you to develop trading strategies and automate your trading experience. OANDA is a forex broker enabling you to trade over 90 currency pairs, metals, and CFDs while providing FX & CFD trading, exchange rates data and corporate FX payments.
While we typically associate API trading with big brokerages or hedge funds running high-frequency arbitrage strategies, in reality, it's a broader market with many more opportunities for entry than most people think. API trading involves executing trades that are generally placed by an algorithm.