package Ġcom . example . stock tracker . api Ċ Ċ import Ġcom . example . stock tracker . entity . H istorical Data Response Ċ import Ġcom . example . stock tracker . entity . News Ċ import Ġcom . example . stock tracker . entity . Stock Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Headers Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠRet rofit Services Ġ{ ĊĠĠĠ Ġ@ GET (" act ives ? apikey = key ") ĊĠĠĠ Ġfun Ġget Sto cks (): ĠCall < Mutable List < Stock >> ĊĊĠĠĠ Ġ@ GET (" stock _ news ? apikey = key ") ĊĠĠĠ Ġfun Ġget News (@ Query (" tick ers ") Ġtick ers : ĠString ): ĠCall < Mutable List < News >> ĊĊĠĠĠ Ġ@ Headers ( ĊĠĠĠĠĠĠĠ Ġ" x - rapid api - host : Ġap ido jo - yahoo - finance - v 1 . p . rapid api . com ", ĊĠĠĠĠĠĠĠ Ġ" x - rapid api - key : Ġkey " ĊĠĠĠ Ġ) ĊĠĠĠ Ġ@ GET (" stock / v 2 / get - h istorical - data ") ĊĠĠĠ Ġfun Ġget H istorical Data ( ĊĠĠĠĠĠĠĠ Ġ@ Query (" frequency ") Ġfrequency : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" filter ") Ġfilter : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" period 1 ") Ġperiod 1 : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" period 2 ") Ġperiod 2 : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ Query (" symbol ") Ġsymbol : ĠString ? ĊĠĠĠ Ġ): ĠCall < H istorical Data Response > Ċ } Ċ