--[[
  Exchange Rates Historical 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_asset class
local v1_asset = {}
local v1_asset_mt = {
	__name = "v1_asset";
	__index = v1_asset;
}

local function cast_v1_asset(t)
	return setmetatable(t, v1_asset_mt)
end

local function new_v1_asset(asset_id, name, type_is_crypto, data_quote_start, data_quote_end, data_orderbook_start, data_orderbook_end, data_trade_start, data_trade_end, data_symbols_count, volume_1hrs_usd, volume_1day_usd, volume_1mth_usd, price_usd, id_icon, supply_current, supply_total, supply_max, chain_addresses, data_start, data_end)
	return cast_v1_asset({
		["asset_id"] = asset_id;
		["name"] = name;
		["type_is_crypto"] = type_is_crypto;
		["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_symbols_count"] = data_symbols_count;
		["volume_1hrs_usd"] = volume_1hrs_usd;
		["volume_1day_usd"] = volume_1day_usd;
		["volume_1mth_usd"] = volume_1mth_usd;
		["price_usd"] = price_usd;
		["id_icon"] = id_icon;
		["supply_current"] = supply_current;
		["supply_total"] = supply_total;
		["supply_max"] = supply_max;
		["chain_addresses"] = chain_addresses;
		["data_start"] = data_start;
		["data_end"] = data_end;
	})
end

return {
	cast = cast_v1_asset;
	new = new_v1_asset;
}
