-
Notifications
You must be signed in to change notification settings - Fork 18
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
Charts api reworked #59
base: master
Are you sure you want to change the base?
Conversation
val value: String, | ||
val dateFormat: String, | ||
val timeWindow: FiniteDuration, | ||
val pgValue: Int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comment
.../markets-api/src/main/scala/org/ergoplatform/dex/markets/api/v1/models/charts/ChartGap.scala
Outdated
Show resolved
Hide resolved
please, squash commits |
b60ff44
to
18fcb97
Compare
@@ -81,6 +82,27 @@ final class AmmStatsEndpoints(conf: RequestConfig) { | |||
.name("Pool chart") | |||
.description("Get price chart by pool") | |||
|
|||
def getPoolPriceChartWithGaps: Endpoint[(PoolId, TimeWindow, ChartGap), HttpError, List[PricePoint], Any] = | |||
baseEndpoint.get | |||
.in(PathPrefix / "pool" / path[PoolId].description("Asset reference") / "charts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Asset reference"
is misleading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed
from <- window.from | ||
to <- window.to | ||
period = to - from | ||
} yield if (period > gap.minimalGap) false else true).getOrElse(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} yield if (period > gap.minimalGap) false else true).getOrElse(true) | |
} yield period <= gap.minimalGap).getOrElse(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
cc5be10
to
e065d72
Compare
e065d72
to
8d0c414
Compare
No description provided.