https://github.com/f0cii/talib
A Golang wrapper for TA-LIB
https://github.com/f0cii/talib
golang-wrapper linux ta-lib windows
Last synced: 4 months ago
JSON representation
A Golang wrapper for TA-LIB
- Host: GitHub
- URL: https://github.com/f0cii/talib
- Owner: f0cii
- License: mit
- Created: 2015-08-31T06:12:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-13T03:17:30.000Z (almost 5 years ago)
- Last Synced: 2025-08-14T22:58:54.306Z (4 months ago)
- Topics: golang-wrapper, linux, ta-lib, windows
- Language: C
- Size: 8.69 MB
- Stars: 34
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# talib
A Golang wrapper for TA-LIB (Windows x64 & Linux)
## Example
```go
package main
import (
"fmt"
"math"
"github.com/frankrap/talib"
)
func main() {
fmt.Println(talib.Sin([]float64{0, math.Pi / 2}))
// => [0 1]
}
```
##### Windows
## Build "talib.dll" use VS2013
Open ta-lib\c\ide\vs2013\dll_proj\talib.sln and Build. That's All.
##### Linux
Install from your package manager or install from source.
On Arch Linux `ta-lib` is available from the AUR.
To compile first download [ta-lib-0.4.0-src.tar.gz](http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz) and:
```
$ wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
$ tar -xzf ta-lib-0.4.0-src.tar.gz
$ cd ta-lib
$ ./configure --prefix=/usr LDFLAGS="-lm"
$ make
$ sudo make install
```
> If you build ``TA-Lib`` using ``make -jX`` it will fail but that's OK!
> Simply rerun ``make -jX`` followed by ``[sudo] make install``.