Add some useful functions

Providing some functions to make this more useful for trading