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

-- order_info class
local order_info = {}
local order_info_mt = {
	__name = "order_info";
	__index = order_info;
}

local function cast_order_info(t)
	return setmetatable(t, order_info_mt)
end

local function new_order_info(uuid, side, ord_type, price, state, market, created_at, volume, remaining_volume, reserved_fee, remaining_fee, paid_fee, locked, executed_volume, trades_count, trades)
	return cast_order_info({
		["uuid"] = uuid;
		["side"] = side;
		["ord_type"] = ord_type;
		["price"] = 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;
		["trades"] = trades;
	})
end

return {
	cast = cast_order_info;
	new = new_order_info;
}
