Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oandapybot

> 编程语言
Open source

Simple python bot for trading forex on oanda.com

181 stars0 likes0 views
WebsiteGitHub

About

Simple python bot for trading forex on oanda.com

oandapybot

============

Simple python bot for trading forex on oanda.com

It can only trade one instrument

Build on top of https://github.com/happydasch/btoandav20

This is only a sample for your robot with simple sample strategy. You NEED to implement better logic, otherwise you WILL loose money.

I have my own strategies that I run this bot with, you need to implement your own logic in strategy.py.

Currently there is a sample moving average cross over as an example.

To install:

If you do not have TA-Lib installed, follow these steps:

1. Get build essentials

$ sudo apt-get install build-essential
$ sudo apt-get install python3-dev
$ sudo apt-get install python3-pip

2. Build TA-Lib

$ wget http://sourceforge.net/projects/ta-lib/files/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz/download?use_mirror=iweb
$ tar zxfv ta-lib-0.4.0-src.tar.gz
$ cd ta-lib
$ ./configure --prefix=/usr
$ make
$ sudo make install

1.3 Install python wrapper

$ sudo pip install Cython
$ sudo pip install numpy
$ sudo pip install TA-Lib

2. Install the rest of dependencies

$ pip install -r requirements.txt

To backtest:

1. Modify settings.py to point your bot to a datafile
2. python main.py backtest

To make money:

1. Modify strategy.py till you happy with backtest results
2. Deposit money into your oanda account

To run:

1. Modify settings.py with your oanda credentials
2. python main.py trade

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言