Skip to content

prepfinders/POC-Oanda-Trading-Robot-API

 
 

Repository files navigation

IMPORTANT NOTE

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!

POC Oanda Trading Robot API

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.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3.x
  • OANDA API credentials

Installation

  1. Clone the repository:

    git clone https://github.com/ariogunawan/POC-Oanda-Trading-Robot-API.git
    cd POC-Oanda-Trading-Robot-API
  2. Install the required packages:

    pip install -r requirements.txt

Configuration

  1. 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
      

Usage

  1. Run the trading robot:

    python main.py
  2. 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.

Project Structure

  • 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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

IMPORTANT NOTE

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!

About

Python OANDA Forex Trading Robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%