m_account placeorder FA Java Interactive Brokers

m_account placeorder FA Java Interactive Brokers

我有一个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);

简单回答,包含在顺序方面:

     order.m_account = "U123123";