IB Apis

Discussion in 'Interactive Brokers' started by guest_trader_1, Jan 31, 2021.

  1. Hi guys, I am looking at the documentation and I don't seem to find a standard Rest API.

    I found two options so far:

    1. An SDK that needs the TWS open at all times and all queries go through it. I will need to authenticate manually and leave it open for the SDk to work.

    2. A local gateway in Java that allows me to authenticate through a local proxy. Again I have to authenticate manually.

    Surely these guys must have something close to the usual OAuth Rest API that I use with other brokers.
    One that would allow me to retrieve a token from the authentication service and use it in subsequent queries.

    Am I missing it from the docs? Or it is only allowed for certain types of accounts?
     
  2. I believe that IB does not offer a REST API.
    However, you could sign up to this dedicated group and ask your question there: https://groups.io/g/twsapi
     
    guest_trader_1 likes this.
  3. Butterfly

    Butterfly

    correct, no REST API with IB

    REST API is geek gadget, doesn't improve anything or make things any easier
     
  4. There's a REST API, all docs point to the 2 options I mentioned, but inside the clientAPI (gateway) there is a link to the actual REST endpoints.

    https://www.interactivebrokers.co.uk/webtradingapi/

    Just posting in case anyone else is looking. It is standard and uses OAuth for authentication.
     
  5. Shut up, you are not only wrong but also very loud.
     
  6. Butterfly

    Butterfly

    so why open a thread if you already had the answer? indeed, angry trader fits you well. Maybe you should cool off a bit, for a big mouth like yourself :)
     
  7. To catch people that post on everything that have no f* clue like yourself.
    I was looking for it initially and I asked for the question when I didn't know, then I kept looking and found it.
    If anyone uses the search they will find the link to the API and the useful post that HobbyTrading added.
    The will also find you having no f* idea and calling people big mouth.
     
  8. sef88

    sef88

    IB does have a REST API: https://www.interactivebrokers.com/webtradingapi/

    But most retail algo traders don't use that. We usually use IB gateway API (a more lightweight version of TWS). It allows for streaming of data and stuff.

    But for me my server trigger my python scripts via cronjob every hour. Make trades via IB gateway API and close the connection once completed as I do not require constant connection.
     
    guest_trader_1 likes this.
  9. Butterfly

    Butterfly

    oh boy, another self-righteous bozzo

    big fooking deal, IB introduced a new API REST, you are too lazy to do a google search, so you come open a thread like an idiot here because you can't use existing APIs for your shit,

    Looks like you are the one with no fooking clue :)
     
  10. How interesting this forum would be if people that does not need to post just would go away, instead of adding their rubbish to a simple technical question?
    How much do they like themselves to think that their rubbish posts should be part of every single thread?
    Not adding anything useful to the topic as well as creating noise for anyone that want to read it. that is the result.
    Maybe a good feature for the admins would be to allow post creators to remove nonsense from technical questions so we don't need to read what we don't have to.

    Thank you to those that helped on the topic, very much appreciated.
     
    #10     Feb 1, 2021