百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

oandapybot

> 编程语言
开源

一个简单的 Python 机器人,用于在 oanda.com 上交易外汇

181 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个简单的 Python 机器人,用于在 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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