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

-- trade_trade_model class
local trade_trade_model = {}
local trade_trade_model_mt = {
	__name = "trade_trade_model";
	__index = trade_trade_model;
}

local function cast_trade_trade_model(t)
	return setmetatable(t, trade_trade_model_mt)
end

local function new_trade_trade_model(is_trade_break, symbol, timestamp_nanos, timestamp, size, price, trade_id, is_intermarket_sweep, is_extended_hours_trade, is_odd_lot_trade, is_trade_through_exempt, is_single_price_cross_trade)
	return cast_trade_trade_model({
		["is_trade_break"] = is_trade_break;
		["symbol"] = symbol;
		["timestamp_nanos"] = timestamp_nanos;
		["timestamp"] = timestamp;
		["size"] = size;
		["price"] = price;
		["trade_id"] = trade_id;
		["is_intermarket_sweep"] = is_intermarket_sweep;
		["is_extended_hours_trade"] = is_extended_hours_trade;
		["is_odd_lot_trade"] = is_odd_lot_trade;
		["is_trade_through_exempt"] = is_trade_through_exempt;
		["is_single_price_cross_trade"] = is_single_price_cross_trade;
	})
end

return {
	cast = cast_trade_trade_model;
	new = new_trade_trade_model;
}
