Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@AHangstefer

Description

@AHangstefer
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.