NET 10
- git clone git@github.com:ref-cj/Trading.OHLC.git
- cd Trading.OHLC/Trading.OHLC.RestApi && dotnet run (earlier versions of the .net sdk might require "dotnet restore && dotnet run")
If launched with the default launchSettings, the base address should be http://localhost:5127
The swagger UI is at http://localhost:5127/swagger
The Trading.OHLC.RestApi.http file has some requests built in (and assumes the default launchConfig)
For aggregated closing price at a specific hour:
curl "http://localhost:5127/api/v1/prices/AtGivenHour?ExPair=BTC/USD&Time=2026-01-21T06:00:00Z"For all aggregated pricepoints in cache within a range:
curl "http://localhost:5127/api/v1/prices/InHourRange?ExPair=BTC/USD&From=2021-01-21T05:00:00Z&To=2026-05-21T05:00:00Z"I tried to hit a balance between producing something clean and not overpolishing it to the point where it would take 2 full working days. I left a comment in the code whenever I came across something that I thought would require a team/project specific answer (or discussion) to hopefully show my thought process.