Add function GetPairTickerInfo in type
Closed this issue · 1 comments
Archie1978 commented
Hello Beldur,
I saw that you were working on it again.
Can you create this function ? It's easier to use.
func (v *krakenapi.TickerResponse)GetPairTickerInfo(field string) (krakenapi.PairTickerInfo) {
r := reflect.ValueOf(v)
f := reflect.Indirect(r).FieldByName(field)
return f.Interface().(krakenapi.PairTickerInfo)
}
Kinds, regard