Trading Articles
Article Categories
Article Tools
API Exchange code for VIX futures
Updated November 27, 2018
trending_up
3,300 views
thumb_up
3 thanks given
group
4 followers
forum
3 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
API Exchange code for VIX futures
(login for full post details)
#1 (permalink )
Nashville, TN
Posts: 10 since Feb 2015
Thanks: 5 given,
2
received
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
The following user says Thank You to BrazilForever for this post:
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#2 (permalink )
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: 53 given,
29
received
Have you tried this? with Symbol = "VIX "
Code
contract.Symbol = "VIX";
contract.SecType = "FUT";
contract.Currency = "USD";
contract.Exchange = "CFE";
contract.LocalSymbol = "VXH5";
The following 2 users say Thank You to kojava for this post:
(login for full post details)
#3 (permalink )
Nashville, TN
Posts: 10 since Feb 2015
Thanks: 5 given,
2
received
Thank you, kojava!
It worked!
(login for full post details)
#4 (permalink )
Milan, Italy
Experience: Beginner
Platform: NinjaTrader, TWS
Trading: ES, Stocks
Posts: 252 since Jan 2012
Thanks: 357 given,
149
received
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
Last Updated on November 27, 2018
Right now
Ongoing
Right now
April
Elite only