• Happy Independence Day! Take $40 off VIP Membership with code JULY4. Sign up here.

How to get todays total volume in the scan with 15 min aggregation


New member
Hi, can someone advise how to get todays total volume in the scan script which is runing with aggregation of 15 mins. Objective is to identify total volume since 9:30 AM EST while scan is running with 15 min aggregation. I was planning to use below code, however not sure if it will give only today's volume if I were to run the scan at10 AM EST (volume since 9:30 AM EST or volume since 10 AM EST previous day) In the learning ccenter I found the definition of Day aggregation period as - Defines aggregation period equal to one day (86,400,000 milliseconds).

def today = volume(period = "DAY");

Similar threads