Setting WooCommerce currency programmatically

Upon inspecting of the source code of the plugin we’re using (WooCommerce Multicurrency) I found this solution:

WOOMULTI_CURRENCY_Data::get_ins()->set_current_currency($_POST['wmc-currency']);

However, I would love if there was a more straightforward native way using woocommerce.