开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

IB's WebAPI - partial fill in paper account with no orderId returned


 

Is there a better place to post a question for IB's WebAPI/REST?? If so, please let me know.? I haven't found a dedicated group.

In a paper account, I'm trying to submit a market order for BTC.? Apparently, the order partially fills (probably a paper account artifact??), but I have no way to determine how much filled because only the error is returned and no order id to use for subsequent order status queries.

I'm submitting to the?/v1/api/iserver/account/{account_id}/orders endpoint with these parameters:
{'orders': [{'conid': 479624278, 'side': 'BUY', 'orderType': 'MKT', 'tif': 'IOC', 'listingExchange': 'PAXOS', 'cashQty': 37500.0}]}

I receive the following error back.?
{'error': 'The market order was partially executed. Remaining quantity of 1.26749644 was removed.', 'suggestedSize': 1.27756125, 'suggestedCashSize': 46874.99982375}


 

It appears I can get around this limitation with TWS by disabling that qty check in TWS's settings.

However, I'm unable to disable a transmit confirm message box for all crypto orders.? This seems totally crazy.? What am I missing??!!

It defeats anything I could do with the API and crypto!? There must be some type of workaround.


Nick
 

Some exchanges prohibit automatic trading of some instruments. I don't know about crypto currencies specifically, you might want to contact IB.

On 2/3/2022 3:01 PM, Michael Sutton wrote:
However, I'm unable to disable a transmit confirm message box for all crypto orders.


 

Not sure which version of the "Client Portal API" you are using, Michael. The latest and beta versions available through the page seem to be from August 2020 with many files time stamped much older than that. Crypto was added in 10dot versions of TWS and TWS API late 2021 and the Client Portal API might just have incomplete Crypto support. Would probably be a question for IBKR API support.

Do you get the results you are looking for if you make your requests with a STK/ETF/FUT/... instrument?

闯ü谤驳别苍