시스템자가 보고크립토PHPautotraderbitcoinbotbtceth

cryptotrader

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

시스템 구조

활용 데이터
Coinbase가격/거래량 데이터
규칙 / 전략

저장소별 전략/실행 조건 확인 필요

실행

거래소 API 기반 자동 주문 실행

에디터 요약

저장소 설명과 공개 메타데이터 기준으로 암호화폐 거래 봇, 거래소 API/프레임워크, 기술적 분석 성격의 프로젝트로 파악했습니다. 확인 근거는 README, 저장소 토픽, 저장소 설명, GitHub 지표, 파이프라인 필드이며, 주요 데이터는 Coinbase, 가격/거래량 데이터입니다. 전략/실행 조건은 저장소별 문서와 코드 확인이 필요하며, 실행 방식은 "거래소 API 기반 자동 주문 실행"라고 보수적으로 기록했습니다. GitHub 지표는 별 144개, 포크 47개입니다.

저장소HaschekSolutions/cryptotrader
제작자HaschekSolutions
스타 / 포크★ 144 / 47
라이선스Other
최근 업데이트2020-08-27
스냅샷 시점2026-07-08 (아래 README는 이 시점의 사본입니다)

아래는 제3자가 작성·공개한 오픈소스 코드입니다. QuantField는 해당 코드의 동작과 안전성을 보증하지 않으며, 설치·실행 전 코드를 직접 검토하시기 바랍니다.

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