This repository is intended for my personal notes and portfolio purposes on LinkedIn. I do not expect any contributions from others. Thank you for understanding!
This repository contains a Proof of Concept (POC) for a trading robot designed for the OANDA Forex platform. The trading robot automates trading strategies and interacts with the OANDA API to execute trades based on predefined rules.
- Automated Trading: Executes trades automatically based on predefined strategies.
- OANDA API Integration: Interacts with the OANDA Forex platform using their API.
- Strategy Customization: Allows users to define and customize their trading strategies.
- Real-time Data: Fetches real-time market data to make informed trading decisions.
- Logging and Monitoring: Logs trading activities and monitors performance.
- Python 3.x
- OANDA API credentials
-
Clone the repository:
git clone https://github.com/ariogunawan/POC-Oanda-Trading-Robot-API.git cd POC-Oanda-Trading-Robot-API
-
Install the required packages:
pip install -r requirements.txt
- Set up your OANDA API credentials:
- Create a
.env
file in the root directory. - Add your OANDA API credentials to the
.env
file:OANDA_API_KEY=your_api_key OANDA_ACCOUNT_ID=your_account_id
- Create a
-
Run the trading robot:
python main.py
-
The trading robot will:
- Fetch real-time market data from OANDA.
- Execute trades based on the predefined strategies.
- Log all trading activities and monitor performance.
oanda_monitoring.py
: The main script to run the trading robot.oanda_class.py
: Contains functions to interact with the OANDA API.requirements.txt
: List of required Python packages..env.example
: Example environment file for OANDA API credentials.
This project is licensed under the MIT License. See the LICENSE file for details.
This repository is intended for my personal notes and portfolio purposes on LinkedIn. I do not expect any contributions from others. Thank you for understanding!