The conflict in the Middle East has rattled financial markets and global energy prices have soared.