https://github.com/bandprotocol/gogst
https://github.com/bandprotocol/gogst
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bandprotocol/gogst
- Owner: bandprotocol
- Created: 2022-01-28T04:25:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-02T09:31:28.000Z (over 4 years ago)
- Last Synced: 2024-06-20T02:12:43.477Z (almost 2 years ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
```