Skip to content

When using Python Client and expiration_date_gte, dates that are lt are returned as well  #388

Description

@AHangstefer

Describe the bug
When using Python Client and expiration_date_gte, dates that are lt are returned as well

To Reproduce

Query Options Contracts using Python Client
options = client.list_options_contracts(underlying_ticker='META', expiration_date_gte='2023-03-16', contract_type='call', strike_price_gte=20)

for p in options:

print(p)

First result:
OptionsContract(additional_underlyings=None, cfi='OCASPS', contract_type='call', correction=None, exercise_style='american', expiration_date='2023-02-24', primary_exchange='BATO', shares_per_contract=100, strike_price=20, ticker='O:META230224C00020000', underlying_ticker='META')

Expected behavior
Response should only return dates that are greater than or equal to expiration_date_gte

Additional context
Works in REST API directly but not when using Python Client

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions