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

-- new_order class
local new_order = {}
local new_order_mt = {
	__name = "new_order";
	__index = new_order;
}

local function cast_new_order(t)
	return setmetatable(t, new_order_mt)
end

local function new_new_order(uuid, side, ord_type, price, avg_price, state, market, created_at, volume, remaining_volume, reserved_fee, remaining_fee, paid_fee, locked, executed_volume, trades_count)
	return cast_new_order({
		["uuid"] = uuid;
		["side"] = side;
		["ord_type"] = ord_type;
		["price"] = price;
		["avg_price"] = avg_price;
		["state"] = state;
		["market"] = market;
		["created_at"] = created_at;
		["volume"] = volume;
		["remaining_volume"] = remaining_volume;
		["reserved_fee"] = reserved_fee;
		["remaining_fee"] = remaining_fee;
		["paid_fee"] = paid_fee;
		["locked"] = locked;
		["executed_volume"] = executed_volume;
		["trades_count"] = trades_count;
	})
end

return {
	cast = cast_new_order;
	new = new_new_order;
}
