cryptotrader
This is an experimental trading bot framework written in PHP. It may contain bugs and should not be trusted with much money
System Structure
저장소별 전략/실행 조건 확인 필요
거래소 API 기반 자동 주문 실행
Editor Summary저장소 설명과 공개 메타데이터 기준으로 암호화폐 거래 봇, 거래소 API/프레임워크, 기술적 분석 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Coinbase, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 144개, 포크 47개입니다.
| Repository | HaschekSolutions/cryptotrader |
|---|---|
| Creator | HaschekSolutions |
| Stars / Forks | ★ 144 / 47 |
| License | Other |
| Last Updated | 2020-08-27 |
| Snapshot Date | 2026-07-08 (README below is a copy from this date) |
This is third-party open-source code. QuantField does not guarantee its behavior or safety. Review the code before installing or running it.
README
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.phptoconfig.inc.php - Create an API key on https://pro.coinbase.com/profile/api and fill in the values in your
config.inc.phpfile - Install PHP
- Windows: Download from windows.php.net
- Linux:
apt-get install php5or better yetapt-get install php7.1if available - MacOS: Install homebrew and then
brew updatefollowed bybrew upgrade php. Apple is not including PHP in future versions of MacOS. If it is missingbrew install php.
- Run a bot or the example scripts with php

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 | | -------------