update:add get_top_of_symbol function