# Asset price simulation under Monte Carlo for option pricing using market data

I am trying to use Monte Carlo to price some exotic options. I have in mind to simulate asset prices under GBM (say S&P prices) using Monte Carlo and price the option accordingly from the payoffs of the paths.

However, I am slightly confused on how to obtain the parameters of the GBM equation from market data to ensure that I can correctly price the options under the risk neutral framework? Is it simply finding the dividend yields and subtracting from a risk free rate for risk neutral drift? Is it simply computing variance of the time series data to obtain the volatility?

Hoping for someone to enlighten me. Many thanks in advance.