Keyboard Shortcuts
Likes
Search
How to Get SPX/SPXW Quote price or current price
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); ? |
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.
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:
|
JavaScript is not one of the IBKR TWS APIs we are focused on here. So you'd have to reach out to the makers/group that supports that version.
toggle quoted message
Show quoted text
TWS 10.19 is fine and has a server version of 173. There seems to be something wrong with the JavaScript TWS API module. ´³¨¹°ù²µ±ð²Ô On Thu, Dec 21, 2023 at 11:00 AM, arun kumar m wrote:
|