All Projects → HaschekSolutions → Cryptotrader

HaschekSolutions / Cryptotrader

Licence: other
This is an experimental trading bot framework written in PHP. It may contain bugs and should not be trusted with much money

Projects that are alternatives of or similar to Cryptotrader

Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+94.44%)
Mutual labels:  bot, ethereum, bitcoin, btc, eth, trading
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+20734.26%)
Mutual labels:  bot, ethereum, bitcoin, btc, eth, trading
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+45.37%)
Mutual labels:  ethereum, bitcoin, btc, eth, trading
Cbpro Trader
Automated cryptocurrency trading on Coinbase Pro (formerly gdax-trader)
Stars: ✭ 171 (+58.33%)
Mutual labels:  ethereum, bitcoin, btc, eth, trading
Phptrader
A simple php powered Bitcoin and Ethereum trading bot
Stars: ✭ 131 (+21.3%)
Mutual labels:  bot, ethereum, bitcoin, btc, eth
Telegram Kraken Bot
Python bot to trade on Kraken via Telegram
Stars: ✭ 156 (+44.44%)
Mutual labels:  bot, ethereum, bitcoin, btc, eth
Qtbitcointrader
Secure multi crypto exchange trading client
Stars: ✭ 520 (+381.48%)
Mutual labels:  ethereum, bitcoin, btc, trading
Coinbin.org
₿ A Human–Friendly API Service for Crypto Currency Information.
Stars: ✭ 253 (+134.26%)
Mutual labels:  ethereum, bitcoin, btc, eth
Donate
Cryptocurrency donation daemon
Stars: ✭ 34 (-68.52%)
Mutual labels:  ethereum, bitcoin, btc, eth
Coinpricebar
💰 Cryptocurrency prices on MacBook Touch Bar
Stars: ✭ 290 (+168.52%)
Mutual labels:  ethereum, bitcoin, btc, eth
Openapi
DragonEx OpenAPI
Stars: ✭ 54 (-50%)
Mutual labels:  ethereum, bitcoin, btc, eth
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+3141.67%)
Mutual labels:  ethereum, bitcoin, btc, eth
Optimal Buy Cbpro
Scheduled buying of BTC, ETH, and LTC from Coinbase Pro, optimally!
Stars: ✭ 288 (+166.67%)
Mutual labels:  ethereum, bitcoin, btc, eth
Erc20 Ico Onchain Technical Analysis
An tool to analyze any company's ICO
Stars: ✭ 326 (+201.85%)
Mutual labels:  ethereum, bitcoin, eth, trading
Go Binance
A Go SDK for Binance API
Stars: ✭ 441 (+308.33%)
Mutual labels:  bitcoin, btc, eth
Ta4j Origins
A Java library for technical analysis ***Not maintained anymore, kept for archival purposes, see #192***
Stars: ✭ 354 (+227.78%)
Mutual labels:  ethereum, bitcoin, trading
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (-17.59%)
Mutual labels:  bot, bitcoin, trading
Wolfbot
Crypto currency trading bot written in TypeScript for NodeJS
Stars: ✭ 335 (+210.19%)
Mutual labels:  ethereum, bitcoin, trading
Btcpool Abandoned
backend of pool.btc.com
Stars: ✭ 541 (+400.93%)
Mutual labels:  ethereum, bitcoin, btc
Cointrol
฿ Bitcoin trading bot with a real-time dashboard for Bitstamp.
Stars: ✭ 1,351 (+1150.93%)
Mutual labels:  bot, bitcoin, trading

CryptoTrader by Haschek Solutions

What does it do?

The heart of this repo is the coinbase-pro.php file which is a simple implementation of the Coinbase Pro API written in PHP.

The aim for this project is to create various tools and bots to make trading easier. It doesn't rely on any external APIs or classes rather than php-curl.

ONLY RUN THIS IF YOU KNOW WHAT YOU ARE DOING. IF YOU LOSE MONEY BECAUSE OF A PROGRAMMING ERROR, IT'S YOUR OWN FAULT. You have been warned.

