Lua: Add Security.AlternateId getter

This commit is contained in:
Aaron Lindsay 2017-11-05 20:52:36 -05:00
parent f2a45dc6b6
commit 5dd27a6c56
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}