q is a very wordy language that sits on top of K4. Some open source examples of libraries used in finance:
https://github.com/finos/kdb/tree/main/q