Trade View is an automated trading position monitoring system that tracks OKX exchange traders' positions and sends real-time notifications via push notifications.
- OKX Trade Monitoring: Tracks and analyzes other traders' positions on OKX exchange
- WeChat Notification: Sends real-time trade alerts to WeChat Official Account via PushPlus
- Multi-Trader Tracking: Supports monitoring multiple traders simultaneously
- Detailed Logging: Records all trade activities with timestamps and position details
- Customizable Settings: Adjustable monitoring frequency and notification preferences
git clone https://github.com/yourusername/trade_view.git
cd trade_view
pip install -r requirements.txtBefore running, configure the following in main.py:
- OKX API credentials (api_key, api_secret_key, passphrase)
- PushPlus notification token
- Trader IDs to monitor
- Monitoring intervals
python main.pytrade_view/
├── follow/
│ └── follow.py # OKX Follow API wrapper
├── main.py # Main application with monitoring logic
├── README.md # Project documentation
└── position_monitor.log # Log file (generated at runtime)
- requests: HTTP requests for API calls and notifications
- okx: OKX exchange API client
- logging: Application logging
- datetime: Timestamp handling
Trade View 是一个自动化交易持仓监控系统,用于跟踪OKX交易所交易员的持仓变化并通过推送通知发送实时提醒。
- OKX交易监控:跟踪分析其他交易员在OKX交易所的持仓情况
- 微信公众号通知:通过PushPlus将交易提醒实时推送到微信公众号
- 多交易员追踪:支持同时监控多个交易员
- 详细日志记录:记录所有交易活动,包含时间戳和持仓详情
- 自定义设置:可调整监控频率和通知偏好
git clone https://github.com/yourusername/trade_view.git
cd trade_view
pip install -r requirements.txt运行前请在 main.py 中配置以下内容:
- OKX API凭证 (api_key, api_secret_key, passphrase)
- PushPlus推送令牌
- 要监控的交易员ID
- 监控间隔设置
python main.pytrade_view/
├── follow/
│ └── follow.py # OKX跟单API封装
├── main.py # 主应用程序,包含监控逻辑
├── README.md # 项目文档
└── position_monitor.log # 日志文件(运行时生成)
- requests: HTTP请求发送API调用和通知
- okx: OKX交易所API客户端
- logging: 应用程序日志
- datetime: 时间戳处理