Currency pairs prices from IB using Python API

Discussion in 'App Development' started by danjuma, Sep 12, 2017.

  1. danjuma

    danjuma

    Hi GAT, I have made so many amendments here and there and the whole .py file currently looks untidy and difficult to follow. Please bear with me. I will look at it and tidy it up properly later tonight when I come back form work and if it still does not work, will post the whole code for your attention. Many thanks for assisting; I am most grateful
     
    #11     Sep 13, 2017
  2. GAT is right about getting the symbols right. The symbol naming convention in the IB API can be quite tricky.
     
    #12     Sep 13, 2017
  3. I'm not reading through all that crap - not for free.

    Can you please create "a minimum executable example" - a fragment of code that produces the error and doesn't need any other imports? i.e. just a few lines to create the contract and try and get the price.

    GAT
     
    #13     Sep 13, 2017
  4. I just created this gist using my standard market data example.
    https :// gist.github.com/robcarver17/4b09c440ea56e1011d1528f6ccfc266b

    [I've edited the web address because ET keeps trying to render it as media - take the spaces out]

    It worked perfectly. The contract is created at line 397

    GAT
     
    #14     Sep 13, 2017
  5. danjuma

    danjuma

    No problem sir, completely understand :)
     
    #15     Sep 13, 2017
  6. danjuma

    danjuma

    Okay will have a look. Many thanks!
     
    #16     Sep 13, 2017
  7. danjuma

    danjuma


    Hello GAT, just an update with regards to my quest as you spared part of your precious time to try and help. Did check out your gist, but found it overwhelming :) I have managed, however, to sort out the issue. Many thanks for your assistance!
     
    #17     Sep 23, 2017