https://github.com/ivanglie/go-moex-client
Golang client for Moscow Exchange ISS API
https://github.com/ivanglie/go-moex-client
currency finance golang moex
Last synced: about 1 year ago
JSON representation
Golang client for Moscow Exchange ISS API
- Host: GitHub
- URL: https://github.com/ivanglie/go-moex-client
- Owner: ivanglie
- License: mit
- Created: 2022-08-18T19:35:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T14:42:45.000Z (about 3 years ago)
- Last Synced: 2023-10-15T05:16:33.639Z (over 2 years ago)
- Topics: currency, finance, golang, moex
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang client for Moscow Exchange ISS API
[](https://pkg.go.dev/github.com/ivanglie/go-moex-client)
[](https://github.com/ivanglie/go-moex-client/actions/workflows/test.yml)
[](https://codecov.io/gh/ivanglie/go-moex-client)
Golang client for the [Moscow Exchange ISS API](https://www.moex.com/a2920).
## Example
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.
```golang
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](./_example/main.go).
## References
For more information check out the following links:
* MOEX ISS API [en](https://www.moex.com/a2920), [ru](https://www.moex.com/a2193)
* [MOEX ISS reference](https://iss.moex.com/iss/reference/)