Author name: ibridge

Use IBridgePy to place a group order with One Cancel All (OCA)

IBridgePy OCA order functions let you place sophisticated bracket orders with One Cancel All features using Interactive Brokers. You can use create_order() and place_combination_orders() to implement algorithm trading strategies with multiple order legs that cancel each other automatically. Learning how to place group order combinations is essential for advanced trading strategies. Create_Order to Place Group […]

Use IBridgePy to place a group order with One Cancel All (OCA) Read More »

Is there any way for me to save history data using IBridgePy?

A: Yes. The historical data received in IBridgePy from the IB server are saved in data[symbol(‘xxx’)].hist that is a pandas dataframe. Therefore, you can save it to a csv file by pd.dataframe.to_csv(“Path_to_your_local_folder”) and use it later in anyway. Example: Request historical data of AAPL and SPY and save them to local folder. def initialize(context): pass

Is there any way for me to save history data using IBridgePy? Read More »

Add reqHistParam( ) to IBridgePy documentation 4/10/2017

reqHistParam IBridgePy Function for Historical Data The reqHistParam documentation provides precise control over historical data requests from Interactive Brokers. This essential function for algorithmic trading allows custom bar sizes, timeframes, and data ranges. reqHistParam Documentation: Parameters and Examples Use reqHistParam to clearly define the parameters when you request historical data from IB. security: use symbol(

Add reqHistParam( ) to IBridgePy documentation 4/10/2017 Read More »

Add superSymbol to IBridgePy documentation 4/8/2017

superSymbol Function Python Documentation The superSymbol documentation enables precise security definition for algorithmic trading. This comprehensive function works with stocks, options, futures, forex, and indices in IBridgePy. superSymbol Documentation: Function Parameters and Usage Create a security object by clearly defining every details. It can be used to define any securities/commodities that are available at IB.

Add superSymbol to IBridgePy documentation 4/8/2017 Read More »

IBridgePy update information on 3/21/2017

Multiple IB Accounts Error Resolution This IBridgePy update information resolves problems when placing orders with multiple Interactive Brokers accounts. If you have multiple IB accounts connected to one login, IBridgePy now properly handles account specification for order placement. User reported “Error validating request:-td : cause – You must specify an account.” The root cause of

IBridgePy update information on 3/21/2017 Read More »

IBridgePy update information on 3/9/2017

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. Key Features in This Release Add a few easy-to-use functions: superSymbol( secType, symbol, currency, exchange, primaryExchange,

IBridgePy update information on 3/9/2017 Read More »