Skip to content

Commit

Permalink
Correct 'tickers.any_of' (#152)
Browse files Browse the repository at this point in the history
* tickers.any_of -> ticker.any_of

* increment version from 5.1.0 to 5.1.1
  • Loading branch information
HunterL authored Dec 15, 2023
1 parent c9d1335 commit 0a15ad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/io/polygon/kotlin/sdk/Version.kt
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 2 additions & 3 deletions src/main/kotlin/io/polygon/kotlin/sdk/rest/Snapshots.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }
Expand Down Expand Up @@ -144,4 +143,4 @@ data class SnapshotsTrade(
@SerialName("sip_timestamp") val sipTimestamp: Long? = null,
val size: Double? = null,
@SerialName("timeframe") val timeframe: String? = null,
)
)

0 comments on commit 0a15ad7

Please sign in to comment.