GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Missing ticker root and ticker suffix fields in get_ticker_details response · Issue #370 · massive-com/client-python

Missing ticker root and ticker suffix fields in get_ticker_details response #370

New issue
Copy link
New issue
Copy link
Closed
Closed
Missing ticker root and ticker suffix fields in get_ticker_details response#370
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@Stormy110
Stormy110
opened on Jan 31, 2023
Issue body actions

Describe the bug
When querying the get_ticker_details function for a ticker with a "ticker_suffix", there is no ticker_suffix fields returned in the normal response unless you set raw=True.

To Reproduce
details = client.get_ticker_details(ticker="AVACU")

returns -
TickerDetails(active=True, address=CompanyAddress(address1='2 EMBARCADERO CENTER,', address2='FLOOR 8', city='SAN FRANCISCO', state='CA', country=None, postal_code='94111'), branding=Branding(icon_url=None, logo_url='https://api.polygon.io/v1/reference/company-branding/d3d3LmF2YWxvbnNwYWMuY29t/images/2023-01-01_logo.png', accent_color=None, light_color=None, dark_color=None), cik='0001836478', composite_figi='BBG00ZGYP725', currency_name='usd', currency_symbol=None, base_currency_name=None, base_currency_symbol=None, delisted_utc=None, description='Avalon Acquisition Inc is a blank check company.', ticker_root='AVAC', homepage_url='https://www.avalonspac.com', list_date='2021-10-06', locale='us', market='stocks', market_cap=None, name='Avalon Acquisition Inc. Units', phone_number='415-423-0010', primary_exchange='XNAS', share_class_figi='BBG00ZGYP7X1', share_class_shares_outstanding=None, sic_code='6770', sic_description='BLANK CHECKS', ticker='AVACU', total_employees=4, type='UNIT', weighted_shares_outstanding=None)

A normal request through the docs returns the following -
{'request_id': 'e9da60fa157ade88aaa6f010c76c6f57', 'results': {'ticker': 'AVACU', 'name': 'Avalon Acquisition Inc. Units', 'market': 'stocks', 'locale': 'us', 'primary_exchange': 'XNAS', 'type': 'UNIT', 'active': True, 'currency_name': 'usd', 'cik': '0001836478', 'composite_figi': 'BBG00ZGYP725', 'share_class_figi': 'BBG00ZGYP7X1', 'phone_number': '415-423-0010', 'address': {'address1': '2 EMBARCADERO CENTER,', 'address2': 'FLOOR 8', 'city': 'SAN FRANCISCO', 'state': 'CA', 'postal_code': '94111'}, 'description': 'Avalon Acquisition Inc is a blank check company.', 'sic_code': '6770', 'sic_description': 'BLANK CHECKS', 'ticker_root': 'AVAC', 'ticker_suffix': 'U', 'homepage_url': 'https://www.avalonspac.com', 'total_employees': 4, 'list_date': '2021-10-06', 'branding': {'logo_url': 'https://api.polygon.io/v1/reference/company-branding/d3d3LmF2YWxvbnNwYWMuY29t/images/2023-01-01_logo.png'}, 'round_lot': 100}, 'status': 'OK'}

Expected behavior
Same result and fields as the raw docs results.

Screenshots

Additional context
https://api.polygon.io/v3/reference/tickers/AVACU?apiKey=***

Activity

  1. Stormy110
    added
    bugSomething isn't workingSomething isn't working
    on Jan 31, 2023
  2. antdjohns commented on Feb 1, 2023

    @antdjohns
    antdjohns
    on Feb 1, 2023
    Contributor
    More actions

    Hey @Stormy110 thank you for bringing this to our attention. We have submitted a PR to get this patched.

  3. antdjohns commented on Feb 1, 2023

    @antdjohns
    antdjohns
    on Feb 1, 2023
    Contributor
    More actions

    Fixed:
    pip install polygon-api-client --upgrade

    TickerDetails(active=True,
    address=CompanyAddress(address1='2 EMBARCADERO CENTER,', address2='FLOOR 8', city='SAN FRANCISCO', state='CA', country=None, postal_code='94111'),
    branding=Branding(icon_url=None, logo_url='https://api.polygon.io/v1/reference/company-branding/d3d3LmF2YWxvbnNwYWMuY29t/images/2023-01-01_logo.png', accent_color=None, light_color=None, dark_color=None), 
    cik='0001836478', 
    composite_figi='BBG00ZGYP725', 
    currency_name='usd', 
    currency_symbol=None, 
    base_currency_name=None,
    base_currency_symbol=None, 
    delisted_utc=None, 
    description='Avalon Acquisition Inc is a blank check company.',
    ticker_root='AVAC', 
    ticker_suffix='U', 
    homepage_url='https://www.avalonspac.com',
    list_date='2021-10-06', 
    locale='us', 
    market='stocks', 
    market_cap=None, 
    name='Avalon Acquisition Inc. Units', 
    phone_number='415-423-0010', 
    primary_exchange='XNAS', 
    share_class_figi='BBG00ZGYP7X1', 
    share_class_shares_outstanding=None, 
    sic_code='6770', 
    sic_description='BLANK CHECKS', 
    ticker='AVACU', 
    total_employees=4, 
    type='UNIT', 
    weighted_shares_outstanding=None)
  4. antdjohns
    closed this as completedon Feb 1, 2023
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 workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.