我有一个F账户和一个U账户。这将正确填充 TWS 中的 API 订单选项卡,但不会将订单分配给 U 账户。我如何将其分配到 U 帐户?
nextOrderID = orderId;
c.m_symbol = "SPY";
c.m_exchange = "SMART";
c.m_secType = "STK";
c.m_currency = "USD";
Order order = new Order();
order.m_action = "BUY";
order.m_totalQuantity = 1;
order.m_lmtPrice = 1.00;
order.m_orderType = "LMT";
String m_account = "U123123";
int randomNum = ThreadLocalRandom.current().nextInt(1, 100 + 1);
m_s.placeOrder(randomNum, c, order);