Skip to main content
logo

✨ nonebot-plugin-crypto ✨

LICENSE pypi python uv
ruff pre-commit

📖 介绍

基于 Binance Public API 的 NoneBot 加密货币行情插件,支持实时行情和交易对列表查询。 插件仅使用 /crypto 作为行情查询命令,CI 验证 Python 3.10 至 3.14。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-crypto --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-crypto --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-crypto --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-crypto

安装仓库 master 分支

uv add git+https://github.com/ByteColtX/nonebot-plugin-crypto@master
pdm
pdm add nonebot-plugin-crypto

安装仓库 master 分支

pdm add git+https://github.com/ByteColtX/nonebot-plugin-crypto@master
poetry
poetry add nonebot-plugin-crypto

安装仓库 master 分支

poetry add git+https://github.com/ByteColtX/nonebot-plugin-crypto@master

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_crypto"]
使用 nbr 安装(使用 uv 管理依赖可用)

nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2

nbr plugin install nonebot-plugin-crypto

使用 pypi 源安装

nbr plugin install nonebot-plugin-crypto -i "https://pypi.org/simple"

使用清华源安装

nbr plugin install nonebot-plugin-crypto -i "https://pypi.tuna.tsinghua.edu.cn/simple"

⚙️ 配置

本插件使用 Binance Public API,无需配置 API Key、Secret 或 Access Token。请勿将个人 配置、代理信息或其他敏感信息提交到代码仓库。

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/crypto <SYMBOL> 群员 群聊、私聊 查询加密货币实时行情
/crypto list [KEYWORD] 群员 群聊、私聊 查询 Binance Spot 交易对列表

输入 /crypto --help 可以查看完整帮助信息。

实时行情

/crypto BTC
/crypto ETHUSDT
/crypto SOL/USDT

交易对列表

/crypto list
/crypto list btc
/crypto list usdt

列表数据来自 Binance Spot 交易所,默认只返回状态为 TRADING 的交易对,并通过合并转发发送结果。

热门币种快捷查询

插件内置了一次性获取的 Binance Spot USDT 交易对成交额 Top 20 快照。直接发送榜单中的基础币种, 例如 XRP,即可查询对应行情;榜单不会在运行时自动更新。

🎨 效果图

暂无示例图。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_crypto-0.1.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_crypto-0.1.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_crypto-0.1.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_crypto-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_crypto-0.1.2.tar.gz
Algorithm Hash digest
SHA256 14d339d2e67dde05d2b0341d71ff13b1b0d42be3fd95515f93effd509886e230
MD5 56bf3e886e953d5d6bad2b637ed9d2a6
BLAKE2b-256 c594fea973b6151116c7ef33aa803720ef9a2e842ec3acb322fb6d0236ea3cd0

See more details on using hashes here.

File details

Details for the file nonebot_plugin_crypto-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_crypto-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_crypto-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d43f2023ab55ea3cdf039850ec445a6ce14a4323e36db4a8d2c553b5f746a517
MD5 63771370c609b79966b76144ff76c6f7
BLAKE2b-256 993efe9634267aa8a34080fad1570b7a9bccd2f19ba37656cc97918b00ed5b90

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page