Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Any API to retrieve an order object instance using order.ref?

    General Discussion
    2
    3
    510
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      z_kvn last edited by

      Dear Sir/Madam

      First of all, thanks for the the awesome back testing system, the great documentation and this wonderful community discussion portal with very nice UI and search functions.

      Ok here is a little question regarding orders. I've walked through multiple tutorials related to order management including "Multi Example". In all tutorials that I've looked at, all orders are tracked using reference number (i.e. "order.ref").

      Since to cancel an order, we'd need to an actual order object instance. My question is whether there is any way to retrieve an actual order object instance using some API method and the order's reference number? I'm looking for something like myStrategy.getOrder(anOrderReferenceNumber).

      Best regards.

      Kevin

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        Keep the order itself.

        1 Reply Last reply Reply Quote 0
        • Z
          z_kvn last edited by

          Got you. Thanks for the super fast response.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors