smartguycodes/laravel-smart-trading 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smartguycodes/laravel-smart-trading

Composer 安装命令:

composer require smartguycodes/laravel-smart-trading

包简介

A Laravel package for smart trading functionalities.

README 文档

README

A Laravel package with machine learning capabilities.

Introduction

This package provides a complete solution for integrating smart trading capabilities into any laravel application, with machine learning at it's core.

The modular design makes it easy to customize and extend for specific trading needs.

Key Features

1. Modular Architecture

  • Clean separation of concerns with interfaces
  • Easy to extend with new strategies- or exchanges
  • Dependency injection for all major components

2. Machine Learning integration

  • Uses Rubix ML for PHP-based machine learning
  • Supports model persistence and training
  • Feature extraction from market data

3. Exchange Agnostic

  • CCXT library for unified exchange API
  • Easy to add support for new exchanges
  • Sandbox mode for testing

4. Risk Management

  • Built-in risk controls
  • Position sizing based on risk level
  • Drawdown and exposuremonitoring

5. Laravel integration

  • Databse migrations and models
  • Artisan commands for management
  • Event system for trading notifications

Package Usage Examples

1. Register the package in your laravel application

  • Add the following to your config/app.php
    `providers` => [
        // ...
        SmartTrading\Providers\SmartTradingServiceProvider::class,
    ],

    `alias` => [
        // ...
        'SmartTrading' => SmartTrading\Facades\SmartTrading::class,
    ],

2. Publish configuration

    php artisan vendor:publish --tag=smart-trading-config

3. Train the ML model

    php artisan smart-trading:train --samples=5000

4. Run a trading bot

    php artisan smart-trading:run my_bot --symbol=BTC/USDT

5. Programmatic usage

    use SmartTrading\Facades\SmartTrading;

    // Execute a bot
    $bot = \SmartTrading\Models\Bot::find(1);
    SmartTrading::executeBot($bot);
    
    // Train model with custom options
    $results = SmartTrading::trainModel([
        'test_size' => 0.3,
        'features' => [
            'rsi', 'volume', 'price_change'
        ]
    ]);

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固