Can a landlord charge you market value for a security deposit?

There is no market rate value of a security deposit. The security deposit amount is the landlord's decision, but many states have a law that sets a maximum amount (usually two month's rent).

Check your state's law on the maximum amount a landlord can charge you for a security deposit.