antoinebaron-io/moon-doge
Composer 安装命令:
composer require antoinebaron-io/moon-doge
包简介
Moon Doge buy Dogecoin on FTX when Elon Musk tweet about it, and sell it for profit
README 文档
README
moon-doge v2 is a PHP bot that will buy DogeCoin on FTX when Elon Musk mention DogeCoin on twitter. (check v1 for binance)
Be aware that this script is for educational purposes only
The script will open a websocket connection and monitor Elon Musk twitter account. If a mention of dogecoin is found in his last tweet, the script will immediately send a market-buy order of dogecoin on FTX (spot or with leverage). The script will also optionnaly set the stop loss/take profit.
Dependencies
- API key from your FTX account
- API key from twitter developer (https://developer.twitter.com/en/apply-for-access)
The script works using :
- CCXT : https://github.com/ccxt
- twitter-api-php : https://github.com/J7mbo/twitter-api-php
- spatie/twitter-streaming-api : https://github.com/spatie/twitter-streaming-api
Installation
composer require antoinebaron-io/moon-doge
Configuration
open
vendor/antoinebaron-io/moon-doge/MoonDoge.php
and look for the config array at the top of the file
Usage
Create a new file index.php and paste :
require_once('vendor/autoload.php');
$moonDoge = new MoonDoge();
$moonDoge->run();
Then run in terminal : php index.php
Run a simulation
You don't want to wait for Elon to tweet about doge to find out there where a configuration problem ... So you can first run the bot to watch your own twitter account, then send a test tweet containing the doge or dogecoin word, and see if it is working.
require_once('vendor/autoload.php');
$moonDoge = new MoonDoge();
$moonDoge->run('your_twitter_screen_name');
antoinebaron-io/moon-doge 适用场景与选型建议
antoinebaron-io/moon-doge 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 29, 最近一次更新时间为 2021 年 06 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 antoinebaron-io/moon-doge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 antoinebaron-io/moon-doge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-06-17

