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