Keyboard Shortcuts
Likes
- Twsapi
- Messages
Search
Re: FAPercentage and order size
Unfortunately the newest beta 9.72 API gives the same error?10068 - Percent Change orders must have size or percent change but not both... Seems like it does not work as expected. Thanks anyway. On Mon, Jun 6, 2016 at 8:38 PM, Ed Gonen <ed.gonen@...> wrote:
|
||||||||||||||||||
Re: FAPercentage and order size
Correction - found it. I'm wondering how this beta is mature. I need to use this in production environment so I'm very careful not to use any pre-release versions. Any opinion on it? On Mon, Jun 6, 2016 at 8:33 PM, Ed Gonen <ed.gonen@...> wrote:
|
||||||||||||||||||
Re: FAPercentage and order size
Thanks for this info. I'm using the latest API_Version=9.71 available at Github. I'll try to look for 9.72. Maybe it was fixed. BTW - I didn't find where I can download this 9.72 from... Thanks E On Sun, Jun 5, 2016 at 11:32 PM, jb201448@... [TWSAPI] <TWSAPI@...> wrote:
|
||||||||||||||||||
Re: Anyway to load symbols and dates into IB charts using code (not manually) from Excel?
I'm pretty surprised.. Do you know anyway to auto-load symbols/dates onto the TWS charts? It would seem like a task everyone with a backtester would need to do without having to mindlessly type in symbols to view specific dates/symbols (task can be quite tedious with a large enough sample size).?
|
||||||||||||||||||
Re: Question about API message throttling ...
Thanks for the post milliejoyner ... you reinforce my decision to NOT waste time coding and debugging TWS snapshots for option chains. ?There is another weird thing about TWS option subscriptions, for streaming requests: If you request a lot of strikes, then almost always there will be nothing returned in the tickOptionComputation event, on the first request ... then if you cancel and resubscribe to the same strikes you will "wake up" the event and the data will flow in. ?If anyone knows why this happens and if there is any way to make it NOT happen then please chime in!
Can I ask you, what data vendor(s) do you prefer for getting good option chain data via an API? ?I'm hoping TWS will be adequate for my needs after I ditch my Activ contract ($1500/month), but I'm fully prepared to get a different vendor (hopefully less than $500/month) to replace IB if the frustration level gets too high ... |
||||||||||||||||||
Re: Question about API message throttling ...
About a year ago I attempted to do exactly what you are describing using snapshots to get option chains and it was a failure.? Besides the obvious problems of simultaneity with snapshots taking 10-20 seconds to respond, there were numerous situations when IB would return very stale quotes for some options, particularly less liquid options.
The workaround was to do the same snapshot again a few seconds later and it would then usually return the correct prices.?? It seemed as if IB wasn't actively monitoring the quote when the first snapshot was requested and it just returned whatever old data it had in its cache.? But the first snapshot then "woke-up" the quote so there are accurate prices available when the second snapshot is requested. Perhaps IB has upgraded their software and this is no longer an issue.? I eventually switched to higher quality data vendors and wouldn't think of switching back to IB for this data. |
||||||||||||||||||
Re: FA account info
I've already posted that found a piece of code in TWS API samples that does this. On Sun, Jun 5, 2016 at 6:25 PM, John Leavitt johnjohnleavitt@... [TWSAPI] <TWSAPI@...> wrote:
|
||||||||||||||||||
Re: FA account info
John Leavitt
--------------------------------------------
toggle quoted message
Show quoted text
On Sat, 6/4/16, ed.gonen@... [TWSAPI] <TWSAPI@...> wrote:
Subject: [TWS API] FA account info To: TWSAPI@... Date: Saturday, June 4, 2016, 2:12 PM Never heard of this ? Hi, I was wondering if there is a description of the XML for the?faXmlData parameter. I mean the one you get in receiveFA callback as a result of requestFA(type). I could not find it anywhere. Of course I can analyze it and guess what it includes, but thought it is well defines somewhere. ThanksE? #yiv4414461442 #yiv4414461442 -- #yiv4414461442ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;} #yiv4414461442 #yiv4414461442ygrp-mkp hr { border:1px solid #d8d8d8;} #yiv4414461442 #yiv4414461442ygrp-mkp #yiv4414461442hd { color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;} #yiv4414461442 #yiv4414461442ygrp-mkp #yiv4414461442ads { margin-bottom:10px;} #yiv4414461442 #yiv4414461442ygrp-mkp .yiv4414461442ad { padding:0 0;} #yiv4414461442 #yiv4414461442ygrp-mkp .yiv4414461442ad p { margin:0;} #yiv4414461442 #yiv4414461442ygrp-mkp .yiv4414461442ad a { color:#0000ff;text-decoration:none;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ygrp-lc { font-family:Arial;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ygrp-lc #yiv4414461442hd { margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ygrp-lc .yiv4414461442ad { margin-bottom:10px;padding:0 0;} #yiv4414461442 #yiv4414461442actions { font-family:Verdana;font-size:11px;padding:10px 0;} #yiv4414461442 #yiv4414461442activity { background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;} #yiv4414461442 #yiv4414461442activity span { font-weight:700;} #yiv4414461442 #yiv4414461442activity span:first-child { text-transform:uppercase;} #yiv4414461442 #yiv4414461442activity span a { color:#5085b6;text-decoration:none;} #yiv4414461442 #yiv4414461442activity span span { color:#ff7900;} #yiv4414461442 #yiv4414461442activity span .yiv4414461442underline { text-decoration:underline;} #yiv4414461442 .yiv4414461442attach { clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;} #yiv4414461442 .yiv4414461442attach div a { text-decoration:none;} #yiv4414461442 .yiv4414461442attach img { border:none;padding-right:5px;} #yiv4414461442 .yiv4414461442attach label { display:block;margin-bottom:5px;} #yiv4414461442 .yiv4414461442attach label a { text-decoration:none;} #yiv4414461442 blockquote { margin:0 0 0 4px;} #yiv4414461442 .yiv4414461442bold { font-family:Arial;font-size:13px;font-weight:700;} #yiv4414461442 .yiv4414461442bold a { text-decoration:none;} #yiv4414461442 dd.yiv4414461442last p a { font-family:Verdana;font-weight:700;} #yiv4414461442 dd.yiv4414461442last p span { margin-right:10px;font-family:Verdana;font-weight:700;} #yiv4414461442 dd.yiv4414461442last p span.yiv4414461442yshortcuts { margin-right:0;} #yiv4414461442 div.yiv4414461442attach-table div div a { text-decoration:none;} #yiv4414461442 div.yiv4414461442attach-table { width:400px;} #yiv4414461442 div.yiv4414461442file-title a, #yiv4414461442 div.yiv4414461442file-title a:active, #yiv4414461442 div.yiv4414461442file-title a:hover, #yiv4414461442 div.yiv4414461442file-title a:visited { text-decoration:none;} #yiv4414461442 div.yiv4414461442photo-title a, #yiv4414461442 div.yiv4414461442photo-title a:active, #yiv4414461442 div.yiv4414461442photo-title a:hover, #yiv4414461442 div.yiv4414461442photo-title a:visited { text-decoration:none;} #yiv4414461442 div#yiv4414461442ygrp-mlmsg #yiv4414461442ygrp-msg p a span.yiv4414461442yshortcuts { font-family:Verdana;font-size:10px;font-weight:normal;} #yiv4414461442 .yiv4414461442green { color:#628c2a;} #yiv4414461442 .yiv4414461442MsoNormal { margin:0 0 0 0;} #yiv4414461442 o { font-size:0;} #yiv4414461442 #yiv4414461442photos div { float:left;width:72px;} #yiv4414461442 #yiv4414461442photos div div { border:1px solid #666666;height:62px;overflow:hidden;width:62px;} #yiv4414461442 #yiv4414461442photos div label { color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;} #yiv4414461442 #yiv4414461442reco-category { font-size:77%;} #yiv4414461442 #yiv4414461442reco-desc { font-size:77%;} #yiv4414461442 .yiv4414461442replbq { margin:4px;} #yiv4414461442 #yiv4414461442ygrp-actbar div a:first-child { margin-right:2px;padding-right:5px;} #yiv4414461442 #yiv4414461442ygrp-mlmsg { font-size:13px;font-family:Arial, helvetica, clean, sans-serif;} #yiv4414461442 #yiv4414461442ygrp-mlmsg table { font-size:inherit;font:100%;} #yiv4414461442 #yiv4414461442ygrp-mlmsg select, #yiv4414461442 input, #yiv4414461442 textarea { font:99% Arial, Helvetica, clean, sans-serif;} #yiv4414461442 #yiv4414461442ygrp-mlmsg pre, #yiv4414461442 code { font:115% monospace;} #yiv4414461442 #yiv4414461442ygrp-mlmsg * { line-height:1.22em;} #yiv4414461442 #yiv4414461442ygrp-mlmsg #yiv4414461442logo { padding-bottom:10px;} #yiv4414461442 #yiv4414461442ygrp-msg p a { font-family:Verdana;} #yiv4414461442 #yiv4414461442ygrp-msg p#yiv4414461442attach-count span { color:#1E66AE;font-weight:700;} #yiv4414461442 #yiv4414461442ygrp-reco #yiv4414461442reco-head { color:#ff7900;font-weight:700;} #yiv4414461442 #yiv4414461442ygrp-reco { margin-bottom:20px;padding:0px;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ov li a { font-size:130%;text-decoration:none;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ov li { font-size:77%;list-style-type:square;padding:6px 0;} #yiv4414461442 #yiv4414461442ygrp-sponsor #yiv4414461442ov ul { margin:0;padding:0 0 0 8px;} #yiv4414461442 #yiv4414461442ygrp-text { font-family:Georgia;} #yiv4414461442 #yiv4414461442ygrp-text p { margin:0 0 1em 0;} #yiv4414461442 #yiv4414461442ygrp-text tt { font-size:120%;} #yiv4414461442 #yiv4414461442ygrp-vital ul li:last-child { border-right:none !important; } #yiv4414461442 |
||||||||||||||||||
IBDividends feed
Hi all, I am attempting to get the IBDividends feed working for a given set of tickers:
I can successfully request feed 456: 15:19:13:996 <- 1-10-23832-0-RIO-STK--0.0---LSE--GBP---0-456-0- However I never get a returned tick type of 59, at least from the tickString callback (as this is meant to be a comma separated list of values). ?I am using Java and can get all other data, position sizes, tick prices, account details, etc., but never seem to get any dividend related information. Has anyone successfully managed to get a return tick type of 59? Thanks, Andrew |
||||||||||||||||||
Re: I am new to this group and post my first request
Remi,
toggle quoted message
Show quoted text
Thanks so much for your time and consideration. I'll have a look at it shortly! Mike -------------------------------------------- On Fri, 6/3/16, remiroche@... [TWSAPI] <TWSAPI@...> wrote:
Subject: [TWS API] Re: I am new to this group and post my first request To: TWSAPI@... Date: Friday, June 3, 2016, 8:49 PM ? Hey Mike, The excel program in this course records the ticks from IB :?Create Your Own Automated Stock Trading Robot In EXCEL! Create Your Own Automated Stock Trading Robot In E... Learn how to use Visual Basic in Excel to automate your trading! View on www.udemy.com Preview by Yahoo ?I thought it could help as you are not familiar with coding : files + code lesson might be relevant... Hope it helps... Remi #yiv9686386394 #yiv9686386394 -- #yiv9686386394ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;} #yiv9686386394 #yiv9686386394ygrp-mkp hr { border:1px solid #d8d8d8;} #yiv9686386394 #yiv9686386394ygrp-mkp #yiv9686386394hd { color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;} #yiv9686386394 #yiv9686386394ygrp-mkp #yiv9686386394ads { margin-bottom:10px;} #yiv9686386394 #yiv9686386394ygrp-mkp .yiv9686386394ad { padding:0 0;} #yiv9686386394 #yiv9686386394ygrp-mkp .yiv9686386394ad p { margin:0;} #yiv9686386394 #yiv9686386394ygrp-mkp .yiv9686386394ad a { color:#0000ff;text-decoration:none;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ygrp-lc { font-family:Arial;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ygrp-lc #yiv9686386394hd { margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ygrp-lc .yiv9686386394ad { margin-bottom:10px;padding:0 0;} #yiv9686386394 #yiv9686386394actions { font-family:Verdana;font-size:11px;padding:10px 0;} #yiv9686386394 #yiv9686386394activity { background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;} #yiv9686386394 #yiv9686386394activity span { font-weight:700;} #yiv9686386394 #yiv9686386394activity span:first-child { text-transform:uppercase;} #yiv9686386394 #yiv9686386394activity span a { color:#5085b6;text-decoration:none;} #yiv9686386394 #yiv9686386394activity span span { color:#ff7900;} #yiv9686386394 #yiv9686386394activity span .yiv9686386394underline { text-decoration:underline;} #yiv9686386394 .yiv9686386394attach { clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;} #yiv9686386394 .yiv9686386394attach div a { text-decoration:none;} #yiv9686386394 .yiv9686386394attach img { border:none;padding-right:5px;} #yiv9686386394 .yiv9686386394attach label { display:block;margin-bottom:5px;} #yiv9686386394 .yiv9686386394attach label a { text-decoration:none;} #yiv9686386394 blockquote { margin:0 0 0 4px;} #yiv9686386394 .yiv9686386394bold { font-family:Arial;font-size:13px;font-weight:700;} #yiv9686386394 .yiv9686386394bold a { text-decoration:none;} #yiv9686386394 dd.yiv9686386394last p a { font-family:Verdana;font-weight:700;} #yiv9686386394 dd.yiv9686386394last p span { margin-right:10px;font-family:Verdana;font-weight:700;} #yiv9686386394 dd.yiv9686386394last p span.yiv9686386394yshortcuts { margin-right:0;} #yiv9686386394 div.yiv9686386394attach-table div div a { text-decoration:none;} #yiv9686386394 div.yiv9686386394attach-table { width:400px;} #yiv9686386394 div.yiv9686386394file-title a, #yiv9686386394 div.yiv9686386394file-title a:active, #yiv9686386394 div.yiv9686386394file-title a:hover, #yiv9686386394 div.yiv9686386394file-title a:visited { text-decoration:none;} #yiv9686386394 div.yiv9686386394photo-title a, #yiv9686386394 div.yiv9686386394photo-title a:active, #yiv9686386394 div.yiv9686386394photo-title a:hover, #yiv9686386394 div.yiv9686386394photo-title a:visited { text-decoration:none;} #yiv9686386394 div#yiv9686386394ygrp-mlmsg #yiv9686386394ygrp-msg p a span.yiv9686386394yshortcuts { font-family:Verdana;font-size:10px;font-weight:normal;} #yiv9686386394 .yiv9686386394green { color:#628c2a;} #yiv9686386394 .yiv9686386394MsoNormal { margin:0 0 0 0;} #yiv9686386394 o { font-size:0;} #yiv9686386394 #yiv9686386394photos div { float:left;width:72px;} #yiv9686386394 #yiv9686386394photos div div { border:1px solid #666666;height:62px;overflow:hidden;width:62px;} #yiv9686386394 #yiv9686386394photos div label { color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;} #yiv9686386394 #yiv9686386394reco-category { font-size:77%;} #yiv9686386394 #yiv9686386394reco-desc { font-size:77%;} #yiv9686386394 .yiv9686386394replbq { margin:4px;} #yiv9686386394 #yiv9686386394ygrp-actbar div a:first-child { margin-right:2px;padding-right:5px;} #yiv9686386394 #yiv9686386394ygrp-mlmsg { font-size:13px;font-family:Arial, helvetica, clean, sans-serif;} #yiv9686386394 #yiv9686386394ygrp-mlmsg table { font-size:inherit;font:100%;} #yiv9686386394 #yiv9686386394ygrp-mlmsg select, #yiv9686386394 input, #yiv9686386394 textarea { font:99% Arial, Helvetica, clean, sans-serif;} #yiv9686386394 #yiv9686386394ygrp-mlmsg pre, #yiv9686386394 code { font:115% monospace;} #yiv9686386394 #yiv9686386394ygrp-mlmsg * { line-height:1.22em;} #yiv9686386394 #yiv9686386394ygrp-mlmsg #yiv9686386394logo { padding-bottom:10px;} #yiv9686386394 #yiv9686386394ygrp-msg p a { font-family:Verdana;} #yiv9686386394 #yiv9686386394ygrp-msg p#yiv9686386394attach-count span { color:#1E66AE;font-weight:700;} #yiv9686386394 #yiv9686386394ygrp-reco #yiv9686386394reco-head { color:#ff7900;font-weight:700;} #yiv9686386394 #yiv9686386394ygrp-reco { margin-bottom:20px;padding:0px;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ov li a { font-size:130%;text-decoration:none;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ov li { font-size:77%;list-style-type:square;padding:6px 0;} #yiv9686386394 #yiv9686386394ygrp-sponsor #yiv9686386394ov ul { margin:0;padding:0 0 0 8px;} #yiv9686386394 #yiv9686386394ygrp-text { font-family:Georgia;} #yiv9686386394 #yiv9686386394ygrp-text p { margin:0 0 1em 0;} #yiv9686386394 #yiv9686386394ygrp-text tt { font-size:120%;} #yiv9686386394 #yiv9686386394ygrp-vital ul li:last-child { border-right:none !important; } #yiv9686386394 |
||||||||||||||||||
Re: Question about API message throttling ...
Thanks Nick, that's what I was guessing about the snapshots. ?I have no problem paying for the quote boosters to get the #tickers I need; that's what I'm doing now. ?And I currently have a professional-grade low-latency data vendor (Activ), but the main point of this project is to get away from Activ as I don't need it any longer after mothballing my old trading strategy that required true unfiltered data. ?For the options I just need to get a decently accurate, pretty-much-simultaneously snapshotted chain on demand, plus at 5-10 minute intervals all day ... years of experience with the TWS feed tells me that TWS is adequate for this purpose ... although if anyone wants to chime in with comments as to why this is NOT so I would appreciate it.
|
||||||||||||||||||
FAPercentage and order size
HI, I'm implementing now the FAGroup/PctChange order type and face the following. If I specify both TotalQuantity field and FAPercentage then the IB gives an error message that I cannot use both size and percentage. The if I put 0 into TotalQuantity, it says that the size cannot be 0. Does anyone have an example of the FAGroup/PctChange order preparation? Thanks ? |
||||||||||||||||||
Re: Question about API message throttling ...
Nick
¿ªÔÆÌåÓýI can already tell you that snapshots are not going to be mission-critical reliable. Even if you don't have throttling issues there are no guarantees about response time.The closest you are going to get with IB is to pay for an upgrade to get the number of of tickers you need and have the quote streams all running concurrently. But you probably you need a data vendor that can get you closer to an unfiltered quote stream. On 6/4/2016 8:16 PM,
topdrudge@... [TWSAPI] wrote:
? |
||||||||||||||||||
Re: Question about API message throttling ...
Ok thanks for that ... I might have to start a new thread to get an expert answer to this, but in case anyone who really knows is reading this: Does the snapshot method work as well as streaming subscriptions to get mission-critical, industrial-strength bid/ask data for index contracts like SPX where we need to capture the real, simultaneous chain data for 200+ strikes at once?
|
||||||||||||||||||
Anyway to load symbols and dates into IB charts using code (not manually) from Excel?
I wanted to load specific symbols and dates (i.e.: WFC 2/3/2016, C 4/1/2015, etc.... ) into IB charts using code (Python, preferably), and wanted to know if that was possible using the TWS API interface. Ideally, it would load 9 charts per tab, and do so for multiple tabs using an Excel spreadsheet, without needing to manually enter anything.? Also, I would like to program a keyboard key (i.e.: shift+r) so that the date of the current, selected chart could be recorded and fed into an Excel spreadsheet. (i.e: shift +r would record current chart's symbol and date).? Any help would be greatly appreciated. Thanks |