--[[
  CoinAPI Indexes REST API

  No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

  The version of the OpenAPI document: v1
  Contact: support@apibricks.io
  Generated by: https://openapi-generator.tech
]]

-- indexes_index_timeseries_item class
local indexes_index_timeseries_item = {}
local indexes_index_timeseries_item_mt = {
	__name = "indexes_index_timeseries_item";
	__index = indexes_index_timeseries_item;
}

local function cast_indexes_index_timeseries_item(t)
	return setmetatable(t, indexes_index_timeseries_item_mt)
end

local function new_indexes_index_timeseries_item(time_period_start, time_period_end, time_open, time_close, value_open, value_high, value_low, value_close, value_count)
	return cast_indexes_index_timeseries_item({
		["time_period_start"] = time_period_start;
		["time_period_end"] = time_period_end;
		["time_open"] = time_open;
		["time_close"] = time_close;
		["value_open"] = value_open;
		["value_high"] = value_high;
		["value_low"] = value_low;
		["value_close"] = value_close;
		["value_count"] = value_count;
	})
end

return {
	cast = cast_indexes_index_timeseries_item;
	new = new_indexes_index_timeseries_item;
}
