Hi all

I'm trying to use `SetHoldings` to submit a trade on IB paper testing, but the quantity it submits is incorrect. My balance on IB paper testing is 10602.25 USD and the trade I wanted to make is QQQ with weight = 1.0. At the time of submission, QQQ was at $377.73 and I'm using QC's data feed. SetHoldings asked for 27 shares, but IB wasn't happy and gave this error:

New Order Event: Time: 07/25/2023 13:35:02 OrderID: 1 EventID: 2 Symbol: QQQ Status: Invalid Quantity: 27 Message: 201 - Order rejected - reason:Available converted to base: 10602.25 USD Cash needed for this order and other pending orders: 10708.06 USD.

There's no pending order, so I'm not sure how $10708.06 came about.

Any help appreciated.