gold futures trade at record as session nears end