Is there any way to get OHLC for every 5 minute using Websocket ???
Yes, you can have a time.sleep function inside the custom message function and print the data.
OHLC would be same as showing 5 minute candle at Chart ???
another way can be to save the tick data in a CVS file using pandas and convert it into the different time frame