beldur/kraken-go-api-client

Add function GetPairTickerInfo in type

Closed this issue · 1 comments

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

Closed with a3aa238

Thanks for your feedback!