Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Manual API buy button [automated bot buying function]
- {manually set masterBTC (the amount of btc to use in each transaction)}
- [Receive ping]
- [Record marketName]
- [Record expectedPrice]
- getorderbook marketName sell
- if first result Rate (marketAsk) is < expectedPrice->abort (bad momentum)
- if marketAsk is > expectedPrice * 1.1->abort (late to the pump)
- if sum of Quantity*Rate of first ten results > 4.0->abort (sell wall present)
- /*manual needs a confirmation dialog for marketName*/
- buylimit marketName, (masterBTC/marketAsk), marketAsk
- record uuid
- getorder uuid, record IsOpen
- if false, continue
- if true, repeat for 10s, display buy pending
- if true after 10s->cancel uuid->abort
- display buy confirmation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement