Skip to content

Support for Midprice and IBAlgo orders #142

@rmalh

Description

@rmalh

Describe Enhancement

I tried using OrderRequest() with order_type = 'MIDPRICE' and 'ADAPTIVE' (one of IB's proprietary algos), but it doesn't seem like iBind supports them. 'MIDPRICE' threw error "orders request includes parameter with incorrect type" and 'ADAPTIVE' threw "OrderRequest.init() got an unexpected keyword argument 'order_params'".

Context

I currently use limit orders but would like to evaluate these algos for my trading.

Possible Implementation

for MIDPRICE: orderType = "MIDPRICE"
for ADAPTIVE: algoStrategy = "Adaptive"; algoParams = []; algoParams.append(TagValue("adaptivePriority", "Normal"))

Your Environment

  • IBind version: 0.1.22
  • Python version (e.g. 3.10): Python 3.13.7
  • Authentication method (Gateway, IBeam or OAuth): IBeam
  • Operating System and version: Ubuntu 25.10
  • Link to your project/code (if public)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions