Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 373 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 373 Bytes

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)
}