From 5dd27a6c561e43512178448e1333f92d327db428 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sun, 5 Nov 2017 20:52:36 -0500 Subject: [PATCH] Lua: Add Security.AlternateId getter --- internal/handlers/securities_lua.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/handlers/securities_lua.go b/internal/handlers/securities_lua.go index 4acd979..555bdc4 100644 --- a/internal/handlers/securities_lua.go +++ b/internal/handlers/securities_lua.go @@ -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) }