--[[
  Upbit Open API
 
  ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com] 
 
  OpenAPI spec version: 1.0.0
  Contact: ujhin942@gmail.com
  Generated by: https://github.com/swagger-api/swagger-codegen.git
]]

-- candle_minutes class
local candle_minutes = {}
local candle_minutes_mt = {
	__name = "candle_minutes";
	__index = candle_minutes;
}

local function cast_candle_minutes(t)
	return setmetatable(t, candle_minutes_mt)
end

local function new_candle_minutes(market, candle_date_time_utc, candle_date_time_kst, opening_price, high_price, low_price, trade_price, timestamp, candle_acc_trade_price, candle_acc_trade_volume, unit)
	return cast_candle_minutes({
		["market"] = market;
		["candle_date_time_utc"] = candle_date_time_utc;
		["candle_date_time_kst"] = candle_date_time_kst;
		["opening_price"] = opening_price;
		["high_price"] = high_price;
		["low_price"] = low_price;
		["trade_price"] = trade_price;
		["timestamp"] = timestamp;
		["candle_acc_trade_price"] = candle_acc_trade_price;
		["candle_acc_trade_volume"] = candle_acc_trade_volume;
		["unit"] = unit;
	})
end

return {
	cast = cast_candle_minutes;
	new = new_candle_minutes;
}
