Diego
← Back to projects

Crypto Profit

CLI tool for cryptocurrency buy opportunity analysis — Laravel Artisan + Binance API + MySQL.

  • PHP 8.0
  • Laravel 9
  • MySQL
  • Binance Futures Testnet API
  • Guzzle HTTP
  • Laravel Artisan

Full-screen for best quality.

Context

Crypto Profit is a CLI tool for cryptocurrency buy opportunity analysis. Users accumulate price history via command and check whether the current price is below the historical average.

Two Artisan commands: c:saveBidPriceOnDataBase saves the current crypto price to the database; c:checkAvgBigPrice fetches the live price, calculates the average of the last 100 saved entries and displays the comparison. No frontend, no HTTP layer — CLI only, designed to run via cron.

Technical decisions

CLI as interface, no controller

The app exposes no HTTP routes. The interface is Artisan commands triggered from terminal or cron job.

Average calculated over local history, not in real time

AvgBigPrice fetches the last 100 saved entries for the pair and calculates avg() in the query. Live data comes from Binance; the comparison baseline comes from locally accumulated history.