A bicycle, the bicycle comprising: a frame comprising: a hollow space configured within the frame; and at least one opening (310a, 31 0b) configured in the frame, the at least one opening (310a, 310b) connected to the hollow space; and an electronic security device configured to be accommodated within the hollow space of the frame, the electronic security device comprising a retractable locking shackle configured to assume a locked position and a retracted position by moving through the at least one opening (310a, 31 0b) configured in the frame, wherein the locked position of the retractable locking shackle restricts a movement of a wheel (115, 117) of the bicycle, and the retracted position enables a free movement of the wheel (115, 117) of the bicycle; wherein the electronic security device further comprises a rechargeable battery for providing power to the electronic security device; characterized in that the bicycle further comprises, a charging port for recharging the rechargeable battery; and wherein the charging port is at least one of a micro-USB, a USB-c, a pogo pin port, or an inductive charging port, wherein the charging port comprises a first charging port connector disposed on the frame of the bicycle, the first charging port connector comprising one or more pins electrically coupled to the electronic security device, wherein the bicycle further comprises a second charging port connector comprising a first end and a second end, the second end configured to be electrically coupled to a power source and the first end comprising one or more pins configured to engage with the one or more pins of the first charging port connector for charging the rechargeable battery. a hollow space configured within the frame; and at least one opening (310a, 31 0b) configured in the frame, the at least one opening (310a, 310b) connected to the hollow space; and an electronic security device configured to be accommodated within the hollow space of the frame, the electronic security device comprising a retractable locking shackle configured to assume a locked position and a retracted position by moving through the at least one opening (310a, 31 0b) configured in the frame, wherein the locked position of the retractable locking shackle restricts a movement of a wheel (115, 117) of the bicycle, and the retracted position enables a free movement of the wheel (115, 117) of the bicycle; wherein the electronic security device further comprises a rechargeable battery for providing power to the electronic security device; characterized in that the bicycle further comprises, a charging port for recharging the rechargeable battery; and wherein the charging port is at least one of a micro-USB, a USB-c, a pogo pin port, or an inductive charging port, wherein the charging port comprises a first charging port connector disposed on the frame of the bicycle, the first charging port connector comprising one or more pins electrically coupled to the electronic security device, wherein the bicycle further comprises a second charging port connector comprising a first end and a second end, the second end configured to be electrically coupled to a power source and the first end comprising one or more pins configured to engage with the one or more pins of the first charging port connector for charging the rechargeable battery.