All Projects → palencar → TraderBot

palencar / TraderBot

Licence: other
No description or website provided.

Programming Languages

r
7636 projects
TSQL
950 projects
shell
77523 projects

Projects that are alternatives of or similar to TraderBot

rb3
A bunch of downloaders and parsers for data delivered from B3
Stars: ✭ 52 (+33.33%)
Mutual labels:  finance, brazil, market-data, financial-data, exchange-data
dados-financeiros
Repositório de Fontes de Dados Financeiros do Brasil
Stars: ✭ 119 (+205.13%)
Mutual labels:  finance, market-data, financial-data
NasdaqCloudDataService-SDK-Java
Nasdaq Data Link provides a modern and efficient method of delivery for real-time exchange data and other financial information. This repository provides a Java SDK for developing applications using Nasdaq Data Link's real-time data.
Stars: ✭ 70 (+79.49%)
Mutual labels:  market-data, financial-data, exchange-data
Awesome Quant
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
Stars: ✭ 8,205 (+20938.46%)
Mutual labels:  finance, trading-bot, financial-data
dukascopy-tools
✨ Download historical price tick data for Crypto, Stocks, ETFs, CFDs, Forex via CLI and Node.js ✨
Stars: ✭ 128 (+228.21%)
Mutual labels:  market-data, stock-prices
fhub
Python client for Finnhub API
Stars: ✭ 31 (-20.51%)
Mutual labels:  finance, financial-data
akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
Stars: ✭ 5,155 (+13117.95%)
Mutual labels:  finance, financial-data
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+992.31%)
Mutual labels:  finance, financial-data
cira
Cira algorithmic trading made easy. A Façade library for simpler interaction with alpaca-trade-API from Alpaca Markets.
Stars: ✭ 21 (-46.15%)
Mutual labels:  finance, trading-bot
pytickersymbols
Fundamental stock data and yahoo/google ticker symbols for several indices.
Stars: ✭ 69 (+76.92%)
Mutual labels:  finance, financial-data
roq-samples
How to use the Roq C++20 API for Live Cryptocurrency Algorithmic and High-Frequency Trading as well as for Back-Testing and Historical Simulation
Stars: ✭ 119 (+205.13%)
Mutual labels:  trading-bot, market-data
fundamentos
Download Bovespa Stock Market fundamentals with Python.
Stars: ✭ 80 (+105.13%)
Mutual labels:  finance, bovespa
Mida
The open-source and cross-platform trading framework
Stars: ✭ 263 (+574.36%)
Mutual labels:  finance, trading-bot
Block Codes
This depository uses SEC EDGAR data in Schedule 13D and Schedule 13G data to find all positions above 5% in all US stocks between 1994 and 2018.
Stars: ✭ 55 (+41.03%)
Mutual labels:  finance, financial-data
TradeBot
Crypto trading bot using Binance API (Java)
Stars: ✭ 292 (+648.72%)
Mutual labels:  trading-bot, market-data
financial-asset-comparison-tool
R Shiny app to compare the relative performance of cryptos and equities.
Stars: ✭ 97 (+148.72%)
Mutual labels:  shiny, quantmod
futu algo
Futu Algorithmic Trading Solution (Python) 基於富途OpenAPI所開發量化交易程序
Stars: ✭ 143 (+266.67%)
Mutual labels:  finance, trading-bot
intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (+102.56%)
Mutual labels:  market-data, stock-prices
intrinio-realtime-java-sdk
Intrinio Java SDK for Real-Time Stock Prices
Stars: ✭ 22 (-43.59%)
Mutual labels:  market-data, stock-prices
rRofex
R library to connect to Matba Rofex's Trading API. Functionality includes accessing account data and current holdings, retrieving investment quotes, placing and canceling orders, and getting reference data for instruments.
Stars: ✭ 21 (-46.15%)
Mutual labels:  finance, market-data

TraderBot

Installation

Ubuntu Dependencies

sudo apt-get install -y r-base r-base-dev sqlite3 libxml2-dev libmysqlclient-dev libssl-dev libssh2-1-dev libcurl4-openssl-dev

Clone repository

Clone the git repository.

git clone https://github.com/palencar/TraderBot
cd TraderBot

Using MySQL Database

Create the database using the schema file mysql-schema.sql. Uncomment the following lines o the file config.yml. Set the values for host, database, user and password.

engine:   "mysql"
host:     "db_hostname"
database: "db_name"
user:     "db_username"
password: "db_password"

Using SQLite Database

Create the database from the schema file.

sqlite3 db.sqlite < sqlite3-schema.sql

Uncoment the following lines on the file config.yml:

engine:   "sqlite"
database: "db.sqlite"

Install Packages on R

Start a R session.

R

Install devtools Package.

install.packages("devtools")

Install TraderBot and dependencies.

library(devtools)
install_git(".")

Using

Load TraderBot

library(TraderBot)

Download Data

intraday

Download daily data from google.

saveSymbolsDaily("BVMF3")

Daily

Download last 15 days of intraday data from google.

saveSymbolsIntraday("BVMF3")

Splits and Dividends

updateAdjust("BVMF3")

Notes

The data is automatically updated only on live trading. If there's not enough data, the operation (trade, simulation or backtest) will be skipped.

Backtest

Test strategy for minSamples random parameters. The parameter limits are defined on config.yml.

computeBacktest(Symbols = "BVMF3", minSamples = 1000, timeFrame="1D")

Simulate

Test strategy using the values on the tradeParameters.csv file. Every line defines the parameters for a given time frame.

computeSimulation(Symbols = "BVMF3", timeFrame="1D")

Live Trading

Update assets on database and execute the strategy. The parameter timeFrame can be one of the following: 1D, 1H, 30M, 15M, 10M and 5M.

computeStream(Symbols = "BVMF3", timeFrames = c("5M", "10M", "15M", "30M", "1H", "1D"))

If an alert is triggered, the results ar shown on the terminal like below. The chart is written on charts directory.

[1] "Chart [RPMG3] [15M] [2018-01-03 16:40:00]: buy"
[1] "Chart [EMBR3] [30M] [2018-01-03 13:00:00]: sell"
[1] "Chart [CTKA4] [15M] [2018-01-02 14:18:00]: buy"
[1] "Chart [SPXI11] [30M] [2018-01-02 11:16:00]: sell"
  symbol timeframe            datetime alert price
1  RPMG3       15M 2018-01-03 16:40:00   buy  8.19
2  EMBR3       30M 2018-01-03 13:00:00  sell 21.02
3  CTKA4       15M 2018-01-02 14:18:00   buy  3.05
8 SPXI11       30M 2018-01-02 11:16:00  sell 90.47

It is possible to send to email with mutt or copy to aws s3 bucket using the alert options on config.yml.

Shiny App

A simple Shiny App showing charts of the wallet symbols, alerts triggered, etc.

runShinyApp()

screenshot_20180105_133451

Shell Scripts

There are some shell scripts calling various module functions on sh directory.

Live trading for all the symbols included on database.

sh/live.sh
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].