Skip to content

StockMarket exchange property doesn't use the Exchanges type #53

@Branch

Description

@Branch

Description

When using the StockMarket component I was expecting to be able to use the Exchanges type for the exchange property within this component. Instead I found that the StockMarket component is using a a union type where it has defined its own exchanges. These exchanges are different from the ones used in the Exchanges type.

Exchanges type:

export type Exchanges =

StockMarket union:
https://github.com/JorrinKievit/react-ts-tradingview-widgets/blob/09959377b501b44d3cfef4c113a14c33e00c5c1d/src/components/StockMarket.tsx#L8C3-L8C3

@JorrinKievit Is this done on purpose? I also noticed that none of them match the exchanges found on for example https://www.tradingview.com/widget/market-movers/ - this is causing issues when using the StockMarket component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions