{"id":22487832,"url":"https://github.com/geek-at/phptrader","last_synced_at":"2025-08-02T20:31:37.045Z","repository":{"id":152317876,"uuid":"88508413","full_name":"geek-at/phptrader","owner":"geek-at","description":"A simple php powered Bitcoin and Ethereum trading bot","archived":true,"fork":false,"pushed_at":"2017-12-25T12:52:16.000Z","size":30,"stargazers_count":144,"open_issues_count":4,"forks_count":41,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-12-06T17:18:07.203Z","etag":null,"topics":["bitcoin","bot","btc","coinbase","eth","ethereum","php","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geek-at.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-17T13:00:47.000Z","updated_at":"2024-12-03T14:48:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"c08c8259-aa6c-487e-866d-f038f5133c0a","html_url":"https://github.com/geek-at/phptrader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geek-at/phptrader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geek-at%2Fphptrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geek-at%2Fphptrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geek-at%2Fphptrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geek-at%2Fphptrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geek-at","download_url":"https://codeload.github.com/geek-at/phptrader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geek-at%2Fphptrader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bot","btc","coinbase","eth","ethereum","php","trading-bot"],"created_at":"2024-12-06T17:17:17.682Z","updated_at":"2025-08-02T20:31:37.018Z","avatar_url":"https://github.com/geek-at.png","language":"PHP","readme":"# Automated Bitcoin and Ethereum trading bot\n\n# THIS BOT IS NOT MAINTAINED AND WILL BE REMOVED SOON\n\n# Use this alternative: [Hascheksolutions Cryptotrader](https://github.com/HaschekSolutions/cryptotrader)\n\n\n## Tutorial on https://blog.haschek.at/post/feb62\n\n## Features\n- Uses the Coinbase API\n- Works with USD or EUR/USD Wallets\n- Works with Bitcoin or Ethereum\n- Automatically buys when your desired BTC/ETH price is reached\n- Automatically sells when your desired earnings are reached\n- Stores buy/sell data in a local JSON file or on a Redis server\n\n## Requirements\n- A [Coinbase](https://www.coinbase.com) account\n- Some money on your EUR/USD/USD Wallet on Coinbase\n- Raspberry Pi or some Linux box\n- php5 or up\n- [composer](https://getcomposer.org/)\n- (Optional) A Rocket.Chat or Slack webhook which will inform you whenever BTC/ETH are sold or bought\n\n## Install\n1. Download the repo by using ```git clone https://github.com/chrisiaut/phptrader.git``` or download as [ZIP file](https://github.com/chrisiaut/phptrader/archive/master.zip)\n2. Inside the Traderbot directory let composer install the dependencies: ```composer install```\n3. Rename example.config.inc.php to config.inc.php and fill in your data and wether you want to trade BTC or ETH\n\n## Upgrading\n1. Re-download or pull repo\n2. check example.config.inc.php for new settings and add them to your config.inc.php\n3. re-run ```composer install``` in the root directory to install new libraries\n\n## Usage\n| Command  | Parameters                                     | What does it do                                                                                             | Example                                                                                              |\n|----------|------------------------------------------------|-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| buy      | [amount in EUR/USD] [earnings]                 | Buys the amount in EUR/USD and sells when the earnings are reached                                          | buy 100 2 (Buy 100 EUR/USD and sell when the 100 are worth 2 more (102 EUR/USD))                     |\n| sell     | [amount in EUR/USD] [crypto price]             | Adds a high sell order. Will sell amount when the crypto price is reached                                   | sell 300 3000 (Sell 300 EUR/USD when 1 coin is worth 3000 EUR/USD)                                   |\n| order    | [amount in EUR/USD] [earnings] [BTC/ETH price] | Adds a low buy order. Will buy amount when BTC/ETH price is reached and will sell when earnings are reached | order 500 20 1000 (Buy 500 EUR/USD when 1 coin is worth 1000 EUR/USD and sell when 500 are worth 520 |\n| watchdog | -none-                                         | Starts infinite loop where prices are checked and orders are bought/sold                                    |                                                                                                      |\n| list     | -none-                                         | Lists all open transactions with IDs                                                                        |                                                                                                      |\n| delete   | transaction ID                                 | Allows you to delete transactions                                                                           |                                                                                                      |\n| check    | -none-                                         | Checks prices and orders. Does what \"watchdog\" does but only once                                           |                                                                                                      |\n| report   | -none-                                         | Reports current status of all transactions to chat webhook                                                  |                                \n| debug   | -none-                                         | Lists all your payment methods and wallets                                                  |                                                                                                      |\n\n### Start the watchdog\nThe heart of the bot is an infinite loop that checks periodically for price changes.\nYou can start it yourself or use the ```start.sh``` script which will put the process in background and log to ```/var/log/phptrader.log```\n\n```./start.sh```\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeek-at%2Fphptrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeek-at%2Fphptrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeek-at%2Fphptrader/lists"}