Golang client for the Moscow Exchange ISS API.
First, ensure the library is installed and up to date by running
go get -u github.com/ivanglie/go-moex-client
This is a very simple app that just displays Chinese Yuan Renminbi to Russian Ruble conversion.
package main
import (
"fmt"
moex "github.com/ivanglie/go-moex-client"
)
func main() {
client := moex.NewClient()
rate, err := client.GetRate(moex.CNYRUB)
if err != nil {
panic(err)
}
fmt.Println(rate)
}
See main.go.
For more information check out the following links:
- MOEX ISS API en, ru
- MOEX ISS reference