update rate API code and config file