¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: How to Get SPX/SPXW Quote price or current price


 

Which versions of TWS API and TWS/IBGW you are using?

Reason why I ask is that the root cause for your errors are not the data requests, but by the fact that your TWS API did not negotiate a valid common server version during connection with TWS/IBGW.
  • Error "It does not support historical data backfill" is caused at a "server version" of < 16
  • Error "It does not support delta-neutral orders" is caused at a "server version" < 40

Depending on the exact TWS API and TWS/IBGW, sever versions are now in the range of 170 to 180.

You need to review your connection logic for any issues and you can check the negotiated version after connection with the serverVersion() method of the EClient object.

´³¨¹°ù²µ±ð²Ô


On Thu, Dec 21, 2023 at 09:25 AM, <arunmak654@...> wrote:

i am trying to get the current price of SPX or SPXW but i am getting error. while trying with request Historical data getting the below error

error :? "It does not support historical data backfill."

?

code snippet:

const contract = {

? symbol: 'SPX',

? secType: 'IND',

? exchange: 'CBOE',

? currency: 'USD'

};

?

ibClient.reqHistoricalData( 1, contract, '', '1 D', '1 min', 'TRADES', 1, 1, false, [] );

?

also i tried with request market data still getting error as "It does not support delta-neutral orders"

?

Thanks in advance

?

const contract = {

? symbol: 'SPX',

? secType: 'IND',

? exchange: 'CBOE',

? currency: 'USD'

};

ib.reqMktData(1, contract, '', false);

?

Join [email protected] to automatically receive all group messages.