An open API service indexing awesome lists of open source software.

https://github.com/moncho/go-simplemultialgo

Nicehash multialgo implemented in Go
https://github.com/moncho/go-simplemultialgo

Last synced: 3 months ago
JSON representation

Nicehash multialgo implemented in Go

Awesome Lists containing this project

README

          

# Nice Simple Multi-Algorithm in Go

Go port of [Nice Simple Multi-Algorithm](https://github.com/nicehash/simplemultialgo).

Gets profitability information about algorithms and returns back the most profitable algorithm.

Algorithm names: https://www.nicehash.com/index.jsp?p=simplemultialgo#names

## Example

```
package main

import (
"fmt"

simplemultialgo "github.com/moncho/go-simplemultialgo"
)

func main() {
algo, err := simplemultialgo.NiceHashMultiAlgo(map[string]int{"scrypt": 1, "x11": 7, "quark": 12})
if err != nil {
panic("Run for your life!!")
}

fmt.Printf("Most profitable algo is %s, currently paying %v\n", algo.Name, algo.Paying)
}

```