package Ġcom . al bu quer que . crypto e _ wallet . core . remote Ċ Ċ import Ġcom . al bu quer que . crypto e _ wallet . app . model . dto . B rit a DTO Ċ import Ġcom . al bu quer que . crypto e _ wallet . core . extensions . format Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Path Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠBrit a API Ġ{ ĊĊĠĠĠ Ġ/* ĊĠĠĠ Ġ* ĠBASE _ URL Ġ= Ġhttps :// ol inda . bcb . gov . br / ol inda / serv ico / PT AX / ver sa o / v 1 / odata / ĊĠĠĠ Ġ* ĠC ot acao Mo eda D ia ( mo eda =@ mo eda , data C ot acao =@ data C ot acao )? @ mo eda =' USD '& @ data C ot acao =' 0 8 - 1 0 - 2 0 2 0 '& $ format = json ĊĠĠĠ Ġ* Ġ*/ ĊĊĠĠĠ Ġ@ GET ("{ recur so }") ĊĠĠĠ Ġsuspend Ġfun Ġfetch B rit a Data ( ĊĠĠĠĠĠĠĠ Ġ@ Path (" recur so ") Ġrecurso : ĠString Ġ= Ġ" C ot acao Mo eda D ia ( mo eda =@ mo eda , data C ot acao =@ data C ot acao )", ĊĠĠĠĠĠĠĠ Ġ@ Query ("@ mo eda ") Ġmo eda : ĠString Ġ= Ġ"' USD '", ĊĠĠĠĠĠĠĠ Ġ@ Query ("@ data C ot acao ") Ġdata C ot acao : ĠString Ġ= Ġ"' ${ B rit a Api Helper . last Date Requested . format (" MM - dd - yyyy ") }' ", ĊĠĠĠĠĠĠĠ Ġ@ Query ("\ $ format ") Ġformato : ĠString Ġ= Ġ" json " ĊĠĠĠ Ġ): ĠBrit a DTO Ċ Ċ }