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

Polygon Stock Middleware Backend Endpoints #8

Open
theDe-bugger opened this issue Nov 17, 2023 · 0 comments · May be fixed by #11
Open

Polygon Stock Middleware Backend Endpoints #8

theDe-bugger opened this issue Nov 17, 2023 · 0 comments · May be fixed by #11
Assignees
Labels

Comments

@theDe-bugger
Copy link
Contributor

Description

Need a backend endpoint that the site can access to test the crypto arbitrage strategies for a specific currency, two exchanges, and time frame.

Overall:

  • Gurik made an endpoint similar to this for cryptos, feel free to discuss this with him
  • pretty simple, just use our api key thats in the server folder and call polygon for corresponding data requests
  • you can start by throwing a 400 error for any issues that come up, but will need to specify error codes for diff errors

We need to make GET request!

Endpoint

'/api/stock'

Params

  • stock ticker
  • start datetime
  • end datetime

Return

  • the data as received from polygon
  • note that this return could be fairly heavy and lead to a bottleneck
  • what are some ways you can address this? data aggregation? limit the data request to just a specific time period?

Example Call

GET /api/stock
with params:

  • stock ticker = AAPL
  • start = "01/01/2023 10:00:00"
  • end = "09/09/2023 18:00:00"

Return results the same way polygon does

@shaheer73 shaheer73 assigned shaheer73 and unassigned arshvirc Nov 20, 2023
@shaheer73 shaheer73 linked a pull request Nov 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants