{"repo":"TA-Lib/ta-lib-cgo","free":true,"listed":false,"github":"https://github.com/TA-Lib/ta-lib-cgo","clone":"git clone https://github.com/TA-Lib/ta-lib-cgo.git","description":"TA-Lib for Go - easy to use, cross platform, CGO wraps embedded TA-Lib, zero deps","language":"C","stars":14,"topics":["algorithmic-trading","cgo-bindings","go","golang","golang-library","ta-lib","technical-analysis","technical-indicators"],"license":"BSD-3-Clause","category":"trading","readme_excerpt":"ta-lib-cgo Go bindings for TA-Lib that embed the C source directly — no system library installation required. Users need only go get . A working CGO environment is the only requirement, works out of the box with typical Go toolchain installations. Note: The maintainers of TA-Lib have graciously accepted this project under the official TA-Lib GitHub organization. The import path has changed to github.com/TA-Lib/ta-lib-cgo and this is the canonical location going forward. Quick start outBuf pattern Pass a slice as the last argument(s) to reuse an existing buffer and avoid allocation: If outBuf is nil or its capacity is less than the input length, a new slice is allocated. Lookback and NaN padding All output slices have the same length as the input. The first Lookback positions are filled with NaN (the \"warmup\" period where insufficient data exists for a valid output). Use lookback functions to sub-slice into valid data: Platform support Requires CGO. Tested on macOS, Linux, and Windows 11 (MSYS2/GCC). Windows setup (MSYS2) 1. Download and install MSYS2. 2. From the MSYS2 terminal, install GCC and Go: 3. Use your project as normal — go build and go test work out of the box. Or feel free to try using other C compilers, untested but might work just fine. Rationale Existing Go TA-Lib approaches have significant trade-offs: - Pure-Go reimplementations diverge from the reference C implementation and require ongoing maintenance to stay in sync. Any upstream bug fix or edge-case change","default_branch":null,"files":null,"tree":[],"storefront":"/r/TA-Lib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TA-Lib/ta-lib-cgo/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."}