diff --git a/src/main/kotlin/io/polygon/kotlin/sdk/Version.kt b/src/main/kotlin/io/polygon/kotlin/sdk/Version.kt index e7f82ae..e67606d 100644 --- a/src/main/kotlin/io/polygon/kotlin/sdk/Version.kt +++ b/src/main/kotlin/io/polygon/kotlin/sdk/Version.kt @@ -1,6 +1,6 @@ package io.polygon.kotlin.sdk object Version { - const val name = "v5.1.0" + const val name = "v5.1.1" const val userAgent = "Polygon.io JVM Client/$name" } diff --git a/src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt b/src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt index ed26920..92d0cf5 100644 --- a/src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt +++ b/src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt @@ -4,7 +4,6 @@ import com.thinkinglogic.builder.annotation.Builder import io.ktor.http.* import io.polygon.kotlin.sdk.rest.options.SnapshotContractDetails import io.polygon.kotlin.sdk.rest.options.SnapshotGreeks -import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @@ -18,7 +17,7 @@ suspend fun PolygonRestClient.getSnapshots( "v3", "snapshot", ) - params.tickers?.let{ parameters["tickers.any_of"] = it.joinToString(",") } + params.tickers?.let{ parameters["ticker.any_of"] = it.joinToString(",") } params.order?.let { parameters["order"] = it } params.limit?.let { parameters["limit"] = it.toString() } params.sort?.let { parameters["sort"] = it } @@ -144,4 +143,4 @@ data class SnapshotsTrade( @SerialName("sip_timestamp") val sipTimestamp: Long? = null, val size: Double? = null, @SerialName("timeframe") val timeframe: String? = null, -) \ No newline at end of file +)