Source code for isodata.pjm.query.QueryDemandBid

"""QueryDemandBid - You may query for a particular effective day and did locations using the message described
below. You may query by specifying a given location name or a portfolio of locations.
To query the system for a submitted fixed demand bids of a one or more bid location nodes for a
given day."""
# pylint:disable=duplicate-code
from ...pjm import constants as C
from ...pjm.helper import gen_xml


[docs] def prepare(token, **kwargs): """prepare and return all the components of the requests call.""" xml, content_length = gen_xml(with_filters="<All/>", **kwargs) return { 'xml': xml, 'headers': { **C.PJM_BASE_HEADERS, 'Cookie': 'pjmauth=' + token, 'Content-length': content_length }, 'url': C.PJM_EMKT_URL_QUERY }