nickname — a name added to or substituted for the proper name of a person, place, etc., as in affection, ridicule, or familiarity: He has always loathed his nickname of “Whizzer.”.
pet name — a name or a term of address used to express affection for a person, thing, etc.