coinglass-go 是一个零外部依赖的 Go 语言客户端,用于 Coinglass API v4,覆盖期货、现货、期权、ETF 和指标,同时支持 REST 和 WebSocket。

Stars

14

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-12

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该库完全基于 Go 标准库实现 HTTP 和 WebSocket,避免引入任何传递依赖;提供类型化的哨兵错误、指数退避自动重试以及实时流客户端。

适合谁使用

  • 需要构建加密货币分析仪表盘的 Go 开发者
  • 需要获取清算、资金利率和未平仓合约数据的交易员和量化分析师
  • 希望在应用或机器人中集成 Coinglass 数据的开发者
  • 需要轻量级、无依赖 API 客户端的团队

典型使用场景

  • 通过 WebSocket 实时构建清算订单仪表盘
  • 监控资金利率和未平仓合约以制定期货交易策略
  • 获取比特币/以太坊 ETF 流量和灰度持仓数据
  • 通过恐惧贪婪指数和 RSI 指标分析市场情绪

项目优势

  • 零外部依赖 —— 仅使用 Go 标准库
  • 全面覆盖五大端点组及 WebSocket 流
  • 类型化的哨兵错误(401、404、429)及详细的 APIError 便于调试
  • 自动重试机制(指数退避)并支持 Retry-After 响应头

使用前须知

  • 需要 Coinglass API 密钥(速率限制取决于订阅计划)
  • 仅支持 Coinglass API v4,不直接支持其他数据源
  • 非 Coinglass 官方出品,为社区维护项目

README 快速开始

Installation

项目描述

Zero-dependency Go client for the Coinglass API v4. Typed access to Futures, Spot, Options, ETF, and Indicator endpoints, with context support, safe concurrency, automatic retry with exponential backoff on rate limits, sentinel errors, and functional-option configuration. Built on the standard library and fully tested.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

programmersd21
精选
programmersd21 GitHub avatar

flow

flow is a minimalist terminal dashboard that displays real-time network throughput with smooth animations, multiple responsive modes, and zero configuration.

开发者工具CLI 与终端
277
0xNikoDev
0xNikoDev GitHub avatar

robinhood-ai-dev-sniper

A commercial Go trading panel for Robinhood Chain that snipes token launches at the L1-flip boundary using pre-signed relay volleys, plus auto-sniper, trailing exit, and Uniswap V3 trading.

Go
133
rengwu
rengwu GitHub avatar

wayfinder-maps

wayfinder-maps is a read-only CLI and viewer that parses wayfinder planning maps stored as markdown tickets under .plan/, providing status, lint, and a star-map visualization.

Go
60