Yes, you can do that... you'd just need to create a data structure that would store the results for you... I've done something similar before that stores values... simply use LUA "Tables" to store/lookup the results... https://www.tutorialspoint.com/lua/lua_tables.htm
Note that the downside is that depending on the size of the tables you're creating/updating, it can require significant "time" and "storage" penalties to do this and there is the potential to slow down your bot. Usually it's not a huge performance hit, but some people want/need 100's of bets/second type performance from the bot.
If that isn't that important to you... then what you want to do shouldn't be too difficult.
Note that the downside is that depending on the size of the tables you're creating/updating, it can require significant "time" and "storage" penalties to do this and there is the potential to slow down your bot. Usually it's not a huge performance hit, but some people want/need 100's of bets/second type performance from the bot.
If that isn't that important to you... then what you want to do shouldn't be too difficult.
Thanks sir!