API Support » Option-Chain? Dec 31, 2021 @ 03:59 PM (Total replies: 5) | |||||
It seems I should subscribe to price changes of underlying future Client.Subscriptions.Price.Subscribe(cbSymbol.SelectedContract.ID); And then I will receive GreeksChanged often because future price often changes. Or I can subscribe to price changes of the option itself Client.Subscriptions.Price.Subscribe(cbSymbol.SelectedContract.ID); but the price usually changes rare, so I will receive updates...sometime. |
|||||
API Support » Option-Chain? Dec 31, 2021 @ 03:43 PM (Total replies: 5) | |||||
I'm sorry, I wanted to post my question into another topic https://apisupport.gainfutures.com/Topic/Index/1357 |
|||||
API Support » Option-Chain? Dec 31, 2021 @ 03:41 PM (Total replies: 5) | |||||
The problem is that private void OnGreeksChanges(IGFClient client, GreeksChangedEventArgs e) never called. And volatility event handlers supplying some strange values, that doesn't look like an option's Implied Volatility |
|||||
API Support » Option-Chain? Dec 31, 2021 @ 03:38 PM (Total replies: 5) | |||||
Hello, I tried something similar (subscribe for greeks of the option) on the demo API account so I set Client.Options.VolatilitySource = Api.Options.OptionVolatilitySource.Client; then subscribed on greeks (slightly modifying GF Advanced Example) protected override void PrepareControlEventHandlers() ... public void ChartSelectedContractChangedEventHandler(IContract contract) Please help me to figure out, is its limitation of the demo account or should do something additional to receive greeks? Also, may I ask whether if "GF.Api.Contracts.Volatility" related to options? Or it's not a something-related option Implied Volatility (IV)? |