github.com/bitfinexcom/bitfinex-api-go@v0.0.0-20210608095005-9e0b26f200fb/v2/rest/platform_status.go (about) 1 package rest 2 3 type PlatformService struct { 4 Synchronous 5 } 6 7 // Retrieves the current status of the platform 8 // see https://docs.bitfinex.com/reference#rest-public-platform-status for more info 9 func (p *PlatformService) Status() (bool, error) { 10 raw, err := p.Request(NewRequestWithMethod("platform/status", "GET")) 11 if err != nil { 12 return false, err 13 } 14 return len(raw) > 0 && raw[0].(float64) == 1, nil 15 }