Skip to content

ref-cj/Trading.OHLC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install & Run

Required Runtime

NET 10

For the project, install and run is hopefully just:

  • 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")

Testing

If launched with the default launchSettings, the base address should be http://localhost:5127

Swagger

The swagger UI is at http://localhost:5127/swagger

.http File

The Trading.OHLC.RestApi.http file has some requests built in (and assumes the default launchConfig)

curl

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"

Remarks

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages