Cool I might try it out.
Leverage input does not automatically update your contract cost :/ They should fix this....
Careful if you are in the US. No idea what would happen if you try to use it through API without VPN. Might get your account banned if Bitmex sniffs it out.
Actually, I've heard from more than one trader that Bitmex allows users to log in from the USA as long as they registered from somewhere else. I haven't wanted to risk testing that out for myself though.