Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added market hours and indices #110

Merged
merged 3 commits into from
Jul 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ suspend fun PolygonReferenceClient.getMarketStatus(vararg opts: PolygonRestOptio
data class MarketStatusDTO(
val market: String? = null,
val serverTime: String? = null,
val afterHours: Boolean = false,
val earlyHours: Boolean = false,
val exchanges: ExchangesStatusDTO = ExchangesStatusDTO(),
val indicesGroups: IndicesGroupsStatusDTO = IndicesGroupsStatusDTO(),
val currencies: CurrenciesStatusDTO = CurrenciesStatusDTO()
)

Expand All @@ -26,8 +29,21 @@ data class ExchangesStatusDTO(
val otc: String? = null
)

@Serializable
data class IndicesGroupsStatusDTO(
val s_and_p: String? = null,
val societe_generale: String? = null,
val msci: String? = null,
val ftse_russell: String? = null,
val mstar: String? = null,
val mstarc: String? = null,
val cccy: String? = null,
val nasdaq: String? = null,
val dow_jones: String? = null
)
justinpolygon marked this conversation as resolved.
Show resolved Hide resolved

@Serializable
data class CurrenciesStatusDTO(
val fx: String? = null,
val crypto: String? = null
)
)