I believe you're looking for string interpolation:
components.path = "/currency-api@latest/currencies/\(baseCur).json"