Recent content by UniversalGoldmine

  1. U

    placeOrder() IB

    I wonder how the correct way is to send an order using the .placeOrder() in IB. When running this code I get an exception: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I have put the arguments as long as I can think of but beleive...
  2. U

    Regular trading hours for a symbol (IB)

    I wonder if it is possible to get the regular trading hours for a symbol using IB API. It is possible to get data with this function but how is it possible to also return the regular trading hours for this symbol ? Tws1.reqHistoricalData(1, "MSFT", "STK", "", 0, "", "", "SMART", "usd", 0, ""...
  3. U

    Request data from IB

    This function requests 5 min data up until Date & Time: 20091123 18:00:00 Tws1.reqHistoricalData(1, "MSFT", "STK", "", 0, "","", "smart", "usd",0, "20091123 18:00:00","3600 S", "5 mins", "MIDPOINT", 1, 1); I wonder if there is any function that do the opposite and requests data from: 20091123...
  4. U

    Reset left side of += when request historical data at IB

    Thanks NetTecture, it seems that the above code seems to work. Thanks for your help!
  5. U

    Reset left side of += when request historical data at IB

    It worked as you said if I take the += out of the loop like this: Tws1.historicalData -= new AxTWSLib._DTwsEvents_historicalDataEventHandler(this.historicalData); List<String> Fill = new List<String>(); Fill.Add("MSFT"); Fill.Add("IBM")...
  6. U

    Reset left side of += when request historical data at IB

    When running this API code for IB to request historical data, it produces dublettes of each line for each symbol. As I understand this has to do with += ? I wonder if there is a way to reset the left side of the += after the first loop ? List<String> Fill = new List<String>()...
  7. U

    Request realtimebars IB API

    Yes, I am connected to TWS, I have the ability to request historical data so the connection do works anyway. label2 in the below code shows the string that connection was succesful. I tried to implement the Error function but no messagebox is shown. The complete code that I have is this code...
  8. U

    Request realtimebars IB API

    Thanks, I tried the Emty string ("") too, without success.
  9. U

    Request realtimebars IB API

    Thanks dcraig1, I am happy for your response. I understand, so I should use the reqMktData. I have tried to set it up like below but when running the code after I have connected to TWS, nothing happens. Perheps I have the arguments wrong in the reqMktData. private void...
  10. U

    Request realtimebars IB API

    I am trying to request realtime data with IB API. What I want to request is the Real-Time values of the Daily Bar: * Close * Net Change * Bid * Ask * High * Low * Todays Volume I have begun some code but are not sure how to complete it for MSFT in this example. I know that I will need to...
  11. U

    Request historical data with API in IB

    As I understand there is no request for Regular Trading Hours for a symbol. Perheps it will come, it would be optimal to have as it would be more easy to follow their request limits.
  12. U

    Request historical data with API in IB

    Thank you for your answers, it helps out alot. I will also when it is possible to try it out with a real account. I might wonder for a solution of how it would be possible to detect for a symbol to not request more than 2 Days of 1-minutdata. For example MSFT has this tradingsession: MSFT...
  13. U

    Request historical data with API in IB

    Hi, I have a question about the Historica data limitation when requesting bars at Interactive Brokers. On this link, it is said that it is possible to request 1-min bars 2 days back. http://www.interactivebrokers.com/php/apiUsersGuide/apiguide/api/historical_data_limitations.htm What I wonder...
  14. U

    API - InterActive Brokers - (Using Silverlight)

    Thanks for your answer again, it was really informative. I think I need to think of how I can make the best out of the situation with your info in mind and also perheps other solutions too. Thank you again for your help, alexis_michel
  15. U

    API - InterActive Brokers - (Using Silverlight)

    Thank you for your response. >> but basically you want a silverlight app to be sending orders to IB ? Yes, that is what I am truly looking for. The thing is that I am making an application in Silverlight that has a lot of functions and what now is missing, is to be able to send orders etc to...
Top