diff --git a/build.gradle.kts b/build.gradle.kts index c25dfe160..00d9e6c97 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.39" +version = "1.13.40" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/markets/CandlesProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/markets/CandlesProcessor.kt index 216c01a8e..2a7464f65 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/markets/CandlesProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/markets/CandlesProcessor.kt @@ -48,8 +48,10 @@ internal class CandlesProcessor( payload: List? ): InternalMarketState { if (!payload.isNullOrEmpty()) { - val candles = payload.reversed().mapNotNull { + val candles = payload.mapNotNull { itemProcessor.process(it) + }.sortedBy { + it.startedAtMilliseconds } val merged = merge( parser = parser, diff --git a/v4_abacus.podspec b/v4_abacus.podspec index cf6007e6e..27b1fb737 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -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 = ''