Skip to content

Commit 0a15ad7

Browse files
authored
Correct 'tickers.any_of' (#152)
* tickers.any_of -> ticker.any_of * increment version from 5.1.0 to 5.1.1
1 parent c9d1335 commit 0a15ad7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.polygon.kotlin.sdk
22

33
object Version {
4-
const val name = "v5.1.0"
4+
const val name = "v5.1.1"
55
const val userAgent = "Polygon.io JVM Client/$name"
66
}

src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import com.thinkinglogic.builder.annotation.Builder
44
import io.ktor.http.*
55
import io.polygon.kotlin.sdk.rest.options.SnapshotContractDetails
66
import io.polygon.kotlin.sdk.rest.options.SnapshotGreeks
7-
import kotlinx.serialization.ExperimentalSerializationApi
87
import kotlinx.serialization.SerialName
98
import kotlinx.serialization.Serializable
109

@@ -18,7 +17,7 @@ suspend fun PolygonRestClient.getSnapshots(
1817
"v3",
1918
"snapshot",
2019
)
21-
params.tickers?.let{ parameters["tickers.any_of"] = it.joinToString(",") }
20+
params.tickers?.let{ parameters["ticker.any_of"] = it.joinToString(",") }
2221
params.order?.let { parameters["order"] = it }
2322
params.limit?.let { parameters["limit"] = it.toString() }
2423
params.sort?.let { parameters["sort"] = it }
@@ -144,4 +143,4 @@ data class SnapshotsTrade(
144143
@SerialName("sip_timestamp") val sipTimestamp: Long? = null,
145144
val size: Double? = null,
146145
@SerialName("timeframe") val timeframe: String? = null,
147-
)
146+
)

0 commit comments

Comments
 (0)