{"repo":"tigusigalpa/coinglass-go","free":true,"listed":false,"github":"https://github.com/tigusigalpa/coinglass-go","clone":"git clone https://github.com/tigusigalpa/coinglass-go.git","description":"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.","language":"Go","stars":15,"topics":["api","bitcoin","chainlink","coinglass","coinglass-api","go","golang","golang-library","golang-package","nearprotocol"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"coinglass-go A Go client for the Coinglass API v4, with no external dependencies. coinglass-go is a small, typed Go client for the Coinglass API v4. I built it to scratch my own itch while working on liquidation dashboards and funding-rate tooling, and it covers the Futures, Spot, Options, ETF, and Indicator endpoints. It leans entirely on the standard library, so adding it to your project won't drag in a tree of transitive dependencies. Highlights - Covers all five endpoint groups: Futures, Spot, Options, ETF, and Indicators. - Includes a WebSocket client for real-time liquidation, trade, and futures ticker streams. - No third-party dependencies — just the standard library, for both the REST and WebSocket clients. - Configured with functional options, the way most Go clients do it. - Every method takes a context.Context , and the client is safe to share across goroutines. - Retries rate-limited (429) requests with exponential backoff, and honors Retry-After when the API sends it. - Returns typed sentinel errors for 401 , 404 , and 429 , and a detailed APIError (with the API's own code / msg ) for anything else. - Each service ships with its own httptest -based tests. Requirements Requirement Version ------------------- --------------------------------------- Go 1.21+ Dependencies none (standard library only) Coinglass API key Get one here Installation Getting started Compile and run it: Configuring the client NewClient takes functional options: Option What it does When to us","default_branch":null,"files":null,"tree":[],"storefront":"/r/tigusigalpa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tigusigalpa/coinglass-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}