prof7bit / goxtool

display Mt.Gox live market data (in the console) and experiment with trading bots
185 stars 53 forks source link

Would prefer buy/sell interface similiar to Mt.Gox #9

Open segordon opened 11 years ago

segordon commented 11 years ago

Would prefer to have an interface that 'solves for x' , similar to the Mt.Gox webui.

Example.

Mt.Gox : (AMT of BTC to buy) x (AMT to pay per BTC) = (AMT native currency PAID)

As long as you fill out two fields, the webui fills out the third field. I would like similiar functionality available in goxtool.

"I would like to buy 15 dollars worth of BTC at so and so a price."

arichiardi commented 11 years ago

I was about to open a request on this. Related to this is also my next question: Do you store the balance in the Gox class by any chance? That would be handy for accessing from the strategy.py if you want to implement the same feature in the strategy instead of the main UI. Thanks!

prof7bit commented 11 years ago

this is a good idea, actually I would have needed this myself too already.

@balance: it is stored in gox.wallet. I haven't tried creating modal curses dialogs from within the strategy.py, it would be an ugly hack but it would probably be possible. I should rather implement this in the official buy and sell dialogs.