Skip to content

Error in TradeClient.get_filled_orders #59

@franziss

Description

@franziss

The recent release v2.2.2 caused a bug in TradeClient.get_filled_orders

This code was running fine but it can't run after this release. Can you fix this bug please? Thank you!

trade_client.get_filled_orders(symbol='VGT',sec_type=SecurityType.OPT,start_time=start_time,end_time=end_time,market=Market.US)

with error

---------------------------------------------------------------------------
ApiException                              Traceback (most recent call last)
my_script.ipynb Cell 41 in <cell line: 1>()
----> 1 trade_client.get_filled_orders(symbol='VGT',sec_type=SecurityType.OPT,start_time=start_time,end_time=end_time,market=Market.US)

File ~/anaconda3/lib/python3.8/site-packages/tigeropen/trade/trade_client.py:430, in TradeClient.get_filled_orders(self, account, sec_type, market, symbol, start_time, end_time, sort_by, seg_type)
    428         return response.orders
    429     else:
--> 430         raise ApiException(response.code, response.message)
    431 return None

ApiException: code=1010 msg=biz param error(field 'strike' cannot be empty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions