update the open price logic (first 500 milliseconds) and close price logic (last 500 milliseconds) for 5mins and 30mins table

Signed-off-by: Tony He <yangyi.he@stat.ucla.edu>