updated spot price function to use new sec_group