Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Manual API buy button [automated bot buying function]
  2.  
  3. {manually set masterBTC (the amount of btc to use in each transaction)}
  4.  
  5. [Receive ping]
  6.  
  7. [Record marketName]
  8.  
  9. [Record expectedPrice]
  10.  
  11. getorderbook marketName sell
  12.  
  13. if first result Rate (marketAsk) is < expectedPrice->abort (bad momentum)
  14.  
  15. if marketAsk is > expectedPrice * 1.1->abort (late to the pump)
  16.  
  17. if sum of Quantity*Rate of first ten results > 4.0->abort (sell wall present)
  18.  
  19. /*manual needs a confirmation dialog for marketName*/
  20.  
  21. buylimit marketName, (masterBTC/marketAsk), marketAsk
  22.  
  23. record uuid
  24.  
  25. getorder uuid, record IsOpen
  26. if false, continue
  27. if true, repeat for 10s, display buy pending
  28. if true after 10s->cancel uuid->abort
  29.  
  30. display buy confirmation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement