Keyboard Shortcuts
Likes
- Twsapi
- Messages
Search
Re: Help Needed with my Excel SHeet (DDE)
toggle quoted message
Show quoted text
On 20 Feb 2020, at 22:03, Josh via Groups.Io <jb201448@...> wrote:
|
Re: Help Needed with my Excel SHeet (DDE)
Hi Josh Error Code: 320 Message:? Error reading request:-'ord' : cause - Invalid scale order.? You should specify component order size. I get this message when i use the twsdde sample sheet provided. On Thu, Feb 20, 2020 at 10:24 PM Josh via Groups.Io <jb201448=[email protected]> wrote:
|
Re: Help Needed with my Excel SHeet (DDE)
What error do you receive after placing the order??
?
These formulas will show information about the last encountered error (with 'twsserver' replaced by your username if you're using the legacy DDE connection).?
?
=Stwsserver|err!id
=Stwsserver|err!errorCode
=Stwsserver|err!errorMsg
? |
Re: Help Needed with my Excel SHeet (DDE)
开云体育Perhaps because my balance is below usd2000. ?Seems strange that I can get live data from paper trader using api but can’t transmit an order.Thanks On 20 Feb 2020, at 19:44, Yair Altman via Groups.Io <altmany@...> wrote:
|
Re: Help Needed with my Excel SHeet (DDE)
Hi Yair, No, I have enable dde clients ticked and? Read Only unticked.? Is there any chance you could try my spreadsheet on your paper trading account and see if the orders actually place? Cheers On Thu, Feb 20, 2020 at 8:49 PM Yair Altman via Groups.Io <altmany=[email protected]> wrote: In your TWS/Gateway's API configuration, you need to ensure that the "Enable DDE clients" checkbox is on and the "Read-Only API" checkbox is off. I suspect that it is set-up differently on your TWS.? |
Help Needed with my Excel SHeet (DDE)
Hi ? It worked perfectly 1 year ago.? Now it connects to to market data, but the orders do not fire.? I cannot seem to place a simple buy or sell order or a bracket order that connects and fires through the API. |
Re: Release Notes new TWS API version 979 ?
The Release Notes are always linked from the download page?
I think the most recent (v979) are still being written up. Its not necessary to upgrade the API though, unless theres a specific feature you're interested in using. Was there a particular feature you had a question about, or were you just curious about whats new?? |
Re: Total Quantity on a Completed Order
The reqCompletedOrders function is for both cancelled and filled orders (and partially filled) that are no longer active. totalQuantity is for the size of the part of the order which didn't fill, whereas filledQuantity would be for the size of the filled part. So if the order filled completely you'd have totalQuantity=0 and filledQuantity=filled size.?
|
Re: Question on data being purge on exit of API application
Thanks for the reply, even the error callback in EWrapper gets blocked. I am leaning towards option 3 of yours, but I want to know how the API was able to block everything from EWrapper .......
toggle quoted message
Show quoted text
On Wed, Feb 19, 2020 at 10:30 AM, Nick wrote: t the idea. Since data arrives during sh |
Re: Question on data being purge on exit of API application
Nick
开云体育Although IB does occasionally break TWS or the api libraries this kind of situation is almost always an issue in the client app. Since you have multiple threads with an intermittent failure a race condition is a likely suspect. I don't use the C# libraries so I don't have specific help on
what to look for inside the library. Given that the TWS log shows the data is sent then: There may be other possibilities but you get the idea. Since data
arrives during shutdown you might look for any threads that get
released during shutdown (but were previously stalled). On 2/19/2020 10:04 AM,
ashwani.malhotra@... wrote:
Hello, |
Re: update order type SNAP PRIM
Nick
开云体育You can modify an order by calling placeOrder with the same order id. Fill in all the fields the same as the original order except the ones you want to change. Some changes are allowed and some aren't. You'll probably have to
experiment to see if you can change the price for this order type. On 2/19/2020 8:30 AM,
nkulki@... wrote:
There is a an order type called SNAP PRIM which will place a order to the best bid or best ask. I would like to periodically update this order since this does not follow the order book. Is there any easy way to update the order so that it will update the effective limit price of the order? Currently I tend to cancel and place new orders. But I was wondering if there was a way to update the existing order rather than cancelling an existing order and then place? a new order. |
Re: Total Quantity on a Completed Order
Nick
开云体育This seems like one of the newer api functions so there might not be too many people using it yet. I think your best bet is to contact IB Api support if you haven't
seen a reply by now. On 2/18/2020 4:17 PM, Mikhail Veygman
wrote:
When I attempt to recover completed orders with API 9.76 I seems to get totalQuantity() == 0 in the completed Order. |