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

https://github.com/bandprotocol/gogst


https://github.com/bandprotocol/gogst

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# gogst (Golang global stock time)

This lib will tell you what is current market status of your stock.

## Example
```
import "github.com/bandprotocol/gogst/markets"

...

status, _ := markets.GetMarketStatusByMarket(markets.US_STOCK)
if status == markets.PRE || status == markets.POST {
fmt.Println("Extended time")
} else {
fmt.Printf("%s time\n", status)
}
```