Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lengxia/trade_view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Trade View / 交易视图

English | 中文

English

Overview

Trade View is an automated trading position monitoring system that tracks OKX exchange traders' positions and sends real-time notifications via push notifications.

Features

  • 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

Installation

git clone https://github.com/yourusername/trade_view.git
cd trade_view
pip install -r requirements.txt

Configuration

Before 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

Usage

python main.py

Project Structure

trade_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)

Dependencies

  • 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.py

项目结构

trade_view/
├── follow/
│   └── follow.py          # OKX跟单API封装
├── main.py                # 主应用程序,包含监控逻辑
├── README.md              # 项目文档
└── position_monitor.log   # 日志文件(运行时生成)

依赖项

  • requests: HTTP请求发送API调用和通知
  • okx: OKX交易所API客户端
  • logging: 应用程序日志
  • datetime: 时间戳处理

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages