The Contract Sizes and Minimum Trade Amounts are listed on the contract's Specification Page (Such as https://www.bitmex.com/app/contract/XBTUSD)
If you prefer to calculate these values manually using the /instrument endpoint, you can follow the guidelines below.
The specific calculation method depends on the payout type, which is outlined in the Perpetual Contracts Guide and Futures Guide. You can also identify the type by checking the isQuanto and isInverse parameters in the /instrument endpoint response.
For Inverse Contracts
Contract Size (value of 1 contract) = Multiplier/underlyingToSettleMultiplier
Minimum Trade Amount= Contract Size * lotSize
For Linear Contracts
Contract Size = 1/underlyingToPositionMultiplier
Minimum Trade Amount = Contract Size * lotSize
For Quanto Contracts
Contract Size = multiplier in settlCurrency
Minimum Trade Amount = lotSize