
I am able to place order and got this error "Invalid order is rejected due to insufficient capital"
res = self.evt.getContractSpec("SPYUS")lot_size = res["contractSize"]order = AlgoAPIUtil.OrderObject(instrument=md.instrument,buysell=1,volume=lot_size,ordertype=0,openclose='open')self.evt.sendOrder(order)