Skip to content

Commit

Permalink
Fix incorrect order of candle sticks (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Dec 5, 2024
1 parent f7208a2 commit 194ebe5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.13.39"
version = "1.13.40"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ internal class CandlesProcessor(
payload: List<IndexerCandleResponseObject>?
): InternalMarketState {
if (!payload.isNullOrEmpty()) {
val candles = payload.reversed().mapNotNull {
val candles = payload.mapNotNull {
itemProcessor.process(it)
}.sortedBy {
it.startedAtMilliseconds
}
val merged = merge(
parser = parser,
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.13.39'
spec.version = '1.13.40'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 194ebe5

Please sign in to comment.