How is the forex rate and fee determined?

For transfer out of India to the brokerage account, the forex rate and fee are determined by the bank that you use to transfer the money. You can check the associated fees with your bank.