How would I add this code to a single WordPress page?

function bettingModuleFunction(){
    // your content
};
add_shortcode( 'print_betting_module', 'bettingModuleFunction' );

Put this in your functions.php and you can call the content using [print_betting_module] shortcode.

If you need to call this shortcode inside a file use:

echo do_shortcode('[print_betting_module]');

If you need to use your shortcode inside widgets put this in functions.php

add_filter( 'widget_text', 'do_shortcode' );