get risk using local api is done