Programming the IB API

Originally posted by Banjo
http://sierrachart.com/#features
These guys were supposed to start using IB's feed. Haven't had time to check it out. If you do tell us what you think. I've never used them, got them from one of the threads here.
well i must say they have a nice logo..

sierra.gif


looks like it was made in about 2 minutes with microsoft paint.
 
The following code should work for the excel api but it doesn't update for me yet:

Sub Realtime_Calculate()
'
' Realtime Macro
' Macro recorded 8/30/2002
'
' Keyboard Shortcut:
'
Dim wsDDE As Worksheet
Dim wsES As Worksheet


Set wsDDE = Worksheets("Tickers")
Set wsES = Worksheets("Realtime")


Worksheets("Realtime").Range("A3").Insert
wsES.Range("A3:A3") = wsDDE.Range("M20").Value



End Sub

This should give an expanding column of continuously updating prices from the IB DDe link cell (M20 in this case). Charting this column using dynamic range names should give a good chart in Excel. Still working on it. If anyone has done this, please post.
 
Thanks for all the suggestions. QuoteTracker looks pretty close to what I was thinking of but I'll let the kinks get cleared out first. Doesn't sound like they allow futures trading through IB yet anyway and I want it mainly for the E-minis.
 
No, not yet. It looked like the version being offered was beta and I haven't had good experiences being a guinea pig. May try sometime later this week.
 
I am writing a program to send orders using IB API and don't know the solution for following situation.

If I send a order to buy 1000 shares, and I get 400 shares filled, then I cancel the rest of the order(600 shares). If the cancellation goes through, which event I can use to get the information(price, ...) about the 400 shares. any insight would be much appreciated.
 
Back
Top