From 0a15ad7306bf66834546a6d259149bab43454758 Mon Sep 17 00:00:00 2001 From: Hunter <6395201+HunterL@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:05:46 -0500 Subject: [PATCH] Correct 'tickers.any_of' (#152) * tickers.any_of -> ticker.any_of * increment version from 5.1.0 to 5.1.1 --- src/main/kotlin/io/polygon/kotlin/sdk/Version.kt | 2 +- src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 +)