--[[
  CoinAPI Market Data 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
]]

-- v1_exchange class
local v1_exchange = {}
local v1_exchange_mt = {
	__name = "v1_exchange";
	__index = v1_exchange;
}

local function cast_v1_exchange(t)
	return setmetatable(t, v1_exchange_mt)
end

local function new_v1_exchange(exchange_id, website, name, data_start, data_end, data_quote_start, data_quote_end, data_orderbook_start, data_orderbook_end, data_trade_start, data_trade_end, data_trade_count, data_symbols_count, volume_1hrs_usd, volume_1day_usd, volume_1mth_usd, metric_id, icons, rank, integration_status)
	return cast_v1_exchange({
		["exchange_id"] = exchange_id;
		["website"] = website;
		["name"] = name;
		["data_start"] = data_start;
		["data_end"] = data_end;
		["data_quote_start"] = data_quote_start;
		["data_quote_end"] = data_quote_end;
		["data_orderbook_start"] = data_orderbook_start;
		["data_orderbook_end"] = data_orderbook_end;
		["data_trade_start"] = data_trade_start;
		["data_trade_end"] = data_trade_end;
		["data_trade_count"] = data_trade_count;
		["data_symbols_count"] = data_symbols_count;
		["volume_1hrs_usd"] = volume_1hrs_usd;
		["volume_1day_usd"] = volume_1day_usd;
		["volume_1mth_usd"] = volume_1mth_usd;
		["metric_id"] = metric_id;
		["icons"] = icons;
		["rank"] = rank;
		["integration_status"] = integration_status;
	})
end

return {
	cast = cast_v1_exchange;
	new = new_v1_exchange;
}