Install

  • Clone this repo or download the zip file
  • Rename example.config.inc.php to config.inc.php
  • Create an API key on https://pro.coinbase.com/profile/api and fill in the values in your config.inc.php file
  • Install PHP
    • Windows: Download from windows.php.net
    • Linux: apt-get install php5 or better yet apt-get install php7.1 if available
    • MacOS: Install homebrew and then brew update followed by brew upgrade php. Apple is not including PHP in future versions of MacOS. If it is missing brew install php.
  • Run a bot or the example scripts with php

API key generation

Bots

Bot 1: Uptrend Surfer

The first bot is the most simple one.

This bot will buy coins for USD/EUR, track the worth of these coins and if it made a profit, sells the profit and waits for more gain to sell. So this bot will only make any money if the worth of the coin is rising steadily. No market analysis or else, just go with the flow.

# Example usage: Buy 100 USD worth of BTC and sell the profits when it gained 10% in value
php bots/uptrendsurfer.php -p BTC-USD -bw 100 -g 10
Parameter What it does
-p product-string The product string in the format "CRYPTO-PAYMENT". eg: BTC-EUR ETH-USD ETH-EUR, etc..
-bw "buy worth in USD/EUR" This amount will be bought in the crypto you specified. eg "-p BTC-USD -w 100" will buy you 100$ worth of Bitcoin
-g "gain in percent needed for selling" This is the percentage increase needed for the bot to sell its profits
-nib No initial buy. Means that the script won't buy the amount you specified when it's run. You can use this to manage coins you already have
-fip "crypto price in USD/EUR" Only in combination with -nib! Uses a crypto price you specify. Can be used to restore older sessions
-sim Simulate only (no sells or buys are done, but the script thinks they were)

Bot 2: Wave Rider

This is an advanced version of the uptrend surfer

This bot is the same as the Uptrend Surfer with the only difference that after selling the gains, the bot will wait for the crypto price to drop by a percentage you specified before re-buying. This makes the bot a little bit more profitable in normal cases but it will miss steady uptrends. That's why this bot should be used in combination of the uptrend surfer so you have the best of both worlds.

# Example usage: Buy 100 USD worth of BTC, sell when it gained 10% in value and re-buy when the BTC price drops by 5%
php bots/waverider.php -p BTC-USD -bw 100 -g 10 -pv 5
Parameter What it does
-p product-string The product string in the format "CRYPTO-PAYMENT". eg: BTC-EUR ETH-USD ETH-EUR, etc..
-bw "buy worth in USD/EUR" This amount will be bought in the crypto you specified. eg "-p BTC-USD -w 100" will buy you 100$ worth of Bitcoin
-g "gain in percent needed for selling" This is the percentage increase needed for the bot to sell its coins
-pv "plummet value in percent for re-buy" This is the percentage the bot will wait for the crypto price to drop before re-buying
-nib No initial buy. Means that the script won't buy the amount you specified when it's run. You can use this to manage coins you already have
-fip "crypto price in USD/EUR" Only in combination with -nib! Uses a crypto price you specify. Can be used to restore older sessions
-sim Simulate only (no sells or buys are done, but the script thinks they were)

Example scripts for devs

There are multiple example scripts which do specific things.

account_info.php

This script when executed displays the account details.

Example output:

[i] Account overview
-----------------
 [i] Currency: ETH
   [ETH] Total balance:                 5.0055172700000000 ETH
   [ETH] Currently in open orders:      3.8327153400000000 ETH
   [ETH] Available:                     1.1728019300000000 ETH

 [i] Currency: BTC
   [BTC] Total balance:                 0.1242994896243332 BTC
   [BTC] Currently in open orders:      0.1242994800000000 BTC
   [BTC] Available:                     0.0000000096243332 BTC

 [i] Currency: USD
   [BTC] Total balance:                 15.000000000000000 BTC
   [BTC] Currently in open orders:      0.000000000000000 BTC
   [BTC] Available:                     15.000000000000000 BTC

price_check.php

This script prints out the market price from the last successful purchase

Example output:

[i] Price info for BTC-EUR
-----------
 [i] Ask price:         2090.98 EUR
 [i] Bid price:         2086.86 EUR
 [i] Spread:            4.1199999999999 EUR
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].