NexusFi: Find Your Edge


Home Menu

 





API Exchange code for VIX futures


Discussion in Platforms and Indicators

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




 
Search this Thread

API Exchange code for VIX futures

  #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?
Are there any eval firms that allow you to sink to your …
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
  #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: 278 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts