The Australian sharemarket has posted solid gains as the US presidential race tips in Donald Trump’s favour and investors bet on interest rates staying higher for longer.