of
Builds a response from a decoded stock time series payload, whichever cadence produced it.
The adjusted flag has to be passed in rather than inferred, because the adjusted and unadjusted payloads number their per-bar keys differently and nothing in the payload itself says which numbering is in use. Passing false for an adjusted payload reads its adjusted close as a volume; passing true for an unadjusted one fails to find keys that are not there.
Return
a response holding the parsed series, or one holding an error message if the payload was empty or was not a stock time series
Parameters
the response body, already decoded from JSON into a map
whether the payload came from an adjusted cadence, and so carries an adjusted close, a dividend and possibly a split coefficient on each bar