mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-03 18:13:27 -05:00 
			
		
		
		
	Lua: Add Security.AlternateId getter
This commit is contained in:
		@@ -142,6 +142,8 @@ func luaSecurity__index(L *lua.LState) int {
 | 
			
		||||
		L.Push(lua.LNumber(float64(a.Type)))
 | 
			
		||||
	case "ClosestPrice", "closestprice":
 | 
			
		||||
		L.Push(L.NewFunction(luaClosestPrice))
 | 
			
		||||
	case "AlternateId", "alternateid":
 | 
			
		||||
		L.Push(lua.LString(a.AlternateId))
 | 
			
		||||
	default:
 | 
			
		||||
		L.ArgError(2, "unexpected security attribute: "+field)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user