Exclusive 22% OFF All Quantra by QuantInsti Courses for IBridgePy Users Master algorithmic trading from beginner to advanced — Python for trading, machine learning strategies, options trading, and more.
HUI22 Use HUI22 for 22% off
HUI7 Stack HUI7 for an additional 7% off
Browse Courses →
← Back to Blog

IBridgePy update information on 3/9/2017

March 10, 2017 · Update info

IBridgePy Update Functions and New Features

This IBridgePy update information introduces powerful new functions that enhance your algorithmic trading capabilities. The latest release includes advanced order management tools and improved data handling for Python traders using the IB API.

IBridgePy update information for algorithmic trading

Key Features in This Release

  • Add a few easy-to-use functions:
    1. superSymbol( secType, symbol, currency, exchange, primaryExchange, expiry, strike, right, multiplier) Specify a security by more parameters
    2. reqHistParam(security, barSize, goBack, endTime, whatToShow, useRTH, formatDate): Specify a historical data request by more parameters
    3. calculate_profit(a_security): Calculate profit of a position.
    4. create_order(action, amount, security, orderDetails, ocaGroup, ocaType, transmit, parentId): Create orders with more parameters. It can be used to place combination orders, take profit orders, stop loss orders and etc.
    5. place_order_with_TP_SL(parentOrder, tpOrder, slOrder) : Place orders with takeprofit orders and stoploss orders.
    6. place_combination_orders(legList): Place combination orders with legs.
    7. show_nextId( ): Show the next valid ID. The major usage is to put it in ocaGroup when creating orders.
    8. hold_any_position( ) : Return True if holding any positions. Return False if there is no any positions in the account.
  • Fix the bug of showing an error when internet disconnection happens: IBridgePy.IBAccountManager::search_in_end_check_list: cannot find any in self.end_check_list
  • Rewrite other critical functions