You can wear the compression socks all through the day, but I would recommend you not to wear it while sleeping. This is because alot of pressure gets applied to your ankle which can decrease the blood circulation in the leg. Due to certain medical issues, some people are advised by their doctors to keep wearing the compression socks at night also, in that case, you can consider to wear them. Tiux compression socks are known to provide all the relevant information in this regard. Do check that on
https://tiux.co/why-tiux-compression-socks/ and pick the right compression socks for yourself.