Bitcoin Forum
May 02, 2024, 08:08:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 »  All
  Print  
Author Topic: [ANN] CryptoSwitcher - Automatically mine the best coin.  (Read 95302 times)
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
May 12, 2013, 04:53:02 PM
 #61

I pulled the latest master.zip from https://github.com/area/CryptoSwitcher and it is the same cryptoSwitcher.py file I'm currently using.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714680485
Hero Member
*
Offline Offline

Posts: 1714680485

View Profile Personal Message (Offline)

Ignore
1714680485
Reply with quote  #2

1714680485
Report to moderator
1714680485
Hero Member
*
Offline Offline

Posts: 1714680485

View Profile Personal Message (Offline)

Ignore
1714680485
Reply with quote  #2

1714680485
Report to moderator
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 12, 2013, 04:54:03 PM
 #62

I pulled the latest master.zip from https://github.com/area/CryptoSwitcher and it is the same cryptoSwitcher.py file I'm currently using.

The name of the variable in the config file has changed from 'mmNMC' to 'minenmc' to bring it in line with the other coins, regardless of their merged mining status.
MrWizard
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
May 12, 2013, 04:55:10 PM
 #63

I pulled the latest master.zip from https://github.com/area/CryptoSwitcher and it is the same cryptoSwitcher.py file I'm currently using.
The .config file has changed as well to fix this bug. As area alludes to.

"I walked into the room dripping in Bitcoins.  Yea dripping in Bitcoins."
(BTC) 168DCCeGmDy3xTWRimLVhvKtK3yEWbpsSg     (LTC) LbYS8VFqFSU7B9bfaHD11seQMtrtYEKpLe
(BBQ) bNVZErvwLzpEG7H3kt1fycWspzRQB1MJzL
scotjam
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile
May 12, 2013, 07:27:54 PM
 #64

Replace the '100' in your key file with '101'. Basically, you've already used the '100' nonce, which has to be a continually increasing number. If you use it twice, then you get this error.

Many thanks area - sorry for being so clueless on this!

All more or less running well now. I did run into another problem (detailed below) but suspect it's just a server issue. Would be great if it could fail gracefully (i.e. retry) rather than quitting, but it's not a huge issue.

Cheers

scotjam

Latest issue:
###############################################################################
#           LTC      FTC      BTC                                             #
# Median:     0 |      0 |    101                                             #
# Time:    0:00 |   0:00 |  19:15                                             #
# Total Median:  101                                                          #
# Total Time:  19:15                                                          #
###############################################################################

Going to sleep...
Seconds remaining: 1


<<< Round 232 >>>
time: 2013-05-12 16:55:54
getting data... done
decoding data... done
comparing profitabilty...
------------------------------------
   Litecoin:  98  (fee:  4, src: cc)
FeatherCoin:  46  (fee:  4, src: cc)
    Bitcoin: 100  (fee: -1, src: cc)
------------------------------------
=> Best: 101, mining Bitcoin
Error while attempting to parse JSON response: No JSON object could be decoded
Response: '<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gatewa
y</h1></center>\r\n<hr><center>cloudflare-nginx</center>\r\n</body>\r\n</html>\r\n'
Traceback (most recent call last):
  File "cryptoSwitcher.py", line 324, in <module>
    sellCoinBTCE(abbreviation, authedAPI)
  File "cryptoSwitcher.py", line 118, in sellCoinBTCE
    r = tradeapi.getInfo()
  File "./btce-api/btceapi\trade.py", line 145, in getInfo
    return TradeAccountInfo(self._post(params))
  File "./btce-api/btceapi\trade.py", line 128, in _post
    result = common.makeJSONRequest("/tapi", headers, encoded_params)
  File "./btce-api/btceapi\common.py", line 57, in makeJSONRequest
    raise e
ValueError: No JSON object could be decoded
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
May 16, 2013, 03:51:44 PM
 #65

These sites that you are using for tracking the numbers, work great for everything but TerraCoin. Could you make the TRC check in the script, instead of using the sites data on TRC?

I'm not a Python coder, but here is what I'm using the check it in my scripts:

   $TRC_Block_Reward = 20
   $TRC_Diff = Number(BinaryToString(InetRead('http://cryptocoinexplorer.com:3750/chain/Terracoin/q/getdifficulty')))
   $BTC_Block_Reward = 25
   $BTC_Diff = Number(BinaryToString(InetRead('http://blockexplorer.com/q/getdifficulty')))
   $BTC_TRC = Number(_Get_Last_Sell_BTCe('https://btc-e.com/api/2/trc_btc/ticker'))
   $a = $TRC_Block_Reward / $TRC_Diff
   $b = $BTC_Block_Reward / $BTC_Diff
   $TRC_Profit = int(($a / $b * $BTC_TRC) * 100)
   Return $TRC_Profit

Praxis
Legendary
*
Offline Offline

Activity: 1118
Merit: 1004



View Profile
May 16, 2013, 03:57:45 PM
 #66

Since most pools are PPLNS I don't see this as profitable... maybe if you switch between PPS?
I just mine ONE coin, a coin I believe in, long term. It's a much better idea than changing upon every fluctuation and losing shares.
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
May 16, 2013, 04:08:24 PM
 #67

Since most pools are PPLNS I don't see this as profitable... maybe if you switch between PPS?
I just mine ONE coin, a coin I believe in, long term. It's a much better idea than changing upon every fluctuation and losing shares.
Most pools I'm a part of finish multiple rounds before I end up switching to a mine a different coin. The whole point of this great app is the ability to check and see which coins will bring you the most $$$ for your effort.

You are free to mine with your hardware however you want, and I'll do the same.

But as far as not being as profitable as picking one coin and only one coin, I think we will just have to disagree.
juhakall
Sr. Member
****
Offline Offline

Activity: 657
Merit: 250


View Profile WWW
May 16, 2013, 04:33:07 PM
 #68

Since most pools are PPLNS I don't see this as profitable... maybe if you switch between PPS?
I just mine ONE coin, a coin I believe in, long term. It's a much better idea than changing upon every fluctuation and losing shares.

Looks like you have misunderstood PPLNS (in a very common way), if you indeed believe that randomly hopping on/off a PPLNS pool would decrease your expected payout per share there.

I'm currently developing an experimental social AI platform
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 17, 2013, 08:30:57 AM
 #69

These sites that you are using for tracking the numbers, work great for everything but TerraCoin. Could you make the TRC check in the script, instead of using the sites data on TRC?

I'd very much prefer not treating any coins as special cases. My understanding is that TRC changes every block, and so sites like Coinchoose do a moving average of the difficulty so that you're not jumping on and off repeatedly. I understand why this might not be desirable. I'll think about it, but I think it is unlikely that it will be implemented.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 20, 2013, 01:22:41 PM
 #70

Worldcoin added.
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
May 25, 2013, 02:17:44 PM
 #71

Area, thank you very much for Cryptoswitcher.   If you are open to suggestions, I believe Cryptoswitcher could use some default error handling.   Sometimes I get errors and the program crashes - and some of the errors should not be fatal.

I suggest adding functionality to append to a log file.   

Cryptoculture Mining Pools - http://cryptoculture.net      Follow us on Twitter - https://twitter.com/cryptoculture
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
May 25, 2013, 02:22:06 PM
 #72

Area, thank you very much for Cryptoswitcher.   If you are open to suggestions, I believe Cryptoswitcher could use some default error handling.   Sometimes I get errors and the program crashes - and some of the errors should not be fatal.

I suggest adding functionality to append to a log file.   

By the way, I would like to help you maintain the code in the future... just need to get my git authentication set up properly so I could push changes into your master branch.  I tried the other day and got an error.

I'm new to using Git, I used to use Subversion.

Cryptoculture Mining Pools - http://cryptoculture.net      Follow us on Twitter - https://twitter.com/cryptoculture
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 25, 2013, 02:25:31 PM
 #73

Area, thank you very much for Cryptoswitcher.   If you are open to suggestions, I believe Cryptoswitcher could use some default error handling.   Sometimes I get errors and the program crashes - and some of the errors should not be fatal.

I suggest adding functionality to append to a log file.    

By the way, I would like to help you maintain the code in the future... just need to get my git authentication set up properly so I could push changes into your master branch.  I tried the other day and got an error.

I'm new to using Git, I used to use Subversion.

Fork it on GitHub, push to your personal repository, and start submitting pull requests. If I like what I see, it's very likely I'll give you rights on the main repository (I have already given one other person rights).

What errors are you getting? There's error handling when sites are down, and everything else should work :/ A log file is a fine idea though.
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
May 25, 2013, 02:39:33 PM
 #74

The error I'm getting is

Exception: getInfo call failed with error: invalid nonce parameter.


I have Cryptoswitcher loaded on a config server and a couple mining rigs pointing to the config server.   Maybe it is a problem with multiple instances of Cryptoswitcher trying to access the key file at the same time.  It happens when the btce-api is called (line 121 in cryptoswitcher.py)

However, that log file functionality would prevent Cryptoswitcher from crashing if the error occurs.

Cryptoculture Mining Pools - http://cryptoculture.net      Follow us on Twitter - https://twitter.com/cryptoculture
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 25, 2013, 04:13:49 PM
 #75

The error I'm getting is

Exception: getInfo call failed with error: invalid nonce parameter.


I have Cryptoswitcher loaded on a config server and a couple mining rigs pointing to the config server.   Maybe it is a problem with multiple instances of Cryptoswitcher trying to access the key file at the same time.  It happens when the btce-api is called (line 121 in cryptoswitcher.py)

However, that log file functionality would prevent Cryptoswitcher from crashing if the error occurs.

Yep, using two instances of Cryptoswitcher using the same key file is going to run you into difficulty. As a short-term fix, you can create a new API key on BTCE for each instance of Cryptoswitcher, and then make multiple copies of Cryptoswitcher.py. In each copy of Cryptoswither.py, change the keyfile used on line 149 to a separate instance of the key file.
spoid
Hero Member
*****
Offline Offline

Activity: 532
Merit: 500


bearded, drunk, fat, naked


View Profile
May 31, 2013, 11:12:18 PM
 #76



but if we all go for the blonde...

with great beard comes great liver. Reputation Thread: https://bitcointalk.org/index.php?topic=195803.0
BTCsckr
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
June 01, 2013, 11:41:37 PM
 #77

Wow bter has autotrade API now  Cheesy
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 02, 2013, 07:12:04 PM
 #78

Wow bter has autotrade API now  Cheesy

It somewhat frustrating to use, because ltc_btc is a currency pair, but btc_ltc isn't. It needs a wrapper built around it like the btce-api python wrapper which takes that sort of thing into account.
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 03, 2013, 12:49:39 AM
 #79

Did anyone have an issue activating the Vircurex API for their account?  My settings never save when I try.

Cryptoculture Mining Pools - http://cryptoculture.net      Follow us on Twitter - https://twitter.com/cryptoculture
peonminer
Hero Member
*****
Offline Offline

Activity: 798
Merit: 531


Crypto is King.


View Profile
June 03, 2013, 04:18:48 PM
 #80

sub'd
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!