onSwapto ask the pool what the amounts should be. Pools that use weighted math only need the input/output tokens to determine price.
variableenum you pass.
secsis the duration of the query in seconds, and
agois the time in seconds from since end of that duration. Prices are represented as 18 decimal fixed point values.
agoseconds ago for each query.