Uh oh!
There was an error while loading. Please reload this page.
Add the option to display the Account Estimated Earnings on BTC or in USD - #112
Conversation
Add the option to display the Account Estimated Earnings on BTC or in USD
Add the option to display the Account Estimated Earnings on BTC or in USD
Add the option to display the Account Estimated Earnings on BTC or in USD
Changed to IP of the WebServer back to 127.0.0.1
Change the decimal places of the USD to 8 again and add the @ at the USD price.
Evanito
left a comment
There was a problem hiding this comment.
[Did not test, only reviewed] Overall, good feature that I would like to see implemented. I just need one thing or two to be addressed before I can approve.
| #Check if we need a config file at all (If all settings are passed by args, we won't) | ||
| if args.apikey and args.apisecret and args.sleeptimeactive and args.sleeptimeinactive and args.mindailyrate and args.maxdailyrate and args.spreadlend and args.gapbottom and args.gaptop and args.sixtydaythreshold: | ||
| if args.apikey and args.apisecret and args.sleeptimeactive and args.sleeptimeinactive and args.mindailyrate and args.maxdailyrate and args.spreadlend and args.gapbottom and args.gaptop and args.sixtydaythreshold and args.nobtc: |
There was a problem hiding this comment.
Don't "require" an arg that has toggleable functionality.
| log.log("Error canceling loan offer: " + str(e)) | ||
| #msg = bot.cancelLoanOffer(cur,offer['id']) | ||
| #log.cancelOrders(cur, msg) |
There was a problem hiding this comment.
Does this need to be changed?
Have you experienced errors with this code? It seems bundled in with the USD feature.
Don't "require" an arg that has toggleable functionality.
Remove the cancelLoanOffer test.
rnevet
commented
Sep 30, 2016
I would like to have a more generic approach, where we can offer to switch the currency in the html. Someone might be more interested in ETH or EUR (if available). |
rnevet
commented
Sep 30, 2016
And I wouldn't name USDT -> USD, not exactly the same and no reason to. |
That is a very good idea, you can change the config option to Doing any other currencies that don't have a direct Poloniex market (Such as EUR) will require more overhead and we would need to agree on a source api, I recommend Preev. |
rnevet
commented
Sep 30, 2016
Lets stick to Polo markets then. |
prfiredragon
commented
Sep 30, 2016
Ok. Good idea, I am going began to test with BTC, USDT, ETH, XMR and DOGE. |
rnevet
commented
Sep 30, 2016
Cool! |
…resent the earnings summary in.
prfiredragon
commented
Oct 1, 2016
That was interesting. Done. The options are BTC, USDT and all in the BTC market. |
Evanito
commented
Oct 1, 2016
I have reviewed the code and everything seems to be in order. Though with these kinds of changes I will want some user testing before merge. I will do it tomorrow if Raanan doesn't beat me to it. |
prfiredragon
commented
Oct 1, 2016
Thank You. You are welcome. |
I add the option to display the Account Estimated Earnings on BTC or in USD. The default is BTC.