@binance/common

中文文档
2.5.2发布于 2026/10/23MITTypeScriptESM + CJS近 30 天下载 3.9万

Binance Common Types and Utilities for Binance Connectors

原始使用文档
文档目录5 节
  1. Installation
  2. Features
  3. Contributing
  4. Disclaimer
  5. License

Binance Common Types and Utilities for Binance Connectors

Code Style: Prettier npm version npm Downloads Node.js Version Socket Badge Docs License: MIT

@binance/common is a utility package for Binance modular connectors, providing commonly used functions and helpers for working with Binance REST/WebSocket APIs. It ensures reusable and optimized utilities to streamline development.

Installation

To use this package, install it via npm:

npm install @binance/common

Features

  • Common Utility Functions for API requests, timestamps, and signatures.
  • Optimized for Binance Connectors to ensure seamless integration.
  • Lightweight & Tree-Shakeable – only imports what you need.
  • Fully Compatible with TypeScript for strong type safety.

Contributing

Contributions are welcome!

  1. Open a GitHub issue before making changes.
  2. Discuss proposed changes with maintainers.
  3. Follow the existing TypeScript structure.

Disclaimer

This SDK is provided by Binance on an "as is" and "as available" basis for use at your own risk. Binance makes no representations or warranties of any kind, whether express or implied, as to the operation of the SDK, its accuracy, reliability, completeness, or fitness for any particular purpose.

To the fullest extent permitted by law, Binance shall not be liable for any losses, damages, or expenses of any kind arising from or in connection with your use of, or inability to use, this SDK, including but not limited to any financial losses resulting from errors, bugs, interruptions, or inaccuracies in the SDK.

Your use of this SDK to access the Binance Platform is subject to the Binance API Key Terms and the Binance Terms of Use, which shall prevail in the event of any conflict with this disclaimer. You are solely responsible for any orders or transactions executed through the Binance Platform using this SDK.

This SDK is not intended to constitute investment advice or a recommendation to buy, sell, or hold any digital asset. You should independently evaluate and verify all information before acting.

License

This project is licensed under the MIT License - see the LICENSE file for details.

版本与发布记录

@binance/common 共发布 51 个版本,首次发布于 2025/03/24;过去 12 个月发布了 32 个版本。

版本发布日期距今
2.5.2latest2026/10/2316 天前
2.5.12026/10/1920 天前
2.5.02026/10/1523 天前
2.4.102026/10/021 个月前
2.4.92026/09/111 个月前
2.4.82026/09/032 个月前

关于 @binance/common 的常见问题

@binance/common 是什么?

Binance Common Types and Utilities for Binance Connectors

如何安装 @binance/common?

在项目目录运行 npm install @binance/common,或使用 pnpm add / yarn add / bun add。

@binance/common 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@binance/common 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@binance/common 可以商用吗?

@binance/common 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@binance/common 的下载量有多少?

根据 npm 官方下载统计,@binance/common 在 2026/10/08 – 2026/11/06 这 30 天内被下载 38,681 次,日均约 1,289 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@binance/common 还在维护吗?

最新版本 2.5.2 发布于 2026/10/23(16 天前);至今共发布 51 个版本,其中过去 12 个月发布了 32 个;首次发布于 2025/03/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。