rabsana/trade
Composer 安装命令:
composer require rabsana/trade
包简介
An elegant order matching system for laravel framework.
README 文档
README
The rabsana/trade package provides some endpoints to add,edit,show,delete the symbols like BTCUSDT,ETHUSDT,... and add buy/sell orders to trade them
Installation
1- install the package:
composer require rabsana/trade
2- publish all resources:
php artisan vendor:publish --tag=rabsana-trade-publish-all
Or you can publish resources seprately:
php artisan vendor:publish --tag=rabsana-trade-migrations php artisan vendor:publish --tag=rabsana-trade-config php artisan vendor:publish --tag=rabsana-trade-assets php artisan vendor:publish --tag=rabsana-trade-langs php artisan vendor:publish --tag=rabsana-trade-views
3- run the migrations
php artisan migrate
4- download the package's postman collection: Postman link
There are two groups of endpoints: 1- api (user side) 2- adminApi (admin side)
At the rabsana-trade config file you can set the middlewares that protects the private endpoints otherwise everyone can CRUD the symbols,orders,..
Match the orders
After the orders created we have to match them. to do that run the php artisan order:match command
this command has two argument
1- the first one is the number of orders that be matched. the default is 100
2- the second argument is the name of symbol to match the a specific symbol's order. the default value is NULL = match all symbols
generate random orders
There is a command which generate orders in BTCUSDT,ETHUSDT,BNBUSDT symbols. please run this command in local environment
php artisan order:generate
this command will generate 1000 orders. you can send the number of orders as the first argument
rabsana/trade 适用场景与选型建议
rabsana/trade 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 09 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 rabsana/trade 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rabsana/trade 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-07