Giter VIP home page Giter VIP logo

bleutrade-bot's Introduction

BleuTrade-Bot

These PHP scripts provide the tools to customize and run your own algorithmic trading bot for use with the Bleutrade exchange. A big thank-you to beefviper, who wrote the bleutrade_function.php script to provide php wrappers for all of the Bleutrade API methods! Here is a link to the original repository: https://github.com/beefviper/BleuTrade-API-PHP

#Candle.php The Candle.php class (located in classes directory) models a candle taken from a market. Candles contain data regarding a commodity's opening, high, low, and closing price over a certain interval of time. For more information on what candles are, and how to successfully analyze them, see this article from Investopedia: http://www.investopedia.com/terms/c/candlestick.asp

Main.php

Main.php takes interval arguments from the command line and runs several simple analyses on market candles of these intervals. For example, to analyze 4 and 8 hour intervals enter:

php -f Main.php 4h 8h

market_analysis.php

market_anlaysis.php provides the analytical tools that Main.php uses to examine an array of Candle objects. To customize this bot, write your own analysis functions here and include them in Main.php.

#create_file.php This script creates or overwrites the text file "activity.txt" and writes the current date to the top of the file. To write to the activity.txt file, pipe all output from the Main.php file to activity.txt using the tee command. For example:

php -f Main.php 4h | tee activity.txt

#report.php This script emails the contents of activity.txt to the specified email address. Use it to receive regular reports on what your bot has been doing.

#crontab This is one example crontab that can be used with a unix-based machine to schedule Main.php to run on certain intervals.

bleutrade-bot's People

Contributors

berlinquin avatar beefviper avatar

Stargazers

 avatar  avatar  avatar Bruno Arueira avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.