Re: Not receiving some (many) historical ticks from TWS through API
When I run your specified query I get 1000 ticks back. I've attached a file containing the results.
Note that the timestamps are in my local timezone (UK), which is how the API returns the data,
By
Richard L King
·
#46388
·
|
Re: Problem allocation for placeOrder(app.nextorderId, FX_order('EURUSD'), order)
Moderator, You missed an account number in the example.
Best wishes,
M
By
mark collins
·
#46387
·
Edited
|
Problem allocation for placeOrder(app.nextorderId, FX_order('EURUSD'), order)
Good morning
i 'm french . sorry for my english
I'm working on the TWS API. Everything went very well until I got to the order with the PYTHON command
app.placeOrder (app.nextorderId, FX_order
By
GUY <guy.bonnardel@...>
·
#46386
·
Edited
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
The OCA is set automatically by IB for bracket orders. You don't have to set the OCA explicitly.
By
Nick <news1000@...>
·
#46385
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
According to my knowledge/experience, the size/quantity of a child order attached to a parent order must have the same size/quantity of the parent order. Hence my suggestion to use two sets of parent
By
Orionn
·
#46384
·
|
Not receiving some (many) historical ticks from TWS through API
I'm having a problem getting a great deal of historical trade ticks from TWS that are available in Time & Sales and this issue appears pretty frequent for the more liquid stocks. For certain days in
By
ds-avatar
·
#46383
·
|
Re: Python API vs C/C++ API advantage?
Newbie here - just starting out with IB. I have coded my own algo systems
in the past but not with IB. Those have been in Python(even though C++ was
also an offered interface) and I have never had
By
Ajay Joglekar
·
#46382
·
|
Re: Python API vs C/C++ API advantage?
You've gotten some good answers, I'll give an answer from a different perspective.
There are latencies you can't do anything about - quotes and orders traveling from exchanges to IB, within IB's
By
Nick <news1000@...>
·
#46381
·
|
Re: Python API vs C/C++ API advantage?
The max speed of interacting with TWS is NOT determined by the language you write in.? C++ is faster than Python but that doesn't matter as TWS's I/O is throttled (pacing violations).? Your code
By
Hunter C Payne
·
#46380
·
|
Re: Python API vs C/C++ API advantage?
Specific benchmarks are probably not useful here. C/C++ are in general
"faster" than python, all things equal, but it's not that simple.
Working with the IB api is mostly I/O-bound, meaning
By
Robert Crim
·
#46379
·
|
Python API vs C/C++ API advantage?
Hi,
Has anyone benchmarked speed of making requests and receiving data (the full cycle) with C/C++ VS Python?
Does it make a difference to go with either or in speed? (Excluding after the fact
By
Bruce B
·
#46378
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
Thank you the suggestion Orionn.
I found that the easiest alternate was to split the quantity as required for the parent order and place two bracket orders as described in TWS manual on bracket order
By
Pavan M
·
#46377
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
Two lots of commission though.
By
Richard L King
·
#46376
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
My suggestion is that you create two sets of orders. Each set includes the parent limit order and two attached OCA child orders (profit taker and stop loss). The limit price of the profit taker orders
By
Orionn
·
#46375
·
|
tif of child orders
If I place a buy limit order with a stop loss order attached as a child order and the original order is valid just for the day it will be the same for the stop order, correct?
Meaning if the trade is
By
Despair
·
#46374
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
Thank You Richard.
Thank You Yair.
--
Pavan
By
Pavan M
·
#46373
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
Note that when you attach multiple child orders, IB may place limitations on the possible combinations of allowed child-order parameters. For example, when you add a MOC exit order to the standard
By
Yair Altman
·
#46372
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
No it isn't possible, that's why I suggested what I did. If I had thought it were possible, I'd have said so: it was obvious from your question that that was what you were hoping for.
When you
By
Richard L King
·
#46371
·
|
Re: Place a Limit Order with 2 Profit Takers and 1 Stop Loss for a Stock
Thank You for your response Richard.
Actually I should have been a little more specific.? Is it possible to pack them into 1 order. Meaning - IB treats a Bracket Order (Limit Order with 1 Profit
By
Pavan M
·
#46370
·
|
Re: reqHistoricalData Duplicate Bars?
Thanks for the feedback. I would like to close off this topic with the answer to the problem.
In my code I was occasionally accidentally loading the same day twice due to some timezone calc error
By
David Armour
·
#46369
·
|