Announcement

Collapse
No announcement yet.

Is it possible to send orders to IB in EFS directly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to send orders to IB in EFS directly

    without the need to go through something like dynaorder? If so, which APIs should I use? Thanks.

  • #2
    Both work...

    Both EFS and DO for IB work perfectly. I have used them both.

    The instructions in the DOCs file should help you with EFS. There is also one TYPO....

    trade.Buy(getSymbol(),100,IBrBroker.MARKET)

    should be...

    trade.Buy(getSymbol(),100,IBBroker.MARKET)

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Re: Both work...

      Brad,


      Where are the DOC files ( hep file? )? Could you give me the URL? I am sure I saw it somewhere before, but can not recall where I saw it. Thanks.


      Clearpicks


      Originally posted by Doji3333
      Both EFS and DO for IB work perfectly. I have used them both.

      The instructions in the DOCs file should help you with EFS. There is also one TYPO....

      trade.Buy(getSymbol(),100,IBrBroker.MARKET)

      should be...

      trade.Buy(getSymbol(),100,IBBroker.MARKET)

      Brad

      Comment


      • #4
        Hello Clearpicks,

        They are in your local directroy.

        ...\eSignal\Docs\IBEFS.doc
        Jason K.
        Project Manager
        eSignal - an Interactive Data company

        EFS KnowledgeBase
        JavaScript for EFS Video Series
        EFS Beginner Tutorial Series
        EFS Glossary
        Custom EFS Development Policy

        New User Orientation

        Comment


        • #5
          What is the pros and cons of using IBEFS and Dynaorder? Which one is more stable and fast? Is there anybody using them? Thanks.


          Clearpicks


          Originally posted by JasonK
          Hello Clearpicks,

          They are in your local directroy.

          ...\eSignal\Docs\IBEFS.doc

          Comment


          • #6
            My opinion....

            The EFS_IB code is fast and clean. It allows you to place BUY and SELL orders for MARKET and LIMIT orders. It is a clean solution if your system controls everything internally (ie, stops, profit targets and order placement).

            The drawback to the EFS_IB code is that it does not allow you to cancel previously placed orders. So, if you place a limit order and want to cancel it from within your code - there is no way to accomplish this.

            Dynaorder does provide more functions for a more robust system (EFS), but is also adds a third interface with which to interact. there are also some tricks with DO to make everything work perfectly.

            For example...

            Trading Stocks with DO, you have to use the "D" functions and force a manual "rounding" to the values you use in your code. In other words, you have to force your EFS to handle alot of the number manipulation for STOCKS.

            Trading Futures with DO, you DON'T use the "D" functions and still have to round your prices (if necessary) to the proper Decimal value.

            DO also provides for placement and canceling of STOP, LIMIT, TRAILING orders - which can be very handy at times.

            Brad
            Brad Matheny
            eSignal Solution Provider since 2000

            Comment


            • #7
              Doji.

              Thanks. I assume IBEFS only support IB's smartrouting, right?


              Clearpicks

              Comment


              • #8
                SmartRouting..

                I believe you are correct. But you can refer to the DOCs folder for more information.

                Brad
                Brad Matheny
                eSignal Solution Provider since 2000

                Comment


                • #9
                  The "SMART" routing is required for any 3rd party application by IB API, so both Dynaorder and built-in IB Broker require to use "SMART" as Exchange parameter for Stock and Options orders.

                  Comment


                  • #10
                    order based on bid or ask

                    The example in the doc file is based on the close.

                    trade.Sell(getSymbol(),200,IBBroker. LIMIT, close())

                    What if I want to enter a limit order based on the bid or the ask?

                    Is this possible?

                    trade.Sell(getSymbol(),200,IBBroker. LIMIT, bid())

                    Thanks,

                    pretzel

                    Comment


                    • #11
                      Hello Pretzel,

                      Use getMostRecentBid() instead. bid() isn't a defined function in EFS.
                      Jason K.
                      Project Manager
                      eSignal - an Interactive Data company

                      EFS KnowledgeBase
                      JavaScript for EFS Video Series
                      EFS Beginner Tutorial Series
                      EFS Glossary
                      Custom EFS Development Policy

                      New User Orientation

                      Comment

                      Working...
                      X