Advertisement
Guest User

Untitled

a guest
Aug 6th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. xyzqq = 0
  2. q =7110.80
  3. while True:
  4.  
  5. print auth_client.sell(price=q,size='0.001',product_id='BTC-USD',type='limit',post_only="true")
  6. time.sleep(5)
  7. auth_client.cancel_all(0,1)
  8. if q >= 10000.20:
  9. q == 7110.20
  10.  
  11.  
  12. else:
  13.  
  14. print auth_client.sell(price=q,size='0.001',product_id='BTC-USD',type='limit',post_only="true")
  15. time.sleep(5)
  16. auth_client.cancel_all(0,1)
  17. xyzqq +=1
  18. q+=1
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. #############Not working, doesn't increment stays on the same number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement