Closed blair-anson closed 4 months ago
Your 'type' should be 'BID' or 'ASK', not 'BID_ASK'
this is the document :
whatToShow: Specifies the source for constructing bars.
Can be 'TRADES', 'MIDPOINT', 'BID' or 'ASK'.
Ahhh I see, thank you. I must have been looking at the reqHistoricalData()
docstrings which do support BID_ASK
Hi, when running the code below I get this error when type =
BID_ASK
however it works fine whenMIDPOINT
is used.Error 321, reqId 4: Error validating request.-'bY' : cause - What to show field is missing or incorrect., contract: Forex('EURUSD', exchange='IDEALPRO')