Resource Profile:
本系统是一款马丁量化交易策略机器人系统源码,具备与交易所(火币/币安)的接口对接功能,包括账户余额查询、实时价格获取以及买入/卖出交易等功能。
其中,账户余额接口允许用户实时查看交易所账户余额情况,而交易接口则支持买入和卖出操作。此外,系统还提供了实时价格接口,通过websocket数据流方式提供最新的市场价格信息。
系统采用了马丁策略作为交易依据,其中买入与卖出的判断代码是整个系统的核心。系统可根据不同币种和不同时间段的数据流动态调整处理速度,以应对不同场景的需求,最高每秒可处理数十条数据。
为确保数据流的稳定接收,系统采用了workerman框架的AsyncTcpConnection,并使用reConnect方法实现断线重连、transport=ssl访问wss、gzdecode方法解压加密数据以及json_decode函数解包。
在资金方面,系统目前默认使用TRC20-USDT进行充提,用户可以根据需要自行调整为其他币种。充值操作实现了全自动化,而提现操作可根据需求选择手动审核或自动审核。
经过服务器配置为centOs7.2、2MB带宽、2核CPU、4GB内存的测试,系统运行稳定,且支持80人同时使用。已开启的币种达28种,后台可无限扩展设置。尽管在低配置服务器上运行,系统表现仍然稳定,但仍有待于细节和美工方面的进一步优化。
我们的系统源码提供了详细的安装说明,欢迎您深入了解并体验我们的马丁量化交易策略机器人系统,以提升您的交易效率与体验。
Photo Gallery:
Installation and usage instructions:
前台网址:http://www.zyydd.com/h5
前台账号密码:13877189858,112233
后台网址:http://www.zyydd.com/admin/user/login.html
后台账号密码:admin,9527
后台及api:ThinkPHP6
前台h5/app:uni-app vue.js
操作系统:开发时使用本机环境为win7,在服务器上为centOs7.2
php版本:开发时使用版本为PHP7.3
mysql版本:开发时使用版本为MySql8.0
开发时测试环境为:win7 + PHP7.3 + MySql8.0
目前演示系统的配置为:2核CUP + 4GB内存 + centOs7.2 + PHP7.3 + MySql5.7
安装说明
————————-
网站首页:www\public\index.php
数据库位置:www\public\dump\antquants.sql
数据库配置文件:
www\config\database.php
www\vendor\workerman\blockchain.php
www\vendor\workerman\trc20.php
需要以CLI方式运行 blockchain.php 和 trc20.php
trc20.php 使用workerman定时器
1.监听TRC20 USDT代币充值打款
2.每日电子账单统计
blockchain.php
此文件为整个系统的核心功能所在
workerman中AsyncTcpConnection,在服务器端连接socket
火币网提供api获取最新币价,并自行买卖
些代码不支持windows系统,windows系统需逐个币的运行
运行方式
php trc20.php start -d
php blockchain.php start -d
前台安装
方法1:如果只h5,可以搜索www\public\h5里www.zyydd.com,替换成你的网址
- Can free downloads or VIP member-only resources be commercialized directly?
- The resources on this site are collected and organized through the network, for personal research and study purposes only. The copyright belongs to the legal owner of the software and program code, users should verify the copyright and legality of the resources, prohibited for commercial use, illegal activities or any violation of national laws and regulations.
- Disclaimer of liability for program or code bugs, compatibility issues or functional defects, etc.
- As the resources on this site are collected and organized through the network, not the site's original, it can not fully guarantee its functionality or code compatibility. Users need to verify whether the resources meet the needs of their own, due to the following circumstances lead to losses, this site does not assume any responsibility:
Programs, source code and other computer software resources may contain code vulnerabilities (bugs), compatibility issues or functional defects left by the developer. This site does not provide free repair services for such technical defects, users need to bear the risk of debugging, modification or abandonment of the use.











