@anas-laamrani-0Thanks for code:) Also how would I add leverage to this commotion scheme?
PS. I am trying to simulate margin trading on BTC/USD in Phemex.