I am using historical_data api to get futures data every X seconds. I noticed that the trades are placed before the candle is fully formed which sometimes results in false trades. How do I wait for candle completion? I am using 3minute Bank Nifty chart.
Is there a simple way to achieve this using API or have to write python code to verify the minute % 3 ==0 to assume candle is formed?