A building tower type crane anti-swing device is an indispensable tool for vertical transportation. Due to the fact that a lifting tool and a lifting load are likely to swing, the unloading work period is prolonged, even unhooking happens and serious accidents are caused. The building tower type crane anti-swing device comprises a main machine, a three-axis accelerometer, a photoelectric encoder I, a photoelectric encoder II, a rotary frequency converter, a trolley frequency converter, a rotary motor, a trolley motor, a rotary mechanism and a wireless communication device. The building tower type crane anti-swing device is characterized in that the main machine is connected with the photoelectric encoder I and the photoelectric encoder II; the photoelectric encoder I is connected with the rotary frequency converter; the photoelectric encoder II is connected with the trolley frequency converter; and the rotary frequency converter is connected with the rotary motor, and the trolley frequency converter is connected with the trolley motor.