On Thursday, August 14, 2014 9:41:55 PM UTC-5, Eugene Kononov wrote:
>
> 1. The contract multiplier should be set to 1 for stocks (it's only
> applicable to futures)
>
> *OK, I will reset it to 1 *
> 2. The EmailException is thrown because you have not configured the email
> user name and password. You can simply turn off the email notification
> service from preferences.
>
*Thanks*
>
> 3. In your second try, the error was swallowed. To enable the error
> reporting, replace this:
> // 200: bad contract
> if (errorCode == 200) {
> traderAssistant.volumeResponse(id, -1);
> }
> with this
> // 200: bad contract
> if (errorCode == 200) {
> eventReport.report(JBookTrader.APP_NAME, errorMsg);
> traderAssistant.volumeResponse(id, -1);
> }
>
*I couldn't find this in JBT 9.0.1, instead in Trader.java I got*
* // 200: bad contract*
* // 309: market depth requested for more than 3 symbols*
* boolean isInvalidRequest = (errorCode == 200 || errorCode ==
309);*
* if (isInvalidRequest) {*
* eventReport.report(JBookTrader.APP_NAME, errorMsg); //add one
line for error message*
* Dispatcher.getInstance().fireModelChanged(Event.Error, "IB
reported: " + errorMsg);*
* }*
*With new code, it seems no error message for Contract contract =
ContractFactory.makeStockContract("TSLA", "ISLAND","USD"); *
*The EventReport is same as before and one more line occurred:*
*08/14/14**22:49:22.049**IB API**2104: Market data farm connection is
OK:usfarm.us*
4. How does your market data subscription age looks like. Do you have both
> the "US Securities Bundle" and "Nasdaq TotalView" checked? I've attached
> mine for reference.
>
*Thanks for the reference! I selected both "US Securities Bundle" and
"Nasdaq TotalView" . The only difference between ES and TSLA I see in TWS
Market Depth Window is that there is one footnote (additional sources
available:ARCA,BEX, and an option for subscribe ) at the bottom of TSLA
window. Maybe this is the key to the issue. Will check with IB tomorrow.*
>
> 5. I've always used JBT with futures, and it's been a long time since I
> tested it with stocks, so perhaps I missed something.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/d/optout.