issues icon indicating copy to clipboard operation
issues copied to clipboard

Create an "All Crypto Pairs" reference endpoint

Open evanvolgas opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. I would love to start doing some analytics on crypto pairs in Polygon, but it's currently not possible for me to list which crypto pairs are available in Polyon. I basically have to find them ad hoc or bring a list of pairs myself and hope that they match the ones you have on file.

Describe the solution you'd like Similar to the stocks reference data /v3/reference/tickers endpoint, I believe there should be an endpoint that allows you to determine which crypto pairs Polygon has information about.

Describe alternatives you've considered I considered assembling a list of crypto tickers myself, but was discouraged by https://github.com/polygon-io/issues/issues/259. The problem with bringing your own tickers is that Polygon might use slightly different symbols than the ones I would bring to the table, and there would be no way for me to determine if Polygon was really missing data for a given cryptocurrency or if I just brought a slightly different crypto ticker than the one that Polygon uses.

evanvolgas avatar Oct 22 '23 08:10 evanvolgas

Actually it looks like the all tickers endpoint returns crypto ticker endpoints as well. Are all of them prefixed "X:"? If so, would it be possible to document that somewhere?

evanvolgas avatar Oct 22 '23 19:10 evanvolgas

Hello! Yes, you can find all crypto tickers supported by Polygon.io using the Tickers endpoint. Just set the "market" parameter to "crypto". The query will look like this: https://api.polygon.io/v3/reference/tickers?market=crypto&active=true&limit=1000&apiKey=**

And yes, you'll need the prefix X: when querying pairings. It would be a good idea for that to be written somewhere on our Crypto docs page. I'll see what we can do about that! : https://polygon.io/docs/crypto/getting-started

AHangstefer avatar Oct 27 '23 21:10 AHangstefer