All Downloads are FREE. Search and download functionalities are using the official Maven repository.

payload.response.ItemStatistics.kt Maven / Gradle / Ivy

package payload.response

import enums.IdSnapshot
import enums.OrderType
import java.util.*

data class ItemStatistics private constructor(
	val statistics_closed: Statistics,
	val statistics_live: Statistics
) {
	data class Statistics private constructor(
		val `90days`: List,
		val `48hours`: List
	) {
		interface Snapshot {
			val datetime: Date
			val volume: Int
			val min_price: Float
			val max_price: Float
			val avg_price: Float
			val wa_price: Float
			val median: Float
			val mod_rank: Int?
			val id: IdSnapshot
			val moving_avg: Float
		}

		data class Closed private constructor(
			override val datetime: Date,
			override val volume: Int,
			override val min_price: Float,
			override val max_price: Float,
			override val avg_price: Float,
			override val wa_price: Float,
			override val median: Float,
			override val mod_rank: Int?,
			override val id: IdSnapshot,
			override val moving_avg: Float,

			val open_price: Float,
			val closed_price: Float,
			val donch_top: Float,
			val donch_bot: Float
		) : Snapshot

		data class Live private constructor(
			override val datetime: Date,
			override val volume: Int,
			override val min_price: Float,
			override val max_price: Float,
			override val avg_price: Float,
			override val wa_price: Float,
			override val median: Float,
			override val mod_rank: Int,
			override val id: IdSnapshot,
			override val moving_avg: Float,

			val order_type: OrderType
		) : Snapshot
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy