Hello,
I am trying to place a VWAP (Best efforts order), these are the parameters I am using, but I get the following error: I have tried changing all the variables and parameters but still get the same error.. does someone know what I am doing wrong or how to send the parameters correctly?
Thank you,
ERROR:
<error id=488914002, errorCode=512, errorMsg=Order Sending Error - 'list' object has no attribute 'm_tag'>
<connectionClosed>
conn.connect().... All ok to connect
listparams = [['maxPctVol', '0.5'],
['startTime', '9:00:00 EST'],
['endTime', '15:00:00 EST'],
['allowPastEndTime', '0'],
['noTakeLiq', '0']]
cont = Contract()
cont.m_symbol = "TSLA"
cont.m_secType = "STK"
cont.m_exchange = "SMART"
cont.m_primaryExch = "SMART"
cont.m_currency = "USD"
order = Order()
order.m_orderType = 'MKT'
order.m_totalQuantity =100
order.m_action = "BUY"
order.m_tif='DAY'
order.m_account=acct
order.m_algoParams = listparams
order.m_algoStrategy = "Vwap"
oid=order_counter
conn.placeOrder(oid,cont,order)
order_counter+=1