check in code to perform margin calls