--[[
  FinFeedAPI Stock 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
]]

-- ohlcv_timeseries_item class
local ohlcv_timeseries_item = {}
local ohlcv_timeseries_item_mt = {
	__name = "ohlcv_timeseries_item";
	__index = ohlcv_timeseries_item;
}

local function cast_ohlcv_timeseries_item(t)
	return setmetatable(t, ohlcv_timeseries_item_mt)
end

local function new_ohlcv_timeseries_item(time_period_start, time_period_end, time_open, time_close, price_open, price_high, price_low, price_close, volume_traded, trades_count)
	return cast_ohlcv_timeseries_item({
		["time_period_start"] = time_period_start;
		["time_period_end"] = time_period_end;
		["time_open"] = time_open;
		["time_close"] = time_close;
		["price_open"] = price_open;
		["price_high"] = price_high;
		["price_low"] = price_low;
		["price_close"] = price_close;
		["volume_traded"] = volume_traded;
		["trades_count"] = trades_count;
	})
end

return {
	cast = cast_ohlcv_timeseries_item;
	new = new_ohlcv_timeseries_item;
}
