what was that one website someone here ran that logged ec auctions? auction logger or something? you could probably setup a command to just spit out a link to query that on that website.
e.g. !auc 10 dose null potion would spit out
this link in chat
you could probably do that within nightbot if you combine
urlfetch with
querystring
but if you want something more sophisticated, like hosting your own personal logs on a server and making your own API to interact with said logs, that's a lot more in-depth and complicated, but if all you're considering is whether "it's possible", then the answer is it sure is possible. but i suggest the former since a lot of the legwork is done for you already
hope this helps