Giter Site home page Giter Site logo

okxbot's Introduction

微信群聊报价机器人

微信群聊报价机器人是一个基于OKX交易所API的微信群聊机器人,用于查询和跟踪加密货币的价格。

功能

  • 实时价格查询:通过发送特定命令,例如/BTC,可以查询BTC在OKX交易所的最新价格、买价、卖价、开盘价、24小时最高价、24小时最低价和24小时交易量。
  • 价格订阅提醒:用户可以订阅特定货币的价格提醒,当价格达到特定阈值时,机器人将发送通知。
  • 定时价格报告:用户可以订阅特定货币的定时价格报告,机器人将按照设定的时间间隔发送价格报告。

安装与运行

1. 克隆仓库

git clone https://github.com/yourusername/your-repo.git
cd your-repo

2. 安装依赖库

项目需要以下JavaScript库:

  • axios
  • wechaty
  • wechaty-puppet-wechat

可以通过以下命令安装依赖库:

npm install axios wechaty wechaty-puppet-wechat

3. 运行项目

在安装了所有依赖库后,可以通过以下命令运行项目:

node main.js

如何使用

在微信群聊中,可以使用以下命令:

  • 查询价格:/CRYPTO,例如/BTC
  • 订阅价格提醒:/subscribe CRYPTO THRESHOLD,例如/subscribe BTC 30000
  • 订阅定时报告:/report CRYPTO INTERVAL,例如/report BTC 60

贡献

如果你有任何问题或建议,请随时提交Issue或Pull Request。

许可

MIT License

okxbot's People

Contributors

last-emo-boy avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.