Search found 7 matches

by vjsworld
Fri Jun 29, 2018 11:57 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

Re: how to setup a futures option vertical spread contract?

uidESopt1 = REGISTER_CONTRACT("ES","FOP","USD","GLOBEX","","20180702","P",2725,"50",0,0.0); uidESopt2Leg = ADD_COMBO_LEG(0, 301447454, 1, 1, "SELL", "GLOBEX", 0, "", 0); Print("uidESopt2Leg: ", uidESopt2Leg); uidOrderEScombo = PLACE_ORDER(uidESopt1,0, "BUY", "LMT",1,1.0,0.0,"DAY", -1,0); Print("uid...
by vjsworld
Fri Jun 29, 2018 6:17 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

Re: how to setup a futures option vertical spread contract?

Ok, I am registering all contracts correctly, pulling in market data on them, and can issue orders individually on them (futures options too. Yay!)... Making progress... I am also able to register a combo leg. I then create the order for the first leg, with a transmit = -1. I then add the previously...
by vjsworld
Thu Jun 28, 2018 1:21 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

Re: how to setup a futures option vertical spread contract?

Before I even get to the combo leg part, I need to be able to trade a single futures option contract. I can successfully register the contract like this: uidESopt1 = REGISTER_CONTRACT("ES","FOP","USD","GLOBEX","","20180927","P",2725,"50",0,0.0); which returns 50008 (success.) But then when I try to ...
by vjsworld
Tue Jun 26, 2018 2:21 am
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

Re: how to setup a futures option vertical spread contract?

I am able to successfully register the separate option contracts, and then I can also create legs using the ADD_COMBO_LEG function. But when trying to create the order, the first input is "contract id". We do not have a spread contract id yet, and I do not believe you put either of these leg's IDs i...
by vjsworld
Sat Jun 23, 2018 1:55 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

Re: how to setup a futures option vertical spread contract?

I built the spread in TWS, and it looks like this:

https://www.dropbox.com/s/hanmpeb73sosd ... 1.PNG?dl=0

Just don't see how to get this symbol (combo) and/or contract details I need to register this contract
by vjsworld
Sat Jun 23, 2018 12:44 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: how to setup a futures option vertical spread contract?
Replies: 13
Views: 33323

how to setup a futures option vertical spread contract?

Could you please show me how to register a simple futures vertical spread option contract for retrieving bid/ask/last, as well as placing orders on this spread-contract? I am successfully registering the two separate FOP contracts, which I suppose need to be legs that are combined into one tradable ...