Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wss://iex-business.polygon.io is missing from the feeds constants. #516

Closed
sarcastron opened this issue Mar 6, 2025 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@sarcastron
Copy link

Describe the bug

There is a websocket feed missing from the constants. For websocket subscriptions to Trades I am required to use the wss://iex-business.polygon.io domain but this is not an option. I am able to override this, but for completeness and because one cannot subscribe to IEX trades or quotes without it, it should be included as a constant with the rest of the feeds here:

const (
Delayed Feed = "wss://delayed.polygon.io"
RealTime Feed = "wss://socket.polygon.io"
Nasdaq Feed = "wss://nasdaqfeed.polygon.io"
PolyFeed Feed = "wss://polyfeed.polygon.io"
PolyFeedPlus Feed = "wss://polyfeedplus.polygon.io"
StarterFeed Feed = "wss://starterfeed.polygon.io"
LaunchpadFeed Feed = "wss://launchpad.polygon.io"
BusinessFeed Feed = "wss://business.polygon.io"
EdgxBusinessFeed Feed = "wss://edgx-business.polygon.io"
DelayedBusinessFeed Feed = "wss://delayed-business.polygon.io"
DelayedEdgxBusinessFeed Feed = "wss://delayed-edgx-business.polygon.io"
DelayedNasdaqLastSaleBusinessFeed Feed = "wss://delayed-nasdaq-last-sale-business.polygon.io"
DelayedNasdaqBasicFeed Feed = "wss://delayed-nasdaq-basic-business.polygon.io"
DelayedFullMarketBusinessFeed Feed = "wss://delayed-fullmarket-business.polygon.io"
FullMarketBusinessFeed Feed = "wss://fullmarket-business.polygon.io"
NasdaqLastSaleBusinessFeed Feed = "wss://nasdaq-last-sale-business.polygon.io"
NasdaqBasicBusinessFeed Feed = "wss://nasdaq-basic-business.polygon.io"
)

To Reproduce

It's a missing constant so I guess try and create a new websocket connection with BusinessFeed and try to subscribe to a Trade. It will not work

c, err := polygonws.New(polygonws.Config{
	APIKey: polygonApiKey,
	Feed:   polygonws.BusinessFeed,
	Market: polygonws.Stocks,
	Log:    logger,
})
// This will not work
if err := c.Subscribe(polygonws.StocksTrades, "TSLA", "GME"); err != nil {
    log.Fatal(err)
}

Expected behavior

This used to work. It no longer does as IEX data has to be subscribed to from wss://iex-business.polygon.io

Screenshots

Additional context

Not sure if this is a bug or an enhancement but since previous functionality no longer works without a change, I figured it was a bug.

@sarcastron sarcastron added the bug Something isn't working label Mar 6, 2025
@justinpolygon
Copy link
Contributor

Thanks. We have a PR here #511. I'll get it merged and cut a release asap. Sorry about this.

@justinpolygon justinpolygon self-assigned this Mar 6, 2025
@justinpolygon
Copy link
Contributor

justinpolygon commented Mar 6, 2025

Hey @sarcastron, the PR has been merged and v1.16.10 has it. You should be able to use Feed: polygonws.IEXBusiness for accessing the IEX data now.

@sarcastron
Copy link
Author

@justinpolygon Thank you so much!

@justinpolygon
Copy link
Contributor

No worries. Thanks for reporting that @sarcastron!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants