NexusFi: Find Your Edge


Home Menu

 





API Exchange code for VIX futures


Discussion in Platforms and Indicators

Updated
    1. trending_up 5,601 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
BrazilForever
Nashville, TN
 
Posts: 10 since Feb 2015
Thanks Given: 5
Thanks Received: 2

Hello Everyone,

I am trying to retrieve contract details for VIX futures. The following code:

 
Code
Samples.EWrapperImpl ibClient = new Samples.EWrapperImpl();
ibClient.ClientSocket.eConnect("", 7496, 0); 
Contract contract = new Contract();
contract.Symbol = "VX";
contract.SecType = "FUT";
contract.Exchange = "CFE";
contract.Currency = "USD";
ibClient.ClientSocket.reqContractDetails(1, contract);
Thread.Sleep(20000);
ibClient.ClientSocket.eDisconnect();
return error: "No security definition has been found for the request"

So I am guessing that I am not specifying Exchange correctly, since the above code works perfectly for
contract.Symbol = "ES" and contract.Exchange = "GLOBEX".

I also tried contract.Exchange = "SMART"

Regards,
BrazilForever


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
The Ceasefire Curve: 2pct Peace by Next Week, 60pct by S …
Prediction Markets & Event Contracts
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
CFTC Requests Tag 50 Trader Identity Data From CME and I …
Traders Hideout
The Great Rotation -- Small Caps Crushing Tech as Sectio …
Traders Hideout
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
kojava's Avatar
 kojava 
Orlando, FL
 
Experience: Advanced
Platform: NinjaTrader, ToS, Sierra Chart, MCDT
Broker: Interactive Brokers
Trading: ES, NQ, 6E, 6A, TF, CL
Posts: 43 since Jan 2011
Thanks Given: 53
Thanks Received: 29

Have you tried this? with Symbol = "VIX"

 
Code
contract.Symbol         = "VIX";
contract.SecType       = "FUT";
contract.Currency      = "USD";
contract.Exchange     = "CFE";
contract.LocalSymbol = "VXH5";


Reply With Quote
Thanked by:
  #3 (permalink)
BrazilForever
Nashville, TN
 
Posts: 10 since Feb 2015
Thanks Given: 5
Thanks Received: 2


Thank you, kojava!

It worked!


Reply With Quote
  #4 (permalink)
 
gisot's Avatar
 gisot 
Milan, Italy
 
Experience: Beginner
Platform: NinjaTrader, TWS
Trading: ES, Stocks
Frequency: Every few days
Duration: Minutes
Posts: 246 since Jan 2012
Thanks Given: 385
Thanks Received: 178

hi,
@BrazilForever
@kojava
I was wondering whether you trade VIX futures (calendar) spreads using IB data feed, either on TWS, or NT8 or some other platform compatible with IB, and if so whether you could share on the forum how you do it or just your experience about these spreads. Thanks


Reply With Quote




Last Updated on November 27, 2018


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts