Bitcoin Forum
April 19, 2024, 11:54:46 AM *
News: Latest Bitcoin Core release: 26.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 95298 times)
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 10, 2013, 07:00:30 AM
Last edit: May 06, 2013, 08:34:05 AM by area
 #1

What is CryptoSwitcher?
You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.

How can I used it?
The source is available at https://github.com/area/CryptoSwitcher. Clone it, and then edit the cryptoswitcher.config.sample file as it instructs in the comments. If you wish to use BTC-E, you will need to edit the 'key.sample' file to contain your API key, and move it to 'key'. The README included should be a bit more comprehensive than the instructions here. If you already have scripts to start and stop mining, then setup should be easy for you.

How does it work?
The actual maths is done by the websites:

http://dustcoin.com/mining
http://coinchoose.com
http://fizzisist.com (Vanity address mining only - down at the moment?)

This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.

Isn't this a terrible idea?
Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:
  • This would tie the value of all alt-coins to BTC.
  • It would cause massive difficulty spikes as retargets happen, causing mining an alt-coin to become less profitable and hoppers to mine elsewhere. The dedicated miners on that coin are then left with a much higher difficulty than they should have, and struggle to find blocks. We have seen this happen already with TRC, which is still struggling to deal with the aftermath

The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.

I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.

Features
  • Support for both Dustcoin and Coinchoose, and all the coins they list (though only one site may be used at a time)
  • Takes merged mining into account if you say its available
  • Will automatically sell coins for BTC on BTC-E and/or Vircurex if you choose.

Todo
  • Vircurex support
  • Use both Dustcoin and Coinchoose at the same time?
  • Use the CGMiner API to switch between coins with the same hashing algorithm in one CGminer instance. If a user were to allow remote API access, then this could in theory be provided as a service, without the user having to run the script themselves.
  • Monitor miners for dead pools.
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713527686
Hero Member
*
Offline Offline

Posts: 1713527686

View Profile Personal Message (Offline)

Ignore
1713527686
Reply with quote  #2

1713527686
Report to moderator
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 10, 2013, 11:58:16 AM
 #2

Very good work.  I am about to test this out!
Simran
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500



View Profile WWW
April 10, 2013, 12:21:26 PM
 #3

What is CryptoSwitcher?
You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.

How can I used it?
The source is available at https://github.com/area/CryptoSwitcher. Clone it, and then edit the cryptoswitcher.config.sample file as it instructs in the comments. If you wish to use BTC-E, you will need to edit the 'key.sample' file to contain your API key, and move it to 'key'. The README included should be a bit more comprehensive than the instructions here. If you already have scripts to start and stop mining, then setup should be easy for you.

How does it work?
The actual maths is done by the websites:

Dustcoin
Coinchoose
Fizzisist (Vanity address mining only - down at the moment?)

This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.

Isn't this a terrible idea?
Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:
  • This would tie the value of all alt-coins to BTC.
  • It would cause massive difficulty spikes as retargets happen, causing mining an alt-coin to become less profitable and hoppers to mine elsewhere. The dedicated miners on that coin are then left with a much higher difficulty than they should have, and struggle to find blocks. We have seen this happen already with TRC, which is still struggling to deal with the aftermath

The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.

I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.

Features
  • Support for both Dustcoin and Coinchoose, and all the coins they list (though only one site may be used at a time)
  • Takes merged mining into account if you say its available
  • Will automatically sell coins for BTC on BTC-E if you choose

Todo
  • Vircurex support
  • Use both Dustcoin and Coinchoose at the same time?
  • Use the CGMiner API to switch between coins with the same hashing algorithm in one CGminer instance. If a user were to allow remote API access, then this could in theory be provided as a service, without the user having to run the script themselves.


If this uses Scrypt and SHA-256, how do you switch between them in the miner files?

*Image Removed*
Donate LTC: LRgbgTa3XNQSEUhnwC6Ye2vjiCV2CNRpib
Donate BTC: 1AGP6xPTRvsAVhsRsBX13NUH6p6LJjyeiA
Ilocans
Member
**
Offline Offline

Activity: 77
Merit: 10


View Profile
April 10, 2013, 01:03:10 PM
 #4

Hi,
Good idea Smiley
However, Error 404 for https://github.com/area/CryptoSwitcher
The 3 links to Dustoin, Coinchoose and Fizzsist does not work

Let's color the MOON: YCu1UpCKcZuu9162NeDCtDFU2Vdiz3t23i

Donation Addresses:
Feathercoin: 6jyEsQGrVSySeNV1brb9JH1b1vPmeMYatF
LiteCoin: LgcJgVeFLiiuuhsC5rUw1cUwg15Nutds5X
Bitcoin:14sZqEb5Tu3w9qVUCDHJ38CzJ2CQS9EV7M
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 10, 2013, 01:08:37 PM
 #5

If this uses Scrypt and SHA-256, how do you switch between them in the miner files?

The sample scripts I've included are for Bitcoin and Litecoin, and show how this is done. In short, if we are mining BTC and the script decides to switch to LTC, litecoin.sh is run. The first thing that litecoin.sh does is close all instances of CGMiner using the CGMiner API. It then sets the clocks correctly for LTC mining, and only then does it spool up a new instance of CGminer, mining the desired coin, making sure that API access is enabled for future switching. Each script you write and use (i.e. beyond the litecoin.sh and bitcoin.sh files included) should do roughly the same thing.
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 10, 2013, 01:14:38 PM
 #6

Hi,
Good idea Smiley
However, Error 404 for https://github.com/area/CryptoSwitcher
The 3 links to Dustoin, Coinchoose and Fizzsist does not work

Comes up here - all of them.  Is your internet okay?
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 10, 2013, 01:17:55 PM
 #7

Hi,
Good idea Smiley
However, Error 404 for https://github.com/area/CryptoSwitcher
The 3 links to Dustoin, Coinchoose and Fizzsist does not work

Comes up here - all of them.  Is your internet okay?

The first post had errors in the URLs for those three (I'm too used to BBCode), which I have now corrected.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 11, 2013, 06:11:28 AM
 #8

Fizzisist seems to be back up, but is now returning 'null' for profitability, which I had never seen before. I have pushed an update that handles this gracefully.
bajanboost
Newbie
*
Offline Offline

Activity: 53
Merit: 0



View Profile
April 11, 2013, 08:24:10 AM
 #9

It would be nice if you included a pool failover for each coin.

For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 11, 2013, 08:28:35 AM
 #10

It would be nice if you included a pool failover for each coin.

For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.

Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.
skeeterskeeter
Full Member
***
Offline Offline

Activity: 160
Merit: 100


View Profile
April 12, 2013, 01:22:36 AM
 #11

I would love to try this, but I barely can get these old ass 5830's working on windows, linux I couldn't get a good OpenCL.

Would love to see if it ever gets thrown into a good 'ol exe
celkaris
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
April 12, 2013, 01:28:06 AM
 #12

you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?

you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)

Smiley
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 12, 2013, 01:41:54 AM
 #13

you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?



And then the difficulty will go back down Smiley
fcmatt
Legendary
*
Offline Offline

Activity: 2072
Merit: 1001


View Profile
April 12, 2013, 01:42:03 AM
 #14

you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?

you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)

Smiley


More likely they will hop around and gets less due to pool design now days which reward steady miners.
Or profitability will even out for all of them making it pointless.
celkaris
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
April 12, 2013, 02:02:36 AM
 #15

you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?



And then the difficulty will go back down Smiley

if nobody mines it (10 miners with 500Mh/s each means nobody once diff is really high) there's no chance diff goes down any time soon Smiley
bajanboost
Newbie
*
Offline Offline

Activity: 53
Merit: 0



View Profile
April 12, 2013, 04:23:33 AM
 #16

It would be nice if you included a pool failover for each coin.

For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.

Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.

It can be done. I have seen pool switching scripts - Allow your users to update a single config file:

Litecoin Pools:
pool1 - notroll.in -u -p
pool2 - etc etc

Bitcoin Pools:

etc etc...

Following simple logic, allow a user to update his config with all pools he wants - then set triggers

example:

failconnect () //if failure to connect after 60 seconds, switch pool
highstale () //if high stale rate then drop pool

Thoughts?
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 12, 2013, 07:37:56 AM
 #17

It would be nice if you included a pool failover for each coin.

For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.

Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.

It can be done. I have seen pool switching scripts - Allow your users to update a single config file:

Litecoin Pools:
pool1 - notroll.in -u -p
pool2 - etc etc

Bitcoin Pools:

etc etc...

Following simple logic, allow a user to update his config with all pools he wants - then set triggers

example:

failconnect () //if failure to connect after 60 seconds, switch pool
highstale () //if high stale rate then drop pool

Thoughts?

I would prefer to keep that sort of configuration in the CGminer config files that people probably already have. In addition, you have to restart CGminer to switch from an Scrypt coin to a SHA256 coin, unless I'm missing something drastic in the API, so this is unable to be done purely with a single CGminer instance and the API. I think I know how I want to approach this.
bajanboost
Newbie
*
Offline Offline

Activity: 53
Merit: 0



View Profile
April 15, 2013, 08:46:53 AM
 #18

How will this work with something like BAMT? https://bitcointalk.org/index.php?topic=65915.0
Oknocaps
Newbie
*
Offline Offline

Activity: 23
Merit: 0



View Profile
April 15, 2013, 12:09:47 PM
 #19

Looks neat, will try whenever I get home.
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 15, 2013, 01:36:55 PM
 #20

How will this work with something like BAMT? https://bitcointalk.org/index.php?topic=65915.0

I'd think so, as long as you install python (which might already be installed in BAMT).
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 17, 2013, 01:36:18 AM
 #21

Bounty for anyone that gets this to work with Vircurex to automatically convert back to BTC...
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 17, 2013, 10:18:52 AM
 #22

Bounty for anyone that gets this to work with Vircurex to automatically convert back to BTC...

A blind bounty, you say. Well, whatever you think the changes I've just pushed are worth... Smiley
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 18, 2013, 03:10:06 PM
 #23

Nice!
glendall
Legendary
*
Offline Offline

Activity: 2100
Merit: 1018


Sugars.zone | DatingFi - Earn for Posting


View Profile
April 18, 2013, 03:31:13 PM
 #24

Sweet app, nice work... !

Btw, are there any Freicoin exchanges though? I haven't come across this coin much. .. 

.SUGAR.
██   ██

██   ██

██   ██

██   ██

██   ██

██   ██
▄▄████████████████████▄▄
▄████████████████████████▄
███████▀▀▀██████▀▀▀███████
█████▀██████▀▀██████▀█████
██████████████████████████
██████████████████████████
█████████████████████▄████
██████████████████████████
████████▄████████▄████████
██████████████████████████
▀████████████████████████▀
▀▀████████████████████▀▀

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██
███████████████████████████
███████████████████████████
██████               ██████
██████   ▄████▀      ██████
██████▄▄▄███▀   ▄█   ██████
██████████▀   ▄███   ██████
████████▀   ▄█████▄▄▄██████
██████▀   ▄███████▀▀▀██████
██████   ▀▀▀▀▀▀▀▀▀   ██████
██████               ██████
███████████████████████████
███████████████████████████
.
Backed By
ZetaChain

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██

██   ██
▄▄████████████████████▄▄
██████████████████████████
████████████████████████████
█████████████████▀▀  ███████
█████████████▀▀      ███████
█████████▀▀   ▄▄     ███████
█████▀▀    ▄█▀▀     ████████
█████████ █▀        ████████
█████████ █ ▄███▄   ████████
██████████████████▄▄████████
██████████████████████████
▀▀████████████████████▀▀
▄▄████████████████████▄▄
██████████████████████████
██████ ▄▀██████████  ███████
███████▄▀▄▀██████  █████████
█████████▄▀▄▀██  ███████████
███████████▄▀▄ █████████████
███████████  ▄▀▄▀███████████
█████████  ████▄▀▄▀█████████
███████  ████████▄▀ ████████
████████████████████████████
██████████████████████████
▀▀████████████████████▀▀
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
April 18, 2013, 03:45:28 PM
 #25

Yes - there is one at cryponit.  See my site (in my signature).
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 20, 2013, 07:33:29 AM
 #26

Anyone interested in making a Cryptonit API wrapper for Python? Smiley
Dali99
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
April 20, 2013, 06:26:38 PM
 #27

Could anyone help me with setting it up?
I can't find the dependencies and where to put them
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 20, 2013, 07:17:53 PM
 #28

Could anyone help me with setting it up?
I can't find the dependencies and where to put them

Which OS, and what have you tried so far? What errors do you get?
Dali99
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
April 20, 2013, 09:18:30 PM
 #29

Could anyone help me with setting it up?
I can't find the dependencies and where to put them

Which OS, and what have you tried so far? What errors do you get?
Windows 7 home Premium
C:\Users\Daniel\Documents\GitHub\CryptoSwitcher>cryptoSwitcher.py
Traceback (most recent call last):
  File "C:\Users\Daniel\Documents\GitHub\CryptoSwitcher\cryptoSwitcher.py", line
 5, in <module>
    import numpy as np
  File "C:\Users\Daniel\Documents\GitHub\CryptoSwitcher\numpy\__init__.py", line
 127, in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.


thanks!
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 21, 2013, 12:03:12 AM
 #30

Could anyone help me with setting it up?
I can't find the dependencies and where to put them

Which OS, and what have you tried so far? What errors do you get?
Windows 7 home Premium
C:\Users\Daniel\Documents\GitHub\CryptoSwitcher>cryptoSwitcher.py
Traceback (most recent call last):
  File "C:\Users\Daniel\Documents\GitHub\CryptoSwitcher\cryptoSwitcher.py", line
 5, in <module>
    import numpy as np
  File "C:\Users\Daniel\Documents\GitHub\CryptoSwitcher\numpy\__init__.py", line
 127, in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.


thanks!

I'm afraid I'm not a Windows person (for mining, anyway). Is there an equivalent of pip for Windows, does someone else know?
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
April 28, 2013, 05:38:05 PM
 #31

Feathercoin now supported for those using CoinChoose.
davidkassa
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
April 30, 2013, 04:49:19 PM
 #32

This is pretty cool. I was just thinking of doing the exact same thing. I'll have to dig in (and possibly contribute) once I get time.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 02, 2013, 07:31:30 AM
 #33

Again, thanks to a CoinChoose update, MinCoin has now joined the party.
juhakall
Sr. Member
****
Offline Offline

Activity: 657
Merit: 250


View Profile WWW
May 04, 2013, 02:12:36 AM
Last edit: May 04, 2013, 02:28:15 AM by juhakall
 #34

This might be really useful, I'm tired of checking the charts every day to decide myself. I already have my own scripts to switch configs and restart all rigs, so it sounds like a simple plug-n-play job! That auto-selling feature sounds especially interesting. I guess auto-withdrawal is not supported yet? Grin

EDIT: There are config options gkeypersec for vanity mining speed and ghashpersec for BTC mining speed, but no option for LTC mining speed. Is the default 1MH/s -> 1kH/s ratio assumed?

I'm currently developing an experimental social AI platform
Caesar V
Sr. Member
****
Offline Offline

Activity: 369
Merit: 250



View Profile
May 04, 2013, 02:29:39 AM
 #35

This is so awesome!!  Grin

Really can't wait for my rig to arrive now.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 04, 2013, 05:08:04 AM
 #36

This might be really useful, I'm tired of checking the charts every day to decide myself. I already have my own scripts to switch configs and restart all rigs, so it sounds like a simple plug-n-play job! That auto-selling feature sounds especially interesting. I guess auto-withdrawal is not supported yet? Grin

EDIT: There are config options gkeypersec for vanity mining speed and ghashpersec for BTC mining speed, but no option for LTC mining speed. Is the default 1MH/s -> 1kH/s ratio assumed?

Neither exchange supports auto-withdrawal via the API, so I don't see that feature being implemented soon, I'm afraid.

The default 1MH/s -> 1kH/s ratio is assumed (by virtue of this assumption being made by dustcoin and CoinChoose), but if that is drastically wrong for you, you can include additional fees to penalise Scrypt coins the appropriate amount. So if you get 700MH/s with SHA256, but only 600MH/s with Scrypt coins, you would include an additional fee of 1-(600/700) = 0.14 on Scrypt coins.

area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 06, 2013, 08:34:46 AM
 #37

With thanks to open5443 on GitHub, the latest round of updates supports using Dustcoin and Coinchoose at the same time, and CHNCoin has also joined the party.
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
May 08, 2013, 12:25:12 AM
 #38

Anyone got this working on Win7 yet?
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 08, 2013, 07:55:13 AM
 #39

Anyone got this working on Win7 yet?

I would like to know this too, and if there is anything that could be done to make it easier to run on Windows, I'd look into it.
LittleDigger
Sr. Member
****
Offline Offline

Activity: 462
Merit: 251


View Profile
May 08, 2013, 08:20:40 AM
Last edit: May 08, 2013, 08:34:55 AM by LittleDigger
 #40

Anyone got this working on Win7 yet?

I would like to know this too, and if there is anything that could be done to make it easier to run on Windows, I'd look into it.

Yes It's working on my Win 7 64 setup.. Grin Heres all the hassles I had.. Roll Eyes

1 You can't use python 3.3.. Use Python 2.7.4 (has urllib 2 ) http://www.python.org/download/releases/2.7.4/

2 Remember to set your path to python 27 (Instructions : http://www.youtube.com/watch?v=ddpYVA-7wq4 )

3 You need to install beautifulsoup4-4.0.0b10 (later version didn't work)
http://www.crummy.com/software/BeautifulSoup/bs4/download/4.0/

4 You need to install simplejson https://github.com/simplejson/simplejson

5 You need to install Numpy from the appropiate executable found only here : http://www.lfd.uci.edu/~gohlke/pythonlibs/

6 You need to download pyvircurex-master.zip and btce-api-master.zip and drop their files into the appropiate folders in the cryptoswitcher directory.

Then, if you have changed the cryptoswitcher.config to read batchfiles like the supplied bitcoin.bat, it works like a dream.

Happy geeking  Wink

LittleDigger
Sr. Member
****
Offline Offline

Activity: 462
Merit: 251


View Profile
May 08, 2013, 08:48:15 AM
 #41

Could anyone help me with setting it up?
I can't find the dependencies and where to put them

If you do the first two steps (install python 2.7.4 and set the path), then, to install a module, you open up the command line, change to the modules directory ( the directory with the file setup.py in it), and type "python setup.py install"

Note in my last post I gave links to the modules that worked for me. The Numpy modules are executables.. you just run them. They are for Intel and Amd chips and 32 and 64 bit windows, so be sure to get the right one

area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 09, 2013, 07:43:44 AM
 #42

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.
Taxidermista
Legendary
*
Offline Offline

Activity: 1147
Merit: 1001



View Profile
May 09, 2013, 08:41:31 AM
 #43

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Maybe you'd be interested in supporting this site: http://www.coinwarz.com/cryptocurrency

area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 09, 2013, 08:44:13 AM
 #44

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Maybe you'd be interested in supporting this site: http://www.coinwarz.com/cryptocurrency

Why would this be of interest to you? It has fewer coins than dustcoin or Coinchoose, no API and no additional information. Unless you think that both dustcoin and Coinchoose are calculating things incorrectly, I can't see a reason.
Taxidermista
Legendary
*
Offline Offline

Activity: 1147
Merit: 1001



View Profile
May 09, 2013, 08:51:59 AM
 #45

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Maybe you'd be interested in supporting this site: http://www.coinwarz.com/cryptocurrency

Why would this be of interest to you? It has fewer coins than dustcoin or Coinchoose, no API and no additional information. Unless you think that both dustcoin and Coinchoose are calculating things incorrectly, I can't see a reason.

As a backup or to check proper values. Sometimes the diff values at these sites are lagging (minutes or even hours).

sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
May 09, 2013, 12:01:21 PM
 #46

It is good as backup, but i noticed the pricing / difficulty lags in general on this new site.  It does look like the difficulty issue you reported on mine was fixed (and was based on a temporary outage of the blockexplorer).  I am added in a few additional redundacies to account for blockexplorer outages so I don't expect my stats to lag more than a minute or so.
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
May 09, 2013, 12:02:10 PM
 #47

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Keep up the good work.  All these coins are making me dizzy!
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 09, 2013, 01:42:49 PM
 #48

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Keep up the good work.  All these coins are making me dizzy!

Yeah, same here. I've tweaked how the config file is read now though, which will make it easier for me to add additional coins (thought it was hardly difficult as it was, just tedious. It's much harder for you Tongue
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
May 09, 2013, 01:51:00 PM
 #49

Well - not that hard if I have a blockexplorer, clear understanding on block reward, a pretty icon and an exchange Smiley
krzynek1
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
May 10, 2013, 02:10:24 PM
 #50

I've just starting using cryptoswitcher and I think it's awesome

One problem though, the moment when coinotron website went down, cryptoswitcher can't launch and this error pops up:

https://i.imgur.com/PwVEUyg.png

I see in error message that coinotron is mentioned, so I deleted this site from cryptoSwitcher.config but still same error occurs  Undecided
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 10, 2013, 02:37:16 PM
 #51

I've just starting using cryptoswitcher and I think it's awesome

One problem though, the moment when coinotron website went down, cryptoswitcher can't launch and this error pops up:

I see in error message that coinotron is mentioned, so I deleted this site from cryptoSwitcher.config but still same error occurs  Undecided

A fix for this issue has been pushed by open5443 to the GitHub repository. If you git pull, then you will get the update.
krzynek1
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
May 10, 2013, 05:56:18 PM
Last edit: May 10, 2013, 06:10:01 PM by krzynek1
 #52

thanks, just updated

would you explain to me why you are choose such fees values?

Quote
[Fees]
feebtc = -1
feeltc = 4
feeppc = 7
feenvc = 0
feetrc = 12
feebte = 0
feebqc = 0
feefrc = 0
feeftc = 4
feemnc = 0
feecnc = 0
feebtb = 0
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 10, 2013, 06:21:44 PM
 #53

would you explain to me why you are choose such fees values?

No real reason as far as I'm aware, I'm afraid. You should alter them to appropriate values for you, based on the pools and exchanges you are using, as well as your opinion on different coins (e.g. If you don't trust BTB, give it a large fee).

Vircurex seems to be down, incidentally.
drlukacs
Sr. Member
****
Offline Offline

Activity: 854
Merit: 253


l0tt0.com


View Profile
May 10, 2013, 06:51:53 PM
 #54

Vircurex seems to be down, incidentally.

It has been compromised:

https://bitcointalk.org/index.php?topic=201262.0

|.
WHIRLWIND
|
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
        ▄▄▄██▀▀▀▀▀▄▄         █
     ▄▄██▀▀▄▄▀▀▀▀▀▄▄▄        █A
    ▄██▀▄██▀▄▀▀▀ ▄▄ ▄▄▄▄     █
   ███ ██▀▄▀     ▄▄▀▄▄ ▀█▄   █
  ███ ███ █        ▀▄ █▄ ██  █
  ███ ███ █         █ ██ ██  █
  ███ ███ █        ▄▀ █▀ ██  █
   ███ ██▄▀▄     ▀▀▄▀▀ ▄█▀   █
    ▀██▄▀██▄▀▄▄▄ ▀▀ ▀▀▀▀     █
     ▀▀██▄▄▀▀▄▄▄▄▄▀▀▀        █
        ▀▀▀██▄▄▄▄▄▀▀         █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
|.
  No Fee    Ultimate Privacy  
|.
ANONYMITY
MINING CAMPAIGN
|.
MIX NOW
|
krzynek1
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
May 10, 2013, 07:26:18 PM
 #55

thanks for clarification
scotjam
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile
May 11, 2013, 01:46:36 AM
 #56


5 You need to install Numpy from the appropiate executable found only here : http://www.lfd.uci.edu/~gohlke/pythonlibs/

I was getting the below error when trying to launch, but subsequently realised I had installed the MTL version of Numpy. When I installed the correct version all worked well.

Many thanks for this software - it looks really great (although I'm just starting)

Best

scotjam

Error message:
Traceback (most recent call last):
  File "cryptoSwitcher.py", line 5, in <module>
    import numpy as np
  File "C:\Python27\lib\site-packages\numpy\__init__.py", line 171, in <module>
    import random
  File "C:\Python27\lib\site-packages\numpy\random\__init__.py", line 99, in <module>
    from mtrand import *
ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
scotjam
Sr. Member
****
Offline Offline

Activity: 269
Merit: 250


View Profile
May 11, 2013, 09:46:35 AM
 #57


I was getting the below error when trying to launch, but subsequently realised I had installed the MTL version of Numpy. When I installed the correct version all worked well.


Actually, I spoke too soon - it turns out I get the error message:
"C:\Users\user\Downloads\CryptoSwitcher-master>python cryptoSwitcher.py




<<< Round 1 >>>
time: 2013-05-11 03:05:36
getting data... done
decoding data... done
comparing profitabilty...
------------------------------------
   Litecoin: 125  (fee:  4, src: cc)
FeatherCoin:  66  (fee:  4, src: cc)
    Bitcoin: 100  (fee: -1, src: cc)
------------------------------------
=> Best: 121, mining Litecoin
=> Switching to Litecoin (running litecoin.bat)
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 134, in _post
    % (params["method"], result.get(u'error')))
Exception: getInfo call failed with error: invalid nonce parameter; 100 100"

In the API keys section of BTC-E, both "info" and "trade" are ticked for the relevant key

my "key" file contains:
[key]
[secret]
100


Therefore I don't understand why it says "100 100" rather than just "100" in the error message (or why there is an error at all...)

Any thoughts as to what might be the cause?

Many thanks

scotjam

area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
May 11, 2013, 09:50:37 AM
 #58

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.
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
May 12, 2013, 04:32:26 PM
 #59

It doesn't seem to take merged mining into account. Unless I'm missing something...

I have the following settings set:

mmNMC = True

but when it does the calculations it seems to ignore that NameCoin is at 6.5%. Shouldn't it add the merged mining coins to the value of BTC to get the base line? When it runs for me, BTC is at 100%, and any coin at 101% or greater gets selected.

Am I missing something?
MrWizard
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
May 12, 2013, 04:36:10 PM
 #60

It doesn't seem to take merged mining into account. Unless I'm missing something...

I have the following settings set:

mmNMC = True

but when it does the calculations it seems to ignore that NameCoin is at 6.5%. Shouldn't it add the merged mining coins to the value of BTC to get the base line? When it runs for me, BTC is at 100%, and any coin at 101% or greater gets selected.

Am I missing something?
Your missing the latest version.  It fixes that bug.

"I walked into the room dripping in Bitcoins.  Yea dripping in Bitcoins."
(BTC) 168DCCeGmDy3xTWRimLVhvKtK3yEWbpsSg     (LTC) LbYS8VFqFSU7B9bfaHD11seQMtrtYEKpLe
(BBQ) bNVZErvwLzpEG7H3kt1fycWspzRQB1MJzL
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.
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
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 04, 2013, 03:17:01 AM
 #81

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.

Crypsty will be coming with API soon.  Got email reply from BigVern

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

Activity: 112
Merit: 10



View Profile
June 04, 2013, 02:24:47 PM
 #82

nice! i was about to do something like this also, but no need ill use this when cryptsy will be available to script Smiley)
The_Catman
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Captain Jack Fenderson


View Profile WWW
June 04, 2013, 07:53:52 PM
 #83

Luckycoin, Nibble, Phenixcoin, and Franko have been added. As well as some minor cosmetic changes.

I'll mention Junkcoin, Powercoin, and Royalcoinv were added awhile ago as well, since it doesn't seem to have been announced here.

educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 05, 2013, 12:33:47 AM
Last edit: June 05, 2013, 11:27:32 AM by educatedwarrior
 #84

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.

Fellahs, Cryptsy API is now available.  

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

Activity: 319
Merit: 250



View Profile
June 05, 2013, 11:28:42 PM
 #85

Is there anyone actively working on these api wrappers?
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
June 06, 2013, 02:36:34 PM
 #86

Request for new feature:

can you add a trade multiplier variable? Let me explain, as I'm not sure it is self evident.

If I'm reading the code right, it gets the current highest bid and then puts a sell order at that price. I'm looking for a variable that defaults to '1.0', which would be your standard behaviour. However,

if you set the variable to 1.01, then if the current high bid for WDC is .000152 then it would set the sell order to .00015352

I think this would help prevent the constant dive in prices, or at least allow those that want to use it to not contribute, and we can set a default 'up sell' value.

Thoughts?

area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 06, 2013, 02:41:45 PM
Last edit: June 06, 2013, 02:56:54 PM by area
 #87

Request for new feature:

can you add a trade multiplier variable? Let me explain, as I'm not sure it is self evident.

If I'm reading the code right, it gets the current highest bid and then puts a sell order at that price. I'm looking for a variable that defaults to '1.0', which would be your standard behaviour. However,

if you set the variable to 1.01, then if the current high bid for WDC is .000152 then it would set the sell order to .00015352

I think this would help prevent the constant dive in prices, or at least allow those that want to use it to not contribute, and we can set a default 'up sell' value.

Thoughts?


This seems like a pretty good idea to me.

EDIT: Added, under 'Misc' as 'tradeMultiplier'. The default value is 1, in order to not change the current behaviour, but I feel like setting this to 1.01 as the default value might be a good idea once people are aware of it.
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 07, 2013, 11:13:05 AM
 #88

another feature request , not a brainy as Jazkal


It looks like if you mine over 10 coins the summary screen get's jacked up.   How about updating the bottom of the screen log summary from 1-d vector display to 2-d, adding a row dimension.

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
June 08, 2013, 07:05:17 PM
Last edit: June 08, 2013, 09:15:12 PM by educatedwarrior
 #89

Anybody having issues with profitability calculations in CS as of 6/8/13.   All of a sudden all my profitability calculations are zero

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

Activity: 319
Merit: 250



View Profile
June 08, 2013, 09:16:08 PM
 #90

Might be because CoinChoose is down?
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 09, 2013, 12:46:46 AM
 #91

Might be because CoinChoose is down?
Right bro.  Didn't notice.

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

Activity: 140
Merit: 100


View Profile
June 09, 2013, 02:17:27 PM
 #92

Man i wish I understood what the hell you guys are going on about! lol I would love to use something like this but I don't have the first clue how to go about it... It hurts my brain to even think about learning it! took me long enough to get cgminer to bloomin work! And still have the occasional issue with it now lol...

Good luck to you all though, after the asics have arrived alt coins are even more important to us gpu miners!

Hopefully one day someone will make a noob friendly version of this! Smiley
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
June 09, 2013, 03:21:07 PM
 #93

CoinChoose is back up.
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
June 15, 2013, 02:57:03 AM
 #94

Have you seen this?

https://github.com/Zeuxis27/mcxnowapi

salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 17, 2013, 06:38:57 PM
 #95

Looks like Cryptsy's trading API is now documented.  A blob of PHP at the end is provided as an example.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 17, 2013, 10:37:05 PM
 #96

Looks like Cryptsy's trading API is now documented.  A blob of PHP at the end is provided as an example.

I have a minimal Python binding up:

https://github.com/salfter/PyCryptsy

I'm now looking into getting CryptoSwitcher to use it.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 18, 2013, 05:24:26 AM
 #97

I have a minimal Python binding up:

https://github.com/salfter/PyCryptsy

I'm now looking into getting CryptoSwitcher to use it.

Here's my first stab at it...waiting to build up enough coins for it to trigger:

https://github.com/salfter/CryptoSwitcher

PyCryptsy seems to have worked well enough for a couple of YAC-to-BTC exchanges earlier.  Integration was fairly simple; I designed it to work similarly with the Vircurex integration that had been done earlier.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 18, 2013, 07:33:17 AM
 #98

I have a minimal Python binding up:

https://github.com/salfter/PyCryptsy

I'm now looking into getting CryptoSwitcher to use it.

Here's my first stab at it...waiting to build up enough coins for it to trigger:

https://github.com/salfter/CryptoSwitcher

PyCryptsy seems to have worked well enough for a couple of YAC-to-BTC exchanges earlier.  Integration was fairly simple; I designed it to work similarly with the Vircurex integration that had been done earlier.

This looks great, and I've merged it into CryptoSwitcher. I've also adjusted the TradeMultiplier to a default of 1.01, given the race-to-the-bottom nature of Cryptsy. To sell your altcoins for the highest price you can right now, return this to 1 in the config file.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 18, 2013, 06:40:01 PM
 #99

Here's my first stab at it...waiting to build up enough coins for it to trigger:

https://github.com/salfter/CryptoSwitcher

PyCryptsy seems to have worked well enough for a couple of YAC-to-BTC exchanges earlier.  Integration was fairly simple; I designed it to work similarly with the Vircurex integration that had been done earlier.

This looks great, and I've merged it into CryptoSwitcher. I've also adjusted the TradeMultiplier to a default of 1.01, given the race-to-the-bottom nature of Cryptsy. To sell your altcoins for the highest price you can right now, return this to 1 in the config file.

Looks like it's trading on Cryptsy...one LTC-to-BTC trade went through; another is pending. 

It would be nice if their API provided a way to cash out your BTC to your wallet. I'd rather keep my coin in a wallet under my control.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
barwizi
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
June 19, 2013, 05:31:55 AM
 #100

anyone wanna help me get going?  i need to write the first scrypt script
pytel
Newbie
*
Offline Offline

Activity: 6
Merit: 0



View Profile
June 19, 2013, 10:52:55 AM
 #101

Hi,
when i try to run cryptoswitcher i get this error:
<<< Round 1 >>>
time: 2013-06-17 14:57:24
getting data... done
comparing profitabilty...
------------------------------------
    Bitcoin: 103  (fee:  0, src: cc)
FeatherCoin: 134  (fee:  2, src: cc)
DigitalCoin: 142  (fee:  2, src: cc)
  TerraCoin: 119  (fee:  2, src: cc)
    Devcoin:   0  (fee:  0, src: cc)
   Litecoin: 117  (fee:  0, src: cc)
     IXCoin:   0  (fee:  0, src: cc)
   NameCoin:   2  (fee:  0, src: cc)
------------------------------------
=> Best: 140, mining DigitalCoin
=> Switching to DigitalCoin (running dgcoin.sh)
Traceback (most recent call last):
  File "cryptoSwitcher.py", line 566, in <module>
    subprocess.Popen(coins[bestcoin].command)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Can someone help me?
peonminer
Hero Member
*****
Offline Offline

Activity: 798
Merit: 531


Crypto is King.


View Profile
June 19, 2013, 07:05:49 PM
 #102

OP, please add Cryptsy to the auto sell option of CryptoSwitcher!
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 19, 2013, 08:22:09 PM
 #103

OP, please add Cryptsy to the auto sell option of CryptoSwitcher!

I've already done that. My changes were merged into this project's GitHub repo, so

Code:
cd CryptoSwitcher && git pull

should bring you up to date.  Check cryptoSwitcher.config.sample for updated options.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 19, 2013, 08:23:56 PM
 #104

Hi,
when i try to run cryptoswitcher i get this error:
<<< Round 1 >>>
time: 2013-06-17 14:57:24
getting data... done
comparing profitabilty...
------------------------------------
    Bitcoin: 103  (fee:  0, src: cc)
FeatherCoin: 134  (fee:  2, src: cc)
DigitalCoin: 142  (fee:  2, src: cc)
  TerraCoin: 119  (fee:  2, src: cc)
    Devcoin:   0  (fee:  0, src: cc)
   Litecoin: 117  (fee:  0, src: cc)
     IXCoin:   0  (fee:  0, src: cc)
   NameCoin:   2  (fee:  0, src: cc)
------------------------------------
=> Best: 140, mining DigitalCoin
=> Switching to DigitalCoin (running dgcoin.sh)
Traceback (most recent call last):
  File "cryptoSwitcher.py", line 566, in <module>
    subprocess.Popen(coins[bestcoin].command)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Can someone help me?

Does dgcoin.sh exist?  It doesn't ship with CryptoSwitcher; you'll have to create it yourself.  Assuming that it does, you might want to enter it in cryptoSwitcher.config as ./dgcoin.sh, just to be safe.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 19, 2013, 10:33:47 PM
 #105

Man, salfer, you're on the ball, both here and over on GitHub. I've given you commit rights to the main repo.
jgm_coin
Full Member
***
Offline Offline

Activity: 230
Merit: 100



View Profile
June 20, 2013, 05:35:23 AM
 #106

Hey thanks for the great collection.  I hope to learn more about python scripting by reading this work.

I'm getting an error that my config file is wrong from line 108 of cryptoswitcher.py - I know this cannot be true since I did in fact edit the config file. 

I suspect I am using the wrong version of python (which has happened several times in the past). What version of python should be used with cryptoswitcher?  I'm using python 3.3

Thanks in advance for any help.

Best wishes,
Jgmcoin

Rent out your rig for up to 100% more than you can mine http://tinyurl.com/lc5axo2
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 20, 2013, 06:28:21 AM
Last edit: June 20, 2013, 11:25:08 AM by heartofalion
 #107

Looking through all of this, the only issue I am having ATM is finding where to set the ammount sell triggers for Cryptsy

I also am not seeing memecoin, megacoin, fastcoin...etc Is there a way i can add them myself?

EDIT::::: Nevermind i figured out how to add other coins Smiley
pytel
Newbie
*
Offline Offline

Activity: 6
Merit: 0



View Profile
June 20, 2013, 10:39:16 AM
 #108

Hi,
when i try to run cryptoswitcher i get this error:
<<< Round 1 >>>
time: 2013-06-17 14:57:24
getting data... done
comparing profitabilty...
------------------------------------
    Bitcoin: 103  (fee:  0, src: cc)
FeatherCoin: 134  (fee:  2, src: cc)
DigitalCoin: 142  (fee:  2, src: cc)
  TerraCoin: 119  (fee:  2, src: cc)
    Devcoin:   0  (fee:  0, src: cc)
   Litecoin: 117  (fee:  0, src: cc)
     IXCoin:   0  (fee:  0, src: cc)
   NameCoin:   2  (fee:  0, src: cc)
------------------------------------
=> Best: 140, mining DigitalCoin
=> Switching to DigitalCoin (running dgcoin.sh)
Traceback (most recent call last):
  File "cryptoSwitcher.py", line 566, in <module>
    subprocess.Popen(coins[bestcoin].command)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Can someone help me?

Does dgcoin.sh exist?  It doesn't ship with CryptoSwitcher; you'll have to create it yourself.  Assuming that it does, you might want to enter it in cryptoSwitcher.config as ./dgcoin.sh, just to be safe.

Yes, it exists and have the right rights and added in cryptoconfig
cokeman0
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 20, 2013, 01:52:44 PM
 #109

Anyone gotten this working under windows.

I get this error:

Traceback (most recent call last):
  File "cryptoSwitcher.py", line 13, in <module>
    from PyCryptsy import PyCryptsy
  File "./PyCryptsy/PyCryptsy.py", line 25, in <module>
    import pycurl
ImportError: No module named pycurl


I have tried to install pycurl, but I keep getting errors, is there anyone that has a curl (that pycurl works with) that will share ?

salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 20, 2013, 04:00:13 PM
Last edit: June 20, 2013, 04:33:18 PM by salfter
 #110

Anyone gotten this working under windows.

I get this error:

Traceback (most recent call last):
  File "cryptoSwitcher.py", line 13, in <module>
    from PyCryptsy import PyCryptsy
  File "./PyCryptsy/PyCryptsy.py", line 25, in <module>
    import pycurl
ImportError: No module named pycurl

I have tried to install pycurl, but I keep getting errors, is there anyone that has a curl (that pycurl works with) that will share ?

I usually work with Linux, but am working on getting Python on Windows to the point where it'll run CryptoSwitcher.  In the meantime, you might give the PyCurl builds on this page a shot:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

Edit: Confirmed working with the following configuration on Windows 7 Professional for AMD64:

Python 2.7.5 (install with default options)
   http://www.python.org/download/releases/2.7.5/

setuptools
   https://pypi.python.org/pypi/setuptools/0.7.4#windows
   open administrator command prompt, then install with
Code:
python ez_setup.py
   
pip, PyCurl, NumPy, simplejson
   http://www.lfd.uci.edu/~gohlke/pythonlibs/
   
Make sure c:\Python27 and c:\Python27\Scripts are in your PATH, then open an administrator command prompt and install beautifulsoup4:

Code:
pip install beautifulsoup4

urllib2 appears to be part of the base Python install, so with everything above installed, CryptoSwitcher should fire up.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
evilscoop
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
June 20, 2013, 04:02:09 PM
 #111

nice, ill have to try this on the pi
jgm_coin
Full Member
***
Offline Offline

Activity: 230
Merit: 100



View Profile
June 20, 2013, 05:47:03 PM
 #112

Anyone got this working on Win7 yet?

I would like to know this too, and if there is anything that could be done to make it easier to run on Windows, I'd look into it.

Yes It's working on my Win 7 64 setup.. Grin Heres all the hassles I had.. Roll Eyes

1 You can't use python 3.3.. Use Python 2.7.4 (has urllib 2 ) http://www.python.org/download/releases/2.7.4/

2 Remember to set your path to python 27 (Instructions : http://www.youtube.com/watch?v=ddpYVA-7wq4  )

3 You need to install beautifulsoup4-4.0.0b10 (later version didn't work)
http://www.crummy.com/software/BeautifulSoup/bs4/download/4.0/

4 You need to install simplejson https://github.com/simplejson/simplejson

5 You need to install Numpy from the appropiate executable found only here : http://www.lfd.uci.edu/~gohlke/pythonlibs/

6 You need to download pyvircurex-master.zip and btce-api-master.zip and drop their files into the appropiate folders in the cryptoswitcher directory.

Then, if you have changed the cryptoswitcher.config to read batchfiles like the supplied bitcoin.bat, it works like a dream.

Happy geeking  Wink


To the author:  these dependencies are not clear from your github - please update when you have time


Rent out your rig for up to 100% more than you can mine http://tinyurl.com/lc5axo2
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 20, 2013, 07:23:24 PM
 #113

Now that I have CryptoSwitcher running on Windows, I have it set up for altcoin mining with my Jalapeños.  Altcoin mining with ASICs is a bit more limited as not many of them use the same sha256d proof-of-work as Bitcoin, but I have CryptoSwitcher set up to switch between Bitcoin and Freicoin.  Terracoin and PPCoin might also be worth setting up. I had my Jalapeños aimed at Coinotron's FRC pool for an hour or so this morning for testing...kicked their hashrate up by 50% and found a block.  Grin

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 20, 2013, 08:37:42 PM
 #114

Salfter, mine is up and running on windows but the auto sell function doesnt seem to be working. I have PyCrptsy.py in the appropriate folder and have put my api keys in the config file and set the ones i want to sell to true, although it doesnt seem to be selling? Is there a certain amount of coins you need before it will sell? Or am i missing something.

Thanks!
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
June 20, 2013, 08:47:54 PM
 #115

Now that I have CryptoSwitcher running on Windows, I have it set up for altcoin mining with my Jalapeños.  Altcoin mining with ASICs is a bit more limited as not many of them use the same sha256d proof-of-work as Bitcoin, but I have CryptoSwitcher set up to switch between Bitcoin and Freicoin.  Terracoin and PPCoin might also be worth setting up. I had my Jalapeños aimed at Coinotron's FRC pool for an hour or so this morning for testing...kicked their hashrate up by 50% and found a block.  Grin
Jumping between coins, I found that you need to find a PPS pool, or mine solo. Just an FYI. For the lower hash diff CrapCoins out there, it isn't as important, but you won't be mining those with the Japs.
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
June 20, 2013, 08:49:52 PM
Last edit: June 21, 2013, 05:17:54 AM by Jazkal
 #116


After adding in the pycurl mentioned in an above post I was able to verify that the BTC-e and Cryptsy trading is working.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 20, 2013, 09:09:55 PM
 #117

Salfter, mine is up and running on windows but the auto sell function doesnt seem to be working. I have PyCrptsy.py in the appropriate folder and have put my api keys in the config file and set the ones i want to sell to true, although it doesnt seem to be selling? Is there a certain amount of coins you need before it will sell? Or am i missing something.

Thanks!
I was able to get the auto switching working with LittleDigger's guide. But I never got the auto selling features to work on Windows.

Has anyone else gotten that to work on Windows?

I've not had it on altcoins long enough for it to kick in, though it just switched over to Terracoin a bit ago.  We'll see what happens over the next several hours or so.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Jazkal
Sr. Member
****
Offline Offline

Activity: 319
Merit: 250



View Profile
June 21, 2013, 05:16:20 AM
 #118

Did this one not have what you need?
jgm_coin
Full Member
***
Offline Offline

Activity: 230
Merit: 100



View Profile
June 21, 2013, 04:22:33 PM
 #119


After adding in the pycurl mentioned in an above post I was able to verify that the BTC-e and Cryptsy trading is working.


I did have successful cryptsy trading but the software crashes if it can't access cryptsy when the site is down for any reason.  I'm going to try to fix this.

Rent out your rig for up to 100% more than you can mine http://tinyurl.com/lc5axo2
Mr.V
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
June 22, 2013, 11:43:40 PM
 #120

Now that I have CryptoSwitcher running on Windows, I have it set up for altcoin mining with my Jalapeños.  Altcoin mining with ASICs is a bit more limited as not many of them use the same sha256d proof-of-work as Bitcoin, but I have CryptoSwitcher set up to switch between Bitcoin and Freicoin.  Terracoin and PPCoin might also be worth setting up. I had my Jalapeños aimed at Coinotron's FRC pool for an hour or so this morning for testing...kicked their hashrate up by 50% and found a block.  Grin
Jumping between coins, I found that you need to find a PPS pool, or mine solo. Just an FYI. For the lower hash diff CrapCoins out there, it isn't as important, but you won't be mining those with the Japs.

What happens if your not on a PPS pool when constantly switching between coins? do you not get paid for what you put in?

BTC:1NwEE7C2hVLSNGwSrFvsYgTrKddCvfhRwY
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 23, 2013, 02:27:39 AM
 #121

Salfter, mine is up and running on windows but the auto sell function doesnt seem to be working. I have PyCrptsy.py in the appropriate folder and have put my api keys in the config file and set the ones i want to sell to true, although it doesnt seem to be selling? Is there a certain amount of coins you need before it will sell? Or am i missing something.

Thanks!
I was able to get the auto switching working with LittleDigger's guide. But I never got the auto selling features to work on Windows.

Has anyone else gotten that to work on Windows?

I've not had it on altcoins long enough for it to kick in, though it just switched over to Terracoin a bit ago.  We'll see what happens over the next several hours or so.

Just wanted to say that it successfully auto sold for me. I have turned off the feature though because I discovered i prefer to set my own price. The auto sell features does work on windows, but as someone else said if there is an issue with cryptsy the software crashes. I had that happen to.

Salfter if I had coins to spare I'd donate, your software gives me piece of mind while I'm at work. One thing I'd like is to be able to specify different cgminer.confs to use for each coin. I only say this because I added back up pools to the .conf file incase the pool the .bat tried connecting too was unavailable but this forces me to choose one coin. I'd like to be able to create multiple conf files for use with each coin so if a primary pool isnt up it still uses a backup pool that is still for the most profitable coin at the time.
BTCsckr
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
June 23, 2013, 04:03:26 AM
 #122

Salfter, mine is up and running on windows but the auto sell function doesnt seem to be working. I have PyCrptsy.py in the appropriate folder and have put my api keys in the config file and set the ones i want to sell to true, although it doesnt seem to be selling? Is there a certain amount of coins you need before it will sell? Or am i missing something.

Thanks!
I was able to get the auto switching working with LittleDigger's guide. But I never got the auto selling features to work on Windows.

Has anyone else gotten that to work on Windows?

I've not had it on altcoins long enough for it to kick in, though it just switched over to Terracoin a bit ago.  We'll see what happens over the next several hours or so.

Just wanted to say that it successfully auto sold for me. I have turned off the feature though because I discovered i prefer to set my own price. The auto sell features does work on windows, but as someone else said if there is an issue with cryptsy the software crashes. I had that happen to.

Salfter if I had coins to spare I'd donate, your software gives me piece of mind while I'm at work. One thing I'd like is to be able to specify different cgminer.confs to use for each coin. I only say this because I added back up pools to the .conf file incase the pool the .bat tried connecting too was unavailable but this forces me to choose one coin. I'd like to be able to create multiple conf files for use with each coin so if a primary pool isnt up it still uses a backup pool that is still for the most profitable coin at the time.

You can use backup pools with a cgminer config bat like this "C:\cgminer\cgminer --scrypt -o stratum+tcp://stratum.give-me-ltc.com:3334 -u x -p x -o stratum+tcp://stratum.give-me-ltc.com:3333 -u x -p x -o http://us-pool.give-me-ltc.com:8080 -u x -p x -o http://eu-pool.give-me-ltc.com:8080 -u x -p x -o http://pool.give-me-ltc.com:8080 -u x -p x --failover-only" for each coin
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 23, 2013, 05:12:51 AM
 #123

Salfter, mine is up and running on windows but the auto sell function doesnt seem to be working. I have PyCrptsy.py in the appropriate folder and have put my api keys in the config file and set the ones i want to sell to true, although it doesnt seem to be selling? Is there a certain amount of coins you need before it will sell? Or am i missing something.

Thanks!
I was able to get the auto switching working with LittleDigger's guide. But I never got the auto selling features to work on Windows.

Has anyone else gotten that to work on Windows?

I've not had it on altcoins long enough for it to kick in, though it just switched over to Terracoin a bit ago.  We'll see what happens over the next several hours or so.

Just wanted to say that it successfully auto sold for me. I have turned off the feature though because I discovered i prefer to set my own price. The auto sell features does work on windows, but as someone else said if there is an issue with cryptsy the software crashes. I had that happen to.

Salfter if I had coins to spare I'd donate, your software gives me piece of mind while I'm at work. One thing I'd like is to be able to specify different cgminer.confs to use for each coin. I only say this because I added back up pools to the .conf file incase the pool the .bat tried connecting too was unavailable but this forces me to choose one coin. I'd like to be able to create multiple conf files for use with each coin so if a primary pool isnt up it still uses a backup pool that is still for the most profitable coin at the time.

You can use backup pools with a cgminer config bat like this "C:\cgminer\cgminer --scrypt -o stratum+tcp://stratum.give-me-ltc.com:3334 -u x -p x -o stratum+tcp://stratum.give-me-ltc.com:3333 -u x -p x -o http://us-pool.give-me-ltc.com:8080 -u x -p x -o http://eu-pool.give-me-ltc.com:8080 -u x -p x -o http://pool.give-me-ltc.com:8080 -u x -p x --failover-only" for each coin

Thank you so much!
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 23, 2013, 01:09:25 PM
 #124

I have a minimal Python binding up:

https://github.com/salfter/PyCryptsy

I'm now looking into getting CryptoSwitcher to use it.

Here's my first stab at it...waiting to build up enough coins for it to trigger:

https://github.com/salfter/CryptoSwitcher

PyCryptsy seems to have worked well enough for a couple of YAC-to-BTC exchanges earlier.  Integration was fairly simple; I designed it to work similarly with the Vircurex integration that had been done earlier.

This looks great, and I've merged it into CryptoSwitcher. I've also adjusted the TradeMultiplier to a default of 1.01, given the race-to-the-bottom nature of Cryptsy. To sell your altcoins for the highest price you can right now, return this to 1 in the config file.


I'm using the TradeMultiplier of 1.01 and it works great.  Thanks.

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
June 23, 2013, 01:11:00 PM
Last edit: June 23, 2013, 01:21:24 PM by educatedwarrior
 #125

First of all thanks to salfter for all the hard work to code PyCrypsty --  bitcoins coming your way.  

PyCrypsty was working great until an error occurred around line 222 in Cryptoswithcer caused by line 80 in PyCrypsty.   Error   "Unbound Local Error: local variable 'mkt_id' referenced before assignment.

This error causes a fatal error in Cryptoswitcher.   After this fatal error occurs when you try to run Cryptoswitcher again, BTC-E Api returns "invalid noonce parameter".   I think the error caused by PyCrypsty causes the Cryptoswitcher to exit without saving the incremented noonce value to the BTC-E key file.

I think there needs to be error handling in Cryptoswitcher around line 581 and 593 to prevent submodules from causing fatal errors in Cryptoswitcher.

Error Below:

Traceback (most recent call last):
  File "F:\Users\CryptoSwitcher\cryptoSwitcher.py", line 593, in <module
>
    sellCoinCryptsy(abbreviation)
  File "F:\Users\CryptoSwitcher\cryptoSwitcher.py", line 222, in sellCoi
nCryptsy
    acct.CreateSellOrder(coin, "BTC", bal, acct.GetBuyPrice(coin, "BTC")*tradeMu
ltiplier)
  File "./PyCryptsy/PyCryptsy.py", line 84, in GetBuyPrice
    r=self.Query("marketorders", {"marketid": self.GetMarketID(src, dest)})
  File "./PyCryptsy/PyCryptsy.py", line 80, in GetMarketID
    return mkt_id
UnboundLocalError: local variable 'mkt_id' referenced before assignment

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

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 24, 2013, 08:16:40 PM
 #126

Salfter if I had coins to spare I'd donate, your software gives me piece of mind while I'm at work. One thing I'd like is to be able to specify different cgminer.confs to use for each coin.

You can do that with the script (or batch file) you use to start the miner for each coin:

Code:
cgminer --config=cgminer.conf.bitcoin ...

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 24, 2013, 08:18:13 PM
 #127

First of all thanks to salfter for all the hard work to code PyCrypsty --  bitcoins coming your way.  

PyCrypsty was working great until an error occurred around line 222 in Cryptoswithcer caused by line 80 in PyCrypsty.   Error   "Unbound Local Error: local variable 'mkt_id' referenced before assignment.

This error causes a fatal error in Cryptoswitcher.   After this fatal error occurs when you try to run Cryptoswitcher again, BTC-E Api returns "invalid noonce parameter".   I think the error caused by PyCrypsty causes the Cryptoswitcher to exit without saving the incremented noonce value to the BTC-E key file.

I think there needs to be error handling in Cryptoswitcher around line 581 and 593 to prevent submodules from causing fatal errors in Cryptoswitcher.

Error Below:

Traceback (most recent call last):
  File "F:\Users\CryptoSwitcher\cryptoSwitcher.py", line 593, in <module
>
    sellCoinCryptsy(abbreviation)
  File "F:\Users\CryptoSwitcher\cryptoSwitcher.py", line 222, in sellCoi
nCryptsy
    acct.CreateSellOrder(coin, "BTC", bal, acct.GetBuyPrice(coin, "BTC")*tradeMu
ltiplier)
  File "./PyCryptsy/PyCryptsy.py", line 84, in GetBuyPrice
    r=self.Query("marketorders", {"marketid": self.GetMarketID(src, dest)})
  File "./PyCryptsy/PyCryptsy.py", line 80, in GetMarketID
    return mkt_id
UnboundLocalError: local variable 'mkt_id' referenced before assignment

Yeah, there's probably not as much exception handling as there should be.  I'm looking into it.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 24, 2013, 08:45:17 PM
 #128

First of all thanks to salfter for all the hard work to code PyCrypsty --  bitcoins coming your way.  

PyCrypsty was working great until an error occurred around line 222 in Cryptoswithcer caused by line 80 in PyCrypsty.   Error   "Unbound Local Error: local variable 'mkt_id' referenced before assignment.

This error causes a fatal error in Cryptoswitcher.   After this fatal error occurs when you try to run Cryptoswitcher again, BTC-E Api returns "invalid noonce parameter".   I think the error caused by PyCrypsty causes the Cryptoswitcher to exit without saving the incremented noonce value to the BTC-E key file.

mkt_id comes back null (or "None," as Python calls it) if a currency trading pair can't be found on Cryptsy (whether due to a communication error or because that pair isn't traded).  PyCryptsy now catches this condition in its helper methods and should respond in a less-crashy manner.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 24, 2013, 09:02:45 PM
 #129

Quick note on updating: to make sure PyCryptsy gets updated, you might need to do this:

Code:
cd CryptoSwitcher && git pull && git submodule update

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
moroz
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 25, 2013, 07:47:54 AM
 #130

I found that the best way to switch pools is through cgminer API. If you have your GPUs highly overclocked, they don't really want to start every cgminer restart. With API there is no need to restart cgminer instance, unless you are switching between scrypt and sha256.
An example of adding a pool:
echo -n "addpool|stratum+tcp://stratum.give-me-ftc.com:3333,mylogin,mypass" | nc 127.0.0.1 4028
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 25, 2013, 08:28:50 AM
 #131

I found that the best way to switch pools is through cgminer API. If you have your GPUs highly overclocked, they don't really want to start every cgminer restart. With API there is no need to restart cgminer instance, unless you are switching between scrypt and sha256.
An example of adding a pool:
echo -n "addpool|stratum+tcp://stratum.give-me-ftc.com:3333,mylogin,mypass" | nc 127.0.0.1 4028

This man is on the money; and I've been toying with the best way to implement this. This is most of a script you should use for this sort of approach, but requires pools being doubled between the .conf file and this bash script depending on whether the script is starting CGminer or just switching the pools. I'd like to avoid this if possible.

Code:
#!/bin/bash
#Replace this script with one of your own.
METH=$(echo -n "coin" | nc 127.0.0.1 4028 | sed 's/.*Hash Method=\([a-z0-9]*\),.*/\1/')
echo $METH
#Kill vanityminer - inelegant, but works
killall oclvanityminer
if [ $METH == 'scrypt' ]
then
#Send the quit command to any cgminer instances running
echo "{\"command\":\"quit\"}" | nc 127.0.0.1 4028
#Start Bitcoin mining with API access enabled for the above command in the future
export DISPLAY=:0
#Set clocks
aticonfig --od-setclocks=930,300 --adapter=1
aticonfig --od-setclocks=850,300 --adapter=0
screen -dm ./../cgminer/cgminer -c ~/.cgminer/bitcoin.conf  --auto-fan --api-network --api-listen --api-allow W:127.0.0.1
else
#We can just modify the pools
#Remove old pools until one left (the active one)
NPOOLS=$(echo -n "config" | nc 127.0.0.1 4028| sed 's/.*Pool Count=\([0-9]*\),.*/\1/')
echo $NPOOLS
for i in $(seq $NPOOLS -1 0)
do
echo -n "removepool|$i" | nc 127.0.0.1 4028| sed 's/.*Pool Count=\([0-9]*\),.*/\1/'
done
#Add new pools
echo -n "addpool|stratum+tcp://stratum.give-me-ftc.com:3333,mylogin,mypass" | nc 127.0.0.1 4028
#Switch to first new pool
echo -n "switchpool|1" | nc 127.0.0.1 4028
#
#Remove last old pool
echo -n "removepool|0" | nc 127.0.0.1 4028

fi



Sorry I've not been keeping tabs on Cryptoswitcher so much the last week or two - I've had other commitments, which are sadly more pressing, overtake me.
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
June 25, 2013, 07:49:24 PM
 #132

Is there a way to implement that in windows? Sorry I'm not good with creating batch files.

Also coinChoose has gotten rid of alot of coins? Can we use a different source for the data?
erpbridge
Legendary
*
Offline Offline

Activity: 954
Merit: 1000


View Profile
June 25, 2013, 08:11:48 PM
 #133

Yeah, Coinchoose just dropped over half the coins they were offering since this morning... need to pick a different provider because a lot of the coins that have even been on top the past few days, like Phenixcoin, Argentum, and others were deleted from coinchoose.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 25, 2013, 08:26:17 PM
 #134

Yeah, Coinchoose just dropped over half the coins they were offering since this morning... need to pick a different provider because a lot of the coins that have even been on top the past few days, like Phenixcoin, Argentum, and others were deleted from coinchoose.

They'll come back. They get removed if the exchanges go down.

Is there a way to implement that in windows? Sorry I'm not good with creating batch files.

Also coinChoose has gotten rid of alot of coins? Can we use a different source for the data?

I am not a Windows man, I'm afraid.
BTCsckr
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
June 26, 2013, 03:54:35 AM
 #135

After Cryptsy DDoS i´m getting this error

Traceback (most recent call last):
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 600, in <module>
    sellCoinCryptsy(abbreviation)
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 226, in sellCoinCryptsy
    bal = acct.GetAvailableBalance(coin)
  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 26, 2013, 04:24:55 AM
 #136

After Cryptsy DDoS i´m getting this error

Traceback (most recent call last):
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 600, in <module>
    sellCoinCryptsy(abbreviation)
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 226, in sellCoinCryptsy
    bal = acct.GetAvailableBalance(coin)
  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
June 26, 2013, 12:15:38 PM
 #137

After Cryptsy DDoS i´m getting this error

Traceback (most recent call last):
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 600, in <module>
    sellCoinCryptsy(abbreviation)
  File "C:\Mineria\CryptoSwitcher\cryptoSwitcher.py", line 226, in sellCoinCryptsy
    bal = acct.GetAvailableBalance(coin)
  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.

Yes, same problem  here

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

Activity: 490
Merit: 500


View Profile WWW
June 26, 2013, 01:02:41 PM
 #138

Yeah, Coinchoose just dropped over half the coins they were offering since this morning... need to pick a different provider because a lot of the coins that have even been on top the past few days, like Phenixcoin, Argentum, and others were deleted from coinchoose.

They'll come back. They get removed if the exchanges go down.

Is there a way to implement that in windows? Sorry I'm not good with creating batch files.

Also coinChoose has gotten rid of alot of coins? Can we use a different source for the data?

I am not a Windows man, I'm afraid.

Yes, it was the DDoS on the exchanges that removed the currencies as I couldn't get pricing.  All are back.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 26, 2013, 04:39:15 PM
Last edit: June 26, 2013, 04:50:04 PM by salfter
 #139

After Cryptsy DDoS i´m getting this error

  File "./PyCryptsy/PyCryptsy.py", line 106, in GetAvailableBalance
    r=self.Query("getinfo", {})
  File "./PyCryptsy/PyCryptsy.py", line 71, in Query
    raise Exception("unable to decode response")
Exception: unable to decode response

anybody else with the same problem?

When I first logged into Cryptsy after the DDoS, I was redirected to a page with a captcha. I'm guessing the same thing is happening with API access.

Yes, same problem  here

...and it's still there.  Trying to pull up Cryptsy with either Lynx or Links just comes back with an error from Incapsula.  "Protecting" an API URL with a captcha that can't be answered by services that use the API is a Bad Idea.  The mining rig running CryptoSwitcher is headless; getting a graphical browser running so I can answer the stupid captcha will entail installing NX, a window manager, and Firefox; that's going to take some time, and even after all that there's still no guarantee that CryptoSwitcher will work again.  Angry

I've put a request in with Cryptsy support:

Quote
Can Incapsula be set to not block API calls?  With the example code at https://www.cryptsy.com/pages/api, an exception is thrown:

Code:
PHP Fatal error:  Uncaught exception 'Exception' with message 'Invalid data received, please make sure connection is working and requested API exists' in /home/salfter/cryptsy-test.php:42
Stack trace:
#0 /home/salfter/cryptsy-test.php(46): api_query('getinfo')
#1 {main}
  thrown in /home/salfter/cryptsy-test.php on line 42

Fatal error: Uncaught exception 'Exception' with message 'Invalid data received, please make sure connection is working and requested API exists' in /home/salfter/cryptsy-test.php:42
Stack trace:
#0 /home/salfter/cryptsy-test.php(46): api_query('getinfo')
#1 {main}
  thrown in /home/salfter/cryptsy-test.php on line 42

This is what's being returned by Cryptsy on the API call:

Code:
<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><iframe src="/_Incapsula_Resource?CWUDNSAI=23_93E7E369&incident_id=133000030648118832-1915414908464594998&edet=12&cinfo=44e01eb7c753810585000000" frameborder=0 width="100%" height="100%" marginheight="0px" marginwidth="0px">Request unsuccessful. Incapsula incident ID: 133000030648118832-1915414908464594998</iframe></html>

It's also broken CryptoSwitcher as a consequence, if Cryptsy is enabled.

For the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 26, 2013, 08:02:06 PM
 #140

I've put a request in with Cryptsy support...for the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.

BigVern asked me for my IP address so it could be whitelisted.  For those of you who are auto-trading through Cryptsy, I'd recommend sending a request to support@cryptsy.com that your public IP address be whitelisted.  Once that was done, CryptoSwitcher was back to business as usual.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
BTCsckr
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
June 26, 2013, 11:44:58 PM
 #141

I've put a request in with Cryptsy support...for the time being, if you disable auto-trading with Cryptsy, CryptoSwitcher will continue to work.

BigVern asked me for my IP address so it could be whitelisted.  For those of you who are auto-trading through Cryptsy, I'd recommend sending a request to support@cryptsy.com that your public IP address be whitelisted.  Once that was done, CryptoSwitcher was back to business as usual.
That would be a short-term solution since my ip is dynamic as it is for most of the people, don´t think BigVern will whitelist an ip range so i can autotrade after my modem restarts and change my ip
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 27, 2013, 12:15:54 AM
 #142

That would be a short-term solution since my ip is dynamic as it is for most of the people, don´t think BigVern will whitelist an ip range so i can autotrade after my modem restarts and change my ip

The better long-term solution would be to remove the anti-DDoS protection from at least the API pages. Only users have access to them anyway, and if somebody is abusing the service, it should be easy to identify the perp and whack him with the banhammer. Unfortunately, there's not much I can do to work around it.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
June 28, 2013, 05:51:46 PM
 #143

I am willing to pay a bounty for someone to send me an image of their BAMT miner with cryptoswitcher... PM me for more details!

The last time I looked into BAMT, wasn't it hopelessly out-of-date? It was last updated more than a year ago, and the site that hosted it is down.  You'd most likely need to update the ATI drivers and cgminer (at a minimum). If you're already doing that, it seems that starting with a newer base system and putting on the latest software would be the better way to go.

I'm somewhat partial to Gentoo. You can get a system running from a stage3 tarball fairly quickly, and about the only ebuilds you would need to add to start mining are ati-drivers and cgminer.  Portage has ati-drivers ebuilds available, and I have ebuilds for cgminer (and a bunch of other Bitcoin- and altcoin-related packages) at https://github.com/salfter/portage. (Portage also has cgminer ebuilds, but their latest is 2.7.4.  My newest is 3.3.1.)

That said, maybe there's an opportunity to start with something like the SystemRescueCD (a bootable Gentoo-based system you can put on recordable media or a USB flashstick) and make a BAMT replacement out of it.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
June 30, 2013, 12:02:57 PM
 #144

I reckon you need to make your shell scripts executable? i.e. chmod +x pxc.sh
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 01, 2013, 04:40:53 AM
 #145

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\cryptoswitcher

c:\CryptoSwitcher>python cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>

I followed the steps in this thread and have everything installed correctly to my knowledge.  Here is my cryptoswitcher.config file:

Code:
# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineAMC = False
mineARG = False
mineBQC = False
mineBTB = False
mineBTC = False
mineCNC = False
mineDGC = True
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = True
mineHYC = False
mineLKY = True
mineLTC = True
mineMEM = True
mineMNC = False
mineNBL = False
mineNVC = False
minePPC = False
minePXC = True
mineTRC = False
mineWDC = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
mineBTE = False
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = False
mineIXC = False
mineNMC = False

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
AMCscript =
ARGscript =
BQCscript =
BTBscript =
BTCscript = bitcoin.bat
BTEscript =
CNCscript =
DBLscript =
DGCscript = dgc-ftc-skyhighmining.bat
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript = ftc-skyhighmining.bat
GLDscript =
HYCscript =
JKCscript =
LKYscript = lcky-ltc-skyhighmining.bat
LTCscript = ltc-skyhighmining.bat
MECscript = mec-ltc-skyhighmining.bat
MEMscript = meme-ftc-skyhighmining.bat
MNCscript =
NBLscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript = phnx-ltc-skyhighmining.bat
RYCscript =
TRCscript =
WDCscript = wdc-ftc-skyhighmining.bat
YACscript =

VANITYscript =


################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeAMC = 0
feeARG = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeCNC = 0
feeDBL = 0
feeDGC = 15
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 5
feeGLD = 0
feeHYC = 0
feeJKC = 0
feeLKY = 5
feeLTC = 5
feeMEC = 5
feeMEM = 5
feeMNC = 0
feeNBL = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 5
feeRYC = 0
feeTRC = 0
feeWDC = 15
feeYAC = 0


################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinchoose, coinotron, dustcoin, cryptoswitcher

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=cryptsy, btce, bter, vircurex

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=5800000
hashrate_scrypt=5800000


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it. 
tradeMultiplier = 1.01


################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = True
cryptsyPublicKey =
cryptsyPrivateKey =

# Enable the coins you want to sell here.
sellAMC = False
sellARG = False
sellBQC = False
sellBTB = False
sellBTE = False
sellCNC = False
sellDBL = False
sellDGC = True
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGLD = False
sellHYC = False
sellJKC = False
sellLKY = True
sellLTC = False
sellMEC = True
sellMEM = True
sellMNC = False
sellNBL = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = True
sellRYC = False
sellTRC = False
sellWDC = True
sellYAC = False
mineDVC = False
mineIXC = False
mineNMC = False

I have all of those .bat files in my cgminer folder along with all of the cryptoswitcher items.  I am sure I am missing something simple I just can't figure it out.

If anybody has any ideas It would be greatly welcomed.

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 02, 2013, 12:04:04 AM
 #146

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\cryptoswitcher

c:\CryptoSwitcher>python cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>

I followed the steps in this thread and have everything installed correctly to my knowledge.  Here is my cryptoswitcher.config file:

Code:
# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineAMC = False
mineARG = False
mineBQC = False
mineBTB = False
mineBTC = False
mineCNC = False
mineDGC = True
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = True
mineHYC = False
mineLKY = True
mineLTC = True
mineMEM = True
mineMNC = False
mineNBL = False
mineNVC = False
minePPC = False
minePXC = True
mineTRC = False
mineWDC = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
mineBTE = False
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = False
mineIXC = False
mineNMC = False

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
AMCscript =
ARGscript =
BQCscript =
BTBscript =
BTCscript = bitcoin.bat
BTEscript =
CNCscript =
DBLscript =
DGCscript = dgc-ftc-skyhighmining.bat
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript = ftc-skyhighmining.bat
GLDscript =
HYCscript =
JKCscript =
LKYscript = lcky-ltc-skyhighmining.bat
LTCscript = ltc-skyhighmining.bat
MECscript = mec-ltc-skyhighmining.bat
MEMscript = meme-ftc-skyhighmining.bat
MNCscript =
NBLscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript = phnx-ltc-skyhighmining.bat
RYCscript =
TRCscript =
WDCscript = wdc-ftc-skyhighmining.bat
YACscript =

VANITYscript =


################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeAMC = 0
feeARG = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeCNC = 0
feeDBL = 0
feeDGC = 15
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 5
feeGLD = 0
feeHYC = 0
feeJKC = 0
feeLKY = 5
feeLTC = 5
feeMEC = 5
feeMEM = 5
feeMNC = 0
feeNBL = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 5
feeRYC = 0
feeTRC = 0
feeWDC = 15
feeYAC = 0


################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinchoose, coinotron, dustcoin, cryptoswitcher

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=cryptsy, btce, bter, vircurex

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=5800000
hashrate_scrypt=5800000


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it. 
tradeMultiplier = 1.01


################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = True
cryptsyPublicKey =
cryptsyPrivateKey =

# Enable the coins you want to sell here.
sellAMC = False
sellARG = False
sellBQC = False
sellBTB = False
sellBTE = False
sellCNC = False
sellDBL = False
sellDGC = True
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGLD = False
sellHYC = False
sellJKC = False
sellLKY = True
sellLTC = False
sellMEC = True
sellMEM = True
sellMNC = False
sellNBL = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = True
sellRYC = False
sellTRC = False
sellWDC = True
sellYAC = False
mineDVC = False
mineIXC = False
mineNMC = False

I have all of those .bat files in my cgminer folder along with all of the cryptoswitcher items.  I am sure I am missing something simple I just can't figure it out.

If anybody has any ideas It would be greatly welcomed.

I hate to bump my own post but this has my head spinning.  I have tried to google and research this issue with no answer anywhere that I can find.  I would  really love to get this working to try out the program.  Again any and all advice is welcome.  Thanks again in advance.

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
heartofalion
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
July 02, 2013, 02:39:56 AM
 #147

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\cryptoswitcher

c:\CryptoSwitcher>python cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>

I followed the steps in this thread and have everything installed correctly to my knowledge.  Here is my cryptoswitcher.config file:

Code:
# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineAMC = False
mineARG = False
mineBQC = False
mineBTB = False
mineBTC = False
mineCNC = False
mineDGC = True
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = True
mineHYC = False
mineLKY = True
mineLTC = True
mineMEM = True
mineMNC = False
mineNBL = False
mineNVC = False
minePPC = False
minePXC = True
mineTRC = False
mineWDC = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
mineBTE = False
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = False
mineIXC = False
mineNMC = False

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
AMCscript =
ARGscript =
BQCscript =
BTBscript =
BTCscript = bitcoin.bat
BTEscript =
CNCscript =
DBLscript =
DGCscript = dgc-ftc-skyhighmining.bat
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript = ftc-skyhighmining.bat
GLDscript =
HYCscript =
JKCscript =
LKYscript = lcky-ltc-skyhighmining.bat
LTCscript = ltc-skyhighmining.bat
MECscript = mec-ltc-skyhighmining.bat
MEMscript = meme-ftc-skyhighmining.bat
MNCscript =
NBLscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript = phnx-ltc-skyhighmining.bat
RYCscript =
TRCscript =
WDCscript = wdc-ftc-skyhighmining.bat
YACscript =

VANITYscript =


################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeAMC = 0
feeARG = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeCNC = 0
feeDBL = 0
feeDGC = 15
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 5
feeGLD = 0
feeHYC = 0
feeJKC = 0
feeLKY = 5
feeLTC = 5
feeMEC = 5
feeMEM = 5
feeMNC = 0
feeNBL = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 5
feeRYC = 0
feeTRC = 0
feeWDC = 15
feeYAC = 0


################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinchoose, coinotron, dustcoin, cryptoswitcher

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=cryptsy, btce, bter, vircurex

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=5800000
hashrate_scrypt=5800000


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it.  
tradeMultiplier = 1.01


################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = True
cryptsyPublicKey =
cryptsyPrivateKey =

# Enable the coins you want to sell here.
sellAMC = False
sellARG = False
sellBQC = False
sellBTB = False
sellBTE = False
sellCNC = False
sellDBL = False
sellDGC = True
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGLD = False
sellHYC = False
sellJKC = False
sellLKY = True
sellLTC = False
sellMEC = True
sellMEM = True
sellMNC = False
sellNBL = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = True
sellRYC = False
sellTRC = False
sellWDC = True
sellYAC = False
mineDVC = False
mineIXC = False
mineNMC = False

I have all of those .bat files in my cgminer folder along with all of the cryptoswitcher items.  I am sure I am missing something simple I just can't figure it out.

If anybody has any ideas It would be greatly welcomed.

I hate to bump my own post but this has my head spinning.  I have tried to google and research this issue with no answer anywhere that I can find.  I would  really love to get this working to try out the program.  Again any and all advice is welcome.  Thanks again in advance.

stupid question but you have the .conf file in the same directory as the .py file right? Also make sure the extension is .conf and not .config
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 02, 2013, 03:41:18 AM
 #148

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd c:\cryptoswitcher

c:\CryptoSwitcher>python cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>cryptoswitcher.py
ERROR: Cannot read source from config file.

c:\CryptoSwitcher>

I followed the steps in this thread and have everything installed correctly to my knowledge.  Here is my cryptoswitcher.config file:

Code:
# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineAMC = False
mineARG = False
mineBQC = False
mineBTB = False
mineBTC = False
mineCNC = False
mineDGC = True
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = True
mineHYC = False
mineLKY = True
mineLTC = True
mineMEM = True
mineMNC = False
mineNBL = False
mineNVC = False
minePPC = False
minePXC = True
mineTRC = False
mineWDC = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
mineBTE = False
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = False
mineIXC = False
mineNMC = False

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
AMCscript =
ARGscript =
BQCscript =
BTBscript =
BTCscript = bitcoin.bat
BTEscript =
CNCscript =
DBLscript =
DGCscript = dgc-ftc-skyhighmining.bat
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript = ftc-skyhighmining.bat
GLDscript =
HYCscript =
JKCscript =
LKYscript = lcky-ltc-skyhighmining.bat
LTCscript = ltc-skyhighmining.bat
MECscript = mec-ltc-skyhighmining.bat
MEMscript = meme-ftc-skyhighmining.bat
MNCscript =
NBLscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript = phnx-ltc-skyhighmining.bat
RYCscript =
TRCscript =
WDCscript = wdc-ftc-skyhighmining.bat
YACscript =

VANITYscript =


################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeAMC = 0
feeARG = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeCNC = 0
feeDBL = 0
feeDGC = 15
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 5
feeGLD = 0
feeHYC = 0
feeJKC = 0
feeLKY = 5
feeLTC = 5
feeMEC = 5
feeMEM = 5
feeMNC = 0
feeNBL = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 5
feeRYC = 0
feeTRC = 0
feeWDC = 15
feeYAC = 0


################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinchoose, coinotron, dustcoin, cryptoswitcher

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=cryptsy, btce, bter, vircurex

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=5800000
hashrate_scrypt=5800000


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it.  
tradeMultiplier = 1.01


################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = True
cryptsyPublicKey =
cryptsyPrivateKey =

# Enable the coins you want to sell here.
sellAMC = False
sellARG = False
sellBQC = False
sellBTB = False
sellBTE = False
sellCNC = False
sellDBL = False
sellDGC = True
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGLD = False
sellHYC = False
sellJKC = False
sellLKY = True
sellLTC = False
sellMEC = True
sellMEM = True
sellMNC = False
sellNBL = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = True
sellRYC = False
sellTRC = False
sellWDC = True
sellYAC = False
mineDVC = False
mineIXC = False
mineNMC = False

I have all of those .bat files in my cgminer folder along with all of the cryptoswitcher items.  I am sure I am missing something simple I just can't figure it out.

If anybody has any ideas It would be greatly welcomed.

I hate to bump my own post but this has my head spinning.  I have tried to google and research this issue with no answer anywhere that I can find.  I would  really love to get this working to try out the program.  Again any and all advice is welcome.  Thanks again in advance.

stupid question but you have the .conf file in the same directory as the .py file right? Also make sure the extension is .conf and not .config

Yep and yep.  Still no dice.

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
July 02, 2013, 04:06:12 PM
 #149

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

What version of Windows is this...Windows 8?  Windows 7 SP1 is 6.1.7601.

Quote
C:\WINDOWS\system32>cd c:\cryptoswitcher

I had a bunch of problems migrating from WinXP to Win7 with the way Win7 screws with file permissions.  I've never used Win8, but I wouldn't be surprised to find it's broken in the same way.  Directories created in the root directory are created with permissions for nobody.  Try this:

1) Open an Explorer window to C:\. Create a new directory.
2) Open a Cygwin shell prompt. Type this:
Code:
cd /cygdrive/c/ && ls -l | grep foo

Permissions should look something like "drwxr-xr-x+" if it had been properly created.  Instead, you'll probably see "d---------+", which means nobody can access it (or files within it).  Check permissions on the files in your CryptoSwitcher directory...I wouldn't be surprised if
Code:
ls -l /cygdrive/c/cryptoswitcher
reveals that none of the files are readable. When CryptoSwitcher then tries to load its config file, it's told it can't, which is why you're getting that error.

I'd recommend running CryptoSwitcher (and your miner) from "C:\Program Files (x86)" (or "C:\Program Files" on a 32-bit system).  Open a Cygwin administrator prompt (find the Cygwin Terminal shortcut in the start menu, right-click it, and click "Run as administrator") and use this to move it and (hopefully) fix permissions to something useful:

Code:
cd c:
mv cryptoswitcher Program\ Files\ \(x86\)/CryptoSwitcher
chmod 755 Program\ Files\ \(x86\)/CryptoSwitcher
chmod 644 Program\ Files\ \(x86\)/CryptoSwitcher/*


Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 03, 2013, 03:09:59 AM
 #150

It is windows 8, upgraded from 7.  It was like you guessed, the permissions were not readable.  I did all the steps that you listed and it did move the file but I am still getting the same error.  I have been trying to modify that line of text you had me try to show the permissions of the cryptoswitcher folder to check if the permissions were changed when it was moved but I can't get it right.

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
coinstopper
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
July 03, 2013, 04:27:33 AM
 #151

stupid question but you have the .conf file in the same directory as the .py file right? Also make sure the extension is .conf and not .config

I thought the extension was .config, not .conf.
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 03, 2013, 05:42:38 AM
 #152

Hey guys I have been trying to get this running for a few hours now and I can't for the life of me figure out what I am missing here.  I keep getting this error message:

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

What version of Windows is this...Windows 8?  Windows 7 SP1 is 6.1.7601.

Quote
C:\WINDOWS\system32>cd c:\cryptoswitcher

I had a bunch of problems migrating from WinXP to Win7 with the way Win7 screws with file permissions.  I've never used Win8, but I wouldn't be surprised to find it's broken in the same way.  Directories created in the root directory are created with permissions for nobody.  Try this:

1) Open an Explorer window to C:\. Create a new directory.
2) Open a Cygwin shell prompt. Type this:
Code:
cd /cygdrive/c/ && ls -l | grep foo

Permissions should look something like "drwxr-xr-x+" if it had been properly created.  Instead, you'll probably see "d---------+", which means nobody can access it (or files within it).  Check permissions on the files in your CryptoSwitcher directory...I wouldn't be surprised if
Code:
ls -l /cygdrive/c/cryptoswitcher
reveals that none of the files are readable. When CryptoSwitcher then tries to load its config file, it's told it can't, which is why you're getting that error.

I'd recommend running CryptoSwitcher (and your miner) from "C:\Program Files (x86)" (or "C:\Program Files" on a 32-bit system).  Open a Cygwin administrator prompt (find the Cygwin Terminal shortcut in the start menu, right-click it, and click "Run as administrator") and use this to move it and (hopefully) fix permissions to something useful:

Code:
cd c:
mv cryptoswitcher Program\ Files\ \(x86\)/CryptoSwitcher
chmod 755 Program\ Files\ \(x86\)/CryptoSwitcher
chmod 644 Program\ Files\ \(x86\)/CryptoSwitcher/*



After I tried your steps and it still didnt work on my windows 8 machine I decided to start from scratch on a fresh windows 7 install on another machine.  All went great until I got to the part of starting cryptoswitcher and guess what... I got the same error.  Now i really have no idea what's going on since it should not be permission issues since I am using a fresh install of windows 7 and it comes up with the exact same error.  I am basically giving up on the hope that I will be able to get this to work.  It does seem like an awesome idea but it looks like i'll be sticking to just switching all my miners over manually  Cry

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
kenshin23
Member
**
Offline Offline

Activity: 66
Merit: 10



View Profile
July 04, 2013, 05:01:10 AM
 #153

It seems Cryptsy is moving some coins to secondary exchage (I imagine that is coin/LTC) so that would mean CS wouldn't support them, right?

If so, here are some of the coins they're listing, to give a heads up:

    DBL/LTC
    DVC/LTC
    EZC/LTC
    GLD/LTC
    JKC/LTC
    MEM/LTC
    RYC/LTC

Here's the message that appears when I try to exchange, let's say, MEM:

MemeCoin market will be moving from Primary to Secondary. For the next few days, both markets will be open, then MEM/BTC market will close

Donations are very welcome! 1LJ7k5b71cYFrBVQ7zYSBJePZ7EuFBFr5a
Pyramining referral links: http://pyramining.com/referral/be4kfg2m7 | http://pyramining.com/referral/yghmk7r9f
Bitrated user: kenshin23.
skyhigh2004
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile
July 06, 2013, 03:39:59 PM
 #154

Well I just gave up getting this to work entirely as it was never really designed for windows in the first place.  If you are on windows and are still looking for a profitability switching program MultiMiner from https://bitcointalk.org/index.php?topic=248173.0 works flawlessly with a few less options and only takes about 5 mins to setup on windows. 

BTC:157BZV5z5dEdEoE5KSr5D7CQGXamLpsZ7n  LTC:LYCf5PnQpXCCmpR4ka3mR8DFDe5hKhTdfc
MEC:MAgTT8QdhVCkgHTkUoKvs4w1TQvv3NU99v  DGC:D8Ubh9oYTpSe1HEBptY8wf6ZrPpj7bhkV5
FTC:6hb1VsGzkej4kSsssGA4FMnkCoVp7PLi8D  PXC:PqQwQKJoYxGSVrKtVfDa5aaJVL9Yevhb2b
leopard2
Legendary
*
Offline Offline

Activity: 1372
Merit: 1014



View Profile
July 07, 2013, 12:24:10 AM
 #155

This is way too much trouble

I can't understand why there are so many pools, and compare sites, why is there not a pool that simply collects SHA256 and Scrypt cycles, and does all the magic in the background, and pays you in a destination crypto?  Huh

Truth is the new hatespeech.
juhakall
Sr. Member
****
Offline Offline

Activity: 657
Merit: 250


View Profile WWW
July 07, 2013, 03:42:49 AM
 #156

This is way too much trouble

I can't understand why there are so many pools, and compare sites, why is there not a pool that simply collects SHA256 and Scrypt cycles, and does all the magic in the background, and pays you in a destination crypto?  Huh

There is a pool that always tries to mine the most profitable coin. https://www.multipool.in. That being said, you could also use CryptoSwitcher to setup a similar port forwarding service yourself, and pick only the coins that you want to mine. There's nothing forcing you to touch the miners when a coin change is triggered in CryptoSwitcher, you could just as well change a port forward to point to a different pool or coin daemon, and always keep your miners pointed to the port that's being forwarded. Just like multipool is doing it.

I'm currently developing an experimental social AI platform
educatedwarrior
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
July 14, 2013, 03:08:47 PM
 #157

Anybody working on an API for Coins-E?    This exchange allows you to trade most of the Cryptocurrencies for Litecoin instead of Bitcoin.     

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
July 22, 2013, 11:05:08 AM
 #158

Users of CryptoSwitcher will likely be interested in MiddleCoin, which has just started: https://bitcointalk.org/index.php?topic=259649
Gorets
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
July 27, 2013, 04:11:51 PM
Last edit: July 27, 2013, 04:38:21 PM by Gorets
 #159

Few days not work CryptoSwitcher with Cryptsy API, its problem with CryptoSwitcher or  Cryptsy? (get coin rates)
BitOmni
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
July 28, 2013, 04:19:40 PM
 #160

May need to try this out
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
July 29, 2013, 05:42:51 AM
 #161

Few days not work CryptoSwitcher with Cryptsy API, its problem with CryptoSwitcher or  Cryptsy? (get coin rates)

It's been working for me. Cryptsy had some DDoS problems a few days ago that could crash CryptoSwitcher, but I committed some changes to PyCryptsy to make it more resilient. You might want to make sure you're using the latest code.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Gorets
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
July 29, 2013, 02:52:14 PM
 #162

I have last version, if i use source cryptoswitcher/cryptsy i have:
<<< Round 1 >>>
time: 2013-07-29 17:51:28
getting data... done                                                           
comparing profitabilty...
------------------------------------
     PPCoin:   0  (fee:  0, src: --)
  Doubloons:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
     Bitbar:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Bytecoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Bitcoin: 100  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Argentum:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
 Phenixcoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Mincoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Freicoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    BBQCoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
     Franko:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Elacoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
  RoyalCoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
Feathercoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    CHNCoin:   0  (fee:  0, src: --)
  Luckycoin:   0  (fee:  0, src: --)
     Nibble:   0  (fee:  0, src: --)
     YaCoin:   0  (fee:  0, src: --)
DigitalCoin:   0  (fee:  0, src: --)
   Megacoin:   0  (fee:  0, src: --)
   Memecoin:   0  (fee:  0, src: --)
AmericanCoin:   0  (fee:  0, src: --)
  Worldcoin:   0  (fee:  0, src: --)
   NovaCoin:   0  (fee:  0, src: --)
  Powercoin:   0  (fee:  0, src: --)
   Junkcoin:   0  (fee:  0, src: --)
  Hypercoin:   0  (fee:  0, src: --)
  Bottlecap:   0  (fee:  0, src: --)
    GLDCoin:   0  (fee:  0, src: --)
    Devcoin:   0  (fee:  0, src: --)
   Litecoin:   0  (fee:  0, src: --)
   Fastcoin:   0  (fee:  0, src: --)
     IXCoin:   0  (fee:  0, src: --)
   NameCoin:   0  (fee:  0, src: --)
------------------------------------
=> Best: 100, mining Bitcoin

few days ago worked normal.
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
July 29, 2013, 04:15:48 PM
 #163

Cryptsy changes the URL for their API.  I wonder if that needs to change.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
July 31, 2013, 05:29:26 AM
 #164

I have last version, if i use source cryptoswitcher/cryptsy i have:

I see...I've been using coinchoose as the data source. Cryptsy changed its public API URL, and it's also necessary to filter out *->LTC pairings from the returned data.  I've made the appropriate changes and put them up on GitHub.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
digeros
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250



View Profile
August 06, 2013, 03:23:25 AM
 #165

I have last version, if i use source cryptoswitcher/cryptsy i have:
<<< Round 1 >>>
time: 2013-07-29 17:51:28
getting data... done                                                           
comparing profitabilty...
------------------------------------
     PPCoin:   0  (fee:  0, src: --)
  Doubloons:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
     Bitbar:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Bytecoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Bitcoin: 100  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Argentum:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
 Phenixcoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Mincoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
   Freicoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    BBQCoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
     Franko:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    Elacoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
  RoyalCoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
Feathercoin:   0  (fee:  0, src: --)                                                                                                                                                                                                                                         
    CHNCoin:   0  (fee:  0, src: --)
  Luckycoin:   0  (fee:  0, src: --)
     Nibble:   0  (fee:  0, src: --)
     YaCoin:   0  (fee:  0, src: --)
DigitalCoin:   0  (fee:  0, src: --)
   Megacoin:   0  (fee:  0, src: --)
   Memecoin:   0  (fee:  0, src: --)
AmericanCoin:   0  (fee:  0, src: --)
  Worldcoin:   0  (fee:  0, src: --)
   NovaCoin:   0  (fee:  0, src: --)
  Powercoin:   0  (fee:  0, src: --)
   Junkcoin:   0  (fee:  0, src: --)
  Hypercoin:   0  (fee:  0, src: --)
  Bottlecap:   0  (fee:  0, src: --)
    GLDCoin:   0  (fee:  0, src: --)
    Devcoin:   0  (fee:  0, src: --)
   Litecoin:   0  (fee:  0, src: --)
   Fastcoin:   0  (fee:  0, src: --)
     IXCoin:   0  (fee:  0, src: --)
   NameCoin:   0  (fee:  0, src: --)
------------------------------------
=> Best: 100, mining Bitcoin

few days ago worked normal.

THis looks like a great tool but can I configure it to only mine the Coins I am interested in (ie. Bitcoin vs. Bitbar vs. NameCoin vs AnonCoin vs PhilosopherStones (once on an exchange))
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 26, 2013, 09:09:20 PM
 #166

Is there a precompiled version so i dont have to crawl through all this linux things? Or maybe a tutorial how to build? With dependencies alone i wont get a result.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
August 27, 2013, 12:33:56 AM
 #167

Is there a precompiled version so i dont have to crawl through all this linux things? Or maybe a tutorial how to build? With dependencies alone i wont get a result.

CryptoSwitcher itself is written in Python; there's nothing to compile.  A short while back, I had it running on Windows and (IIRC) didn't have to compile anything to get its dependencies set up either.  Just make sure you're using Python 2.7, not 3.x.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 27, 2013, 12:03:58 PM
 #168

Is there a precompiled version so i dont have to crawl through all this linux things? Or maybe a tutorial how to build? With dependencies alone i wont get a result.

CryptoSwitcher itself is written in Python; there's nothing to compile.  A short while back, I had it running on Windows and (IIRC) didn't have to compile anything to get its dependencies set up either.  Just make sure you're using Python 2.7, not 3.x.

Thanks.

Is cryptoswitcher still rewarding for ASIC-User? I see a big list of scrypt coins but only one coint better than bitcoin and this coin lost half of its advantage the last day. So would it be worth the effort for me yet? I now mine at bitparking.com and get 2% more in total because of merged mining.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
area (OP)
Full Member
***
Offline Offline

Activity: 177
Merit: 100


View Profile
August 27, 2013, 12:53:05 PM
 #169

To be honest, most users will see the same return with a much lower effort to set up by using middlecoin.com.
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 27, 2013, 02:17:37 PM
 #170

To be honest, most users will see the same return with a much lower effort to set up by using middlecoin.com.

Is middlecoin for ASIC-User too? I have read that multipool and middlecoin thought about it but when i read on their websites i only see scrypt mining.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
cyclops
Legendary
*
Offline Offline

Activity: 1162
Merit: 1001



View Profile
August 27, 2013, 02:28:58 PM
 #171

Ill test it out, seems interesting.
juve4v
Hero Member
*****
Offline Offline

Activity: 505
Merit: 500


View Profile
August 27, 2013, 02:31:36 PM
 #172

Scrypt mining only for middlecoin, but I bet we will see a lot of new sha256 coins  in the next months Wink
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
August 27, 2013, 02:39:47 PM
 #173

To be honest, most users will see the same return with a much lower effort to set up by using middlecoin.com.

I think Middlecoin (and Multipool) have their place, but the nice thing about CrytpoSwitcher is you can alter the code to mine the second / third most profitable and not be subject to the market / depth risk associated with mining the top coin.
juve4v
Hero Member
*****
Offline Offline

Activity: 505
Merit: 500


View Profile
August 27, 2013, 03:06:08 PM
 #174

To be honest, most users will see the same return with a much lower effort to set up by using middlecoin.com.

I think Middlecoin (and Multipool) have their place, but the nice thing about CrytpoSwitcher is you can alter the code to mine the second / third most profitable and not be subject to the market / depth risk associated with mining the top coin.

Have you tried cgwatcher ?
sal002
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile WWW
August 27, 2013, 03:13:32 PM
 #175

To be honest, most users will see the same return with a much lower effort to set up by using middlecoin.com.

I think Middlecoin (and Multipool) have their place, but the nice thing about CrytpoSwitcher is you can alter the code to mine the second / third most profitable and not be subject to the market / depth risk associated with mining the top coin.

Have you tried cgwatcher ?

Isn't that for Windows?
juve4v
Hero Member
*****
Offline Offline

Activity: 505
Merit: 500


View Profile
August 27, 2013, 03:15:27 PM
 #176

Does it matter the color of money to you ?
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 27, 2013, 05:31:33 PM
 #177

So there is no pool for sha256 yet? Only possibility would be using cryptoswitcher. But is it rewarding at all for sha256?

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
August 28, 2013, 03:19:26 PM
 #178

So there is no pool for sha256 yet? Only possibility would be using cryptoswitcher. But is it rewarding at all for sha256?

Freicoin and Zetacoin have blipped above Bitcoin recently, sometimes by a considerable margin.  I have a couple of Jalapeños mining through CryptoSwitcher.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 28, 2013, 06:45:45 PM
 #179

So there is no pool for sha256 yet? Only possibility would be using cryptoswitcher. But is it rewarding at all for sha256?

Freicoin and Zetacoin have blipped above Bitcoin recently, sometimes by a considerable margin.  I have a couple of Jalapeños mining through CryptoSwitcher.

I watched zetacoin too... but i saw it lost its better position in hours up to the level of bitcoin mining. Thats why im wondering if its worth the effort...

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
August 29, 2013, 04:32:36 AM
 #180

Is cryptoswitcher still rewarding for ASIC-User? I see a big list of scrypt coins but only one coint better than bitcoin and this coin lost half of its advantage the last day. So would it be worth the effort for me yet? I now mine at bitparking.com and get 2% more in total because of merged mining.

I've only had my Jalapeños on it since this morning, but it's already reporting a median ~150% return for the Zetacoin mining it's done.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
August 30, 2013, 10:29:35 PM
 #181

Is cryptoswitcher still rewarding for ASIC-User? I see a big list of scrypt coins but only one coint better than bitcoin and this coin lost half of its advantage the last day. So would it be worth the effort for me yet? I now mine at bitparking.com and get 2% more in total because of merged mining.

I've only had my Jalapeños on it since this morning, but it's already reporting a median ~150% return for the Zetacoin mining it's done.

Hm. I tried mining zetacoins the last 24 hours too. http://www.alloscomp.com/bitcoin/calculator told me with mining bitcoins i should have made 0.34BTC. I received 28953 Zetacoins. Even at 0.000008BTC exchange price this would translate to 0.23BTC only. So i dont see anywhere near the 150% that zetacoin often stands at dustcoin.

The pool states nearly the hashrate cgminer states. And only 0.6% invalid. But cgminer shows me 13% Rejected shares. Now what to trust? I mean even when the pool counts rejected shares too it would mean i effectively mine with less hashpower than normal since the calculations on coinchoose are based on clean hashing without errors.

Im not sure whats wrong but i think cryptoswitcher and its depending websites make an error by not including a factor of some kind

Im back at bitcoin mining for the moment.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
marcetin
Legendary
*
Offline Offline

Activity: 1124
Merit: 1013


ParalleCoin's ruler from the shadow


View Profile WWW
September 05, 2013, 01:17:12 AM
 #182

Great tool area Smiley

This could be useful to use with it  Crypto-currency directory

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  PLAN 9   FROM CRYPTO SPACE    PARALLELCOIN 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My fellow members, ask not what the community can do for you, ask what you can do for the community. CCW-WebRes-BitStickers-AnonStickers.shop------------------------------ ParallelCoin

The Secret of Success is to find out where people are going.. and get there first! - Mark Twain
Bitrated user: marcetin.
marcetin
Legendary
*
Offline Offline

Activity: 1124
Merit: 1013


ParalleCoin's ruler from the shadow


View Profile WWW
September 09, 2013, 05:19:39 PM
Last edit: September 13, 2013, 06:32:04 PM by marcetin
 #183

I am testing this tool on Centos, it start ok, .sh of best profitable coin start, but it wont switch automaticly to best profitable coin.
I have set idletime = 3 and watching but it did not change coin anyhow.
Where am I wrong?

edit

I was wrong on many steps Smiley

First my centos did not have nc and screen and .sh script did not start well.
Second cgminer API was configured to port 80, because I use Anubis to watch my rigs.
At the end I figure out to make switcher start cgminer in other, new window instead of screen command, so I made this start script:
Code:
#!/bin/bash
echo "{\"command\":\"quit\"}" | nc 127.0.0.1 80
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export DISPLAY=:0
cd /cg
gnome-terminal -e "./cgminer -c /conf/ftc.conf"

At last CryptoSwitcher work for me now on one rig.
I will install it on the second rig and try to write down everything that it is done so I can post it here if some one have similar problems.

Cheers! Smiley

edit again Smiley
It was working but not good at all, sometimes it switch good sometimes it start another instance of cgminer without shutdown one that is running and than everything for some reason stop.
Also I did not like fact that every time on switch GPU's are turned off and than turned on, so I come out with solution that now works perfect for me.
I made just one instance of cgminer with just one config file, in which are pools for all coins, because I mine just scrypt based coins it works, settings are the same.
In .sh that switcher start I put just this:
Code:
echo "switchpool|1" | nc 127.0.0.1 80
where number in "switchpool|1" represent ID of pool in cgminer configuration.
So now it mining and switching good, even without stoping GPU's!

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  PLAN 9   FROM CRYPTO SPACE    PARALLELCOIN 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My fellow members, ask not what the community can do for you, ask what you can do for the community. CCW-WebRes-BitStickers-AnonStickers.shop------------------------------ ParallelCoin

The Secret of Success is to find out where people are going.. and get there first! - Mark Twain
Bitrated user: marcetin.
dddbtc
Sr. Member
****
Offline Offline

Activity: 490
Merit: 250



View Profile
September 16, 2013, 05:38:21 AM
 #184



I'm an avalon ASIC owner (recieved my 20chip miner very late) so I thought I'd give cryptoswitcher a try. Got the clock speed set nice 'n high too.  Will post my results.  SebastianJu, I would change my data source to coinchoose rather than dustcoin.  I have found that dustcoin's numbers to be off *somehow* too.  Can't quite put my finger on it though.  It will be interesting to see how coinchoose stacks up against an ASIC.  Your choice of pools can have a pretty big effect as well.

Would be nice to see tigercoin/butterflycoin support.  I'll mine anything if its mathmatically calculated, has quick confirms, and can be auto-sold at cryptsy for btc.  Can anyone edit the github?  I should see how my python skills are and edit github.

My hashrate will get much higher than it would mining btc briefly every few minutes.
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
September 16, 2013, 05:54:27 AM
 #185

I made just one instance of cgminer with just one config file, in which are pools for all coins, because I mine just scrypt based coins it works, settings are the same.
In .sh that switcher start I put just this:
Code:
echo "switchpool|1" | nc 127.0.0.1 80
where number in "switchpool|1" represent ID of pool in cgminer configuration.
So now it mining and switching good, even without stoping GPU's!

That's a brilliant idea, Thanks!
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
September 16, 2013, 05:06:27 PM
 #186


So looking at the script.

If I have 2 exchanges enabled... it will attempt to sell the balance of my current coin on them both.

Obv doesn't complete if I have no balance

MasterX
Member
**
Offline Offline

Activity: 88
Merit: 10



View Profile
September 18, 2013, 03:31:09 PM
 #187

For anyone who's interested.

I've added some coins and included batch file samples the for coins i use.
I have also modified the batch file for windows, makes it easier to implement on existing installs.
Take a look at the bitcoin example to see what i mean --> https://github.com/MasterX1582/CryptoSwitcher/blob/master/bitcoin.bat.sample

The coins i have added are Asiccoin, ButterflyCoin and TigerCoin.

Have fun mining with it!

| Donations: 1MegaXG1bd6mTEQCdAMjVzGexcYrF5LJKv |
mattle74
Full Member
***
Offline Offline

Activity: 163
Merit: 100


View Profile
September 22, 2013, 01:08:43 AM
 #188


It was working but not good at all, sometimes it switch good sometimes it start another instance of cgminer without shutdown one that is running and than everything for some reason stop.
Also I did not like fact that every time on switch GPU's are turned off and than turned on, so I come out with solution that now works perfect for me.
I made just one instance of cgminer with just one config file, in which are pools for all coins, because I mine just scrypt based coins it works, settings are the same.
In .sh that switcher start I put just this:
Code:
echo "switchpool|1" | nc 127.0.0.1 80
where number in "switchpool|1" represent ID of pool in cgminer configuration.
So now it mining and switching good, even without stoping GPU's!

I got CryptoSwitcher up and running on Linux great last night. It's really awesome with your suggestion to just load all of your pools in the config file and then just have each script run the switchpool command through cgminer's API. Right now I only have 1 Linux box and my main miner runs on Windows 7. I use CGWatcher to profit switch but I hate that it has to close and reopen a cgminer instance each time. I personally think it leads to instability. I got CryptoSwitcher running on Windows, but I can't get the same switchpool command to work. I downloaded a copy of netcat, but when I run the command, I get this error:

STATUS=E,When=1379746858,Code=14,Msg=Invalid command,Description=cgminer 3.2.1|

I have --api-listen, --api-port and --api-allow set in the cgminer config file. netcat is obviously talking to cgminer since it's getting an error response from it. Any suggestions?

Thanks to everyone!
MasterX
Member
**
Offline Offline

Activity: 88
Merit: 10



View Profile
September 22, 2013, 05:49:21 AM
 #189


It was working but not good at all, sometimes it switch good sometimes it start another instance of cgminer without shutdown one that is running and than everything for some reason stop.
Also I did not like fact that every time on switch GPU's are turned off and than turned on, so I come out with solution that now works perfect for me.
I made just one instance of cgminer with just one config file, in which are pools for all coins, because I mine just scrypt based coins it works, settings are the same.
In .sh that switcher start I put just this:
Code:
echo "switchpool|1" | nc 127.0.0.1 80
where number in "switchpool|1" represent ID of pool in cgminer configuration.
So now it mining and switching good, even without stoping GPU's!

I got CryptoSwitcher up and running on Linux great last night. It's really awesome with your suggestion to just load all of your pools in the config file and then just have each script run the switchpool command through cgminer's API. Right now I only have 1 Linux box and my main miner runs on Windows 7. I use CGWatcher to profit switch but I hate that it has to close and reopen a cgminer instance each time. I personally think it leads to instability. I got CryptoSwitcher running on Windows, but I can't get the same switchpool command to work. I downloaded a copy of netcat, but when I run the command, I get this error:

STATUS=E,When=1379746858,Code=14,Msg=Invalid command,Description=cgminer 3.2.1|

I have --api-listen, --api-port and --api-allow set in the cgminer config file. netcat is obviously talking to cgminer since it's getting an error response from it. Any suggestions?

Thanks to everyone!
I personally dont have any of the problems mentioned above. Once i had 2 cgminers running, but then i changed some stuff and now everything is running great, i have 7 block erupters running on a linux host and 2 block erupters on a windows host; Both of them running fine,
I even noticed a small increase of income, but i guess thats what its supposed to do...??
But, again, i'm not using any gpu or cpu anymore so i can not speak for basic hardware.

| Donations: 1MegaXG1bd6mTEQCdAMjVzGexcYrF5LJKv |
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
October 07, 2013, 09:57:16 PM
 #190

A couple of days or so ago, I merged some pull requests that had been sitting around a while.  I also included a PHP script that uses the cgminer API to switch pools.  Others have posted about using just one cgminer.conf with every pool and issuing a switchpool call.  My script takes a pool URL, miner name, and password, adds them to the current list of pools, and (optionally) removes all of the other pools.  In your pool-switching shell script, you then call my script once for each pool you want to use for a coin, with the "clear" parameter included on the first call. This allows you to have multiple pools configured for a coin as a backup.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
Temuujin
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 25, 2013, 10:35:57 PM
 #191

Hi. Noob here.
I downloaded this program 2 weeks ago, played with it, and set it up to mine the various SHA-256 coins in the list.
But within those two weeks, coins have disappeared (like BFC), and new coins have popped up (OSC and the new UNO to name a few).

Could someone please help me understand how make this program look at CoinWarz site and the CoinEx.pw site, first, before looking at the other exchanges already in this program?
Also, how do I implement new coins? For instance OSC and the new UNO coins are only listed on the COINEX exchange (and coinwarz site) and I want to use them with the CryptoSwitcher program.

Do I use these in the code?
https://coinex.pw/api/v1/trade_pairs
https://coinex.pw/api/v1/ticker

Thank you for your help.
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 18, 2013, 06:45:18 PM
 #192

Looks like nice idea!

It could be interesting if somebody could add this functionality to minepeon raspberry pi mining distro.
https://bitcointalk.org/index.php?topic=137934.0;topicseen

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 21, 2013, 04:41:31 PM
 #193

Do you think auto switching of the coin mining pool method is more profitable or is it just a theory?
And real values are different? Like frequent change of exchange rate, long time to get full hash rate efficiency in just switched pool, other problems, etc.?
Delay caused in transferring of the coins to exchange, etc.? Could that finally cause lower earnings finally?

What are your experiences?

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
AnhBen
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile WWW
December 25, 2013, 08:58:03 PM
 #194

What is CryptoSwitcher?
You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.

How can I used it?
The source is available at https://github.com/area/CryptoSwitcher. Clone it, and then edit the cryptoswitcher.config.sample file as it instructs in the comments. If you wish to use BTC-E, you will need to edit the 'key.sample' file to contain your API key, and move it to 'key'. The README included should be a bit more comprehensive than the instructions here. If you already have scripts to start and stop mining, then setup should be easy for you.

How does it work?
The actual maths is done by the websites:

http://dustcoin.com/mining
http://coinchoose.com
http://fizzisist.com (Vanity address mining only - down at the moment?)

This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.

Isn't this a terrible idea?
Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:
  • This would tie the value of all alt-coins to BTC.
  • It would cause massive difficulty spikes as retargets happen, causing mining an alt-coin to become less profitable and hoppers to mine elsewhere. The dedicated miners on that coin are then left with a much higher difficulty than they should have, and struggle to find blocks. We have seen this happen already with TRC, which is still struggling to deal with the aftermath

The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.

I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.

Features
  • Support for both Dustcoin and Coinchoose, and all the coins they list (though only one site may be used at a time)
  • Takes merged mining into account if you say its available
  • Will automatically sell coins for BTC on BTC-E and/or Vircurex if you choose.

Todo
  • Vircurex support
  • Use both Dustcoin and Coinchoose at the same time?
  • Use the CGMiner API to switch between coins with the same hashing algorithm in one CGminer instance. If a user were to allow remote API access, then this could in theory be provided as a service, without the user having to run the script themselves.
  • Monitor miners for dead pools.


Looks like this project is abandoned?

Twitter @iKcul
Best news agg: http://KculShare.com
XPM: AVmbdubJMrEDBgpvxaXGTqtdB8C2CRSk7f
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 26, 2013, 10:21:36 AM
Last edit: December 26, 2013, 10:42:09 AM by corsaro
 #195

BitBar and BBQCoin added to Cryptoswitcher. SolidCoin removed.

Maybe you'd be interested in supporting this site: http://www.coinwarz.com/cryptocurrency

these lines can help you...   I addedd support to coinwarz

cryptoSwitcher.py:

(replace YOUR_COINWARZ_API_KEY with your api key)

Code:
  
from bs4 import BeautifulSoup
import urllib2
import time
import subprocess
import numpy as np
import sys
# Ugly hack so git submodule init is adequate.
sys.path.insert(0, './btce-api/')
import btceapi
sys.path.insert(0, './pyvircurex/')
import vircurex as vircurexapi
sys.path.insert(0, './PyCryptsy/')
from PyCryptsy import PyCryptsy

import ConfigParser

import simplejson
import socket

# -----------
# Hopefully nothing below this needs editing.
# -----------

class Coin:
    def __init__(self, name):
        self.ratio=0 # assume totally unprofitable unless otherwise shown to be the case.
        self.willingToMine = False
        self.miningNow = False
        self.merged = False
        self.willingToSell = False
        self.command = '' # the command that is run when we want to mine this coin.
        self.name = name
        self.cnt = 0
        self.median = 0
        self.m = 0
        self.h = 0
        self.fee = 0
        self.source = '--'
        self.price = 0.0
        self.diff = 9999999999.9 # start off with ridiculously high diff so we dont mine the wrong coin
        self.reward = 0
        self.algo = ""

coins = {}
coins['alf'] =  Coin('AlphaCoin')
coins['bet'] =  Coin('Betacoin')
coins['uno'] =  Coin('Unobtanium')
coins['amc'] =  Coin('AmericanCoin')
coins['anc'] =  Coin('Anoncoin')
coins['arg'] =  Coin('Argentum')
coins['asc'] =  Coin('Asiccoin')
coins['bfc'] =  Coin('ButterflyCoin')
coins['bqc'] =  Coin('BBQCoin')
coins['btb'] =  Coin('Bitbar')
coins['btc'] =  Coin('Bitcoin')
coins['bte'] =  Coin('Bytecoin')
coins['btg'] =  Coin('Bitgem')
coins['cap'] =  Coin('Bottlecap')
coins['cgb'] =  Coin('CryptogenicBullion')
coins['cnc'] =  Coin('CHNCoin')
coins['crc'] =  Coin('Craftcoin')
coins['dbl'] =  Coin('Doubloons')
coins['dgc'] =  Coin('DigitalCoin')
coins['emd'] =  Coin('Emerald')
coins['elc'] =  Coin('Elacoin')
coins['ezc'] =  Coin('EZCoin')
coins['frc'] =  Coin('Freicoin')
coins['frk'] =  Coin('Franko')
coins['fst'] =  Coin('Fastcoin')
coins['ftc'] =  Coin('Feathercoin')
coins['gdc'] =  Coin('Grandcoin')
coins['gld'] =  Coin('GLDCoin')
coins['hbn'] =  Coin('Hobonickel')
coins['hyc'] =  Coin('Hypercoin')
coins['kgc'] =  Coin('Krugercoin')
coins['jkc'] =  Coin('Junkcoin')
coins['lbw'] =  Coin('Lebowski')
coins['lky'] =  Coin('Luckycoin')
coins['ltc'] =  Coin('Litecoin')
coins['mec'] =  Coin('Megacoin')
coins['mem'] =  Coin('Memecoin')
coins['mnc'] =  Coin('Mincoin')
coins['nbl'] =  Coin('Nibble')
coins['nrb'] =  Coin('NoirBits')
coins['nvc'] =  Coin('NovaCoin')
coins['ppc'] =  Coin('PPCoin')
coins['pwc'] =  Coin('Powercoin')
coins['pxc'] =  Coin('Phenixcoin')
coins['ryc'] =  Coin('RoyalCoin')
coins['spt'] =  Coin('Spot')
coins['sbc'] =  Coin('StableCoin')
coins['tgc'] =  Coin('TigerCoin')
coins['trc'] =  Coin('TerraCoin')
coins['wdc'] =  Coin('Worldcoin')
coins['yac'] =  Coin('YaCoin')
coins['zet'] =  Coin('Zetacoin')
# Merged
coins['dvc'] = Coin('Devcoin')
coins['dvc'].merged = True
coins['ixc'] = Coin('IXCoin')
coins['ixc'].merged = True
coins['i0c'] =  Coin('I0Coin')
coins['i0c'].merged = True
coins['nmc'] =  Coin('NameCoin')
coins['nmc'].merged = True
# Kind of an alternate coin...
coins['vanity'] = Coin('Vanity Mining')

# Read in config file
Config = ConfigParser.ConfigParser()
Config.read('./cryptoSwitcher.config')

# Enable the coins you want to mine here.
for key in coins:
    try:
        coins[key].willingToMine = Config.getboolean('MineCoins','mine'+key)
    except:
        continue

# You should have scripts that stop all other forms of mining, set
# your clocks and environment variables appropriately, and start
# mining the appropriate coin. I have these called 'litecoin.sh',
# 'bitcoin.sh' etc., but edit and/or replace these as you see fit.

# Any coins you aren't mining you can just leave blank.
for key in coins:
    try:
        coins[key].command = Config.get('Scripts',key+'script')
    except:
        continue

# read source list
try:
    source = [x.strip() for x in Config.get('Data-Source','source').split(',')]
except:
    try:
        source = [x.strip() for x in Config.get('Misc','source').split(',')]
        print "warning: you are using an old config file structure. please update using the config sample file."
    except:
        sys.exit("ERROR: Cannot read source from config file.")



# read source list
try:
    source_cryptoswitcher = [x.strip() for x in Config.get('Data-Source','source_cryptoswitcher').split(',')]
except:
    source_cryptoswitcher = ''
    print "warning: couldnt read source_cryptoswitcher from config file. Leaving blank."

# read hashrates
try:
    hashrate_sha256 = int(Config.get('Data-Source','hashrate_sha256'))
    hashrate_scrypt = int(Config.get('Data-Source','hashrate_scrypt'))
except:
    hashrate_sha256 = 1000
    hashrate_scrypt = 1
    print "warning: couldnt read hashrates from config file. Setting to 1:1000."

# get idle time between two profitability check cycles
try:
    idletime = int(Config.get('Misc','idletime'))
except:
    idletime = 5
    print "warning: couldnt read idletime from config file. Setting to 5 min."

# get the coinfees
for key in coins:
    try:
        coins[key].fee = float(Config.get('Fees','fee'+key))
    except:
        continue


# And now some information to calculate Vanity Address mining profitability
try:
    gkeypersec = float(Config.get('Misc','gkeypersec')) #Gigakeys per second you can test
    ghashpersec = float(Config.get('Misc','ghashpersec')) #Gigahash per second you can output doing normal BTC mining.
except:
    print "warning: couldnt read gkeypersec and ghashpersec from config file."

# If you want to sell your coins on BTCE ASAP, then there's a bit more setup for you
try:
    enableBTCE = Config.getboolean('Sell','enableBTCE')
    enableVircurex = Config.getboolean('Sell','enableVircurex')
    enableCryptsy = Config.getboolean("Sell", "enableCryptsy")
    vircurexSecret = Config.get('Sell','vircurexSecret')
    vircurexUsername = Config.get('Sell','vircurexUsername')
    cryptsyPubkey = Config.get("Sell", "cryptsyPublicKey")
    cryptsyPrivkey = Config.get("Sell", "cryptsyPrivateKey")
except:
    enableBTCE = False
    enableVircurex = False
    enableCryptsy = False
    print "warning: couldnt read sell information from config file. Disabling auto sell."

# And flag which coins you want to sell as they come in. These coins will only
# sell for BTC, not for USD or any other cryptocoin.
for key in coins:
    try:
        coins[key].willingToSell = Config.getboolean('Sell','sell'+key)
    except:
        continue

#Trade multiplier. i.e. Don't sell for the highest current bid if this is
#larger than 1, but make a new ask at highest_bid * tradeMultiplier.

tradeMultiplier = 1
try:
    tradeMultiplier = float(Config.get('Misc','tradeMultiplier'))
except:
    pass

tradeMultiplierCheck = False
try:
    tradeMultiplierCheck = Config.getboolean ('Misc', 'tradeMultiplierCheck')
except:
    pass

def sellCoinBTCE(coin, tradeapi):
    r = tradeapi.getInfo()
    try:
        balance = getattr(r, 'balance_'+coin)
    except:
        # probably a coin that BTCE doesn't have an exchange for, so just return
        return
    if balance > 0.1:
        # i.e. if we're selling and we have some to sell that's larger than the minimum order...
        asks, bids = btceapi.getDepth(coin + '_btc')
        price = bids[0][0]*tradeMultiplier
        if price > asks[0][0] and tradeMultiplierCheck == True:
            price = asks[0][0] - 0.00000001
        tr = tradeapi.trade(coin + '_btc', 'sell', price, balance)
        # If tradeMultiplier is 1, then this sells at the highest price someone
        # currently has a bid lodged for.  It's possible that this won't
        # totally deplete our reserves, but any unsold immediately will be left
        # on the book, and will probably sell shortly.
        # A higher trade multiplier than 1 will not sell right away, but will
        # leave an order on the book.

def sellCoinVircurex(coin):
    pair = vircurexapi.Pair(coin+'_btc')
    try:
        bid = pair.highest_bid
        ask = pair.lowest_ask
    except:
        # probably a coin that Vircurex doesn't have an exchange for, so just return
        return
    account = vircurexapi.Account(vircurexUsername, vircurexSecret)
    balance = account.balance(coin.upper())
    if balance >= 0.1:
        price = bid * tradeMultiplier
        if price > ask and tradeMultiplierCheck == True:
            price = ask - 0.00000001
        order = account.sell(coin.upper(),balance, 'BTC', price)
        account.release_order(order['orderid'])

def sellCoinCryptsy(coin):
    acct = PyCryptsy(cryptsyPubkey, cryptsyPrivkey)
    bal = acct.GetAvailableBalance(coin)
    price = acct.GetBuyPrice(coin, "BTC")*tradeMultiplier
    sell = acct.GetSellPrice(coin, "BTC")
    if price > sell and tradeMultiplierCheck == True:
        price = sell - 0.00000001
    if price > 0:
        acct.CreateSellOrder(coin, "BTC", bal, price)
    else:
        #Try to get price from a coin/LTC market:
        priceltc = acct.GetBuyPrice(coin, "LTC")*tradeMultiplier
        if priceltc > 0:
            acct.CreateSellOrder(coin, "LTC", bal, priceltc)
    return

if enableBTCE:
    key_file = './key'
    handler = btceapi.KeyHandler(key_file)
    key = handler.keys.keys()[0]
    secret, nonce =  handler.keys[handler.keys.keys()[0]]
    authedAPI = btceapi.TradeAPI(key, secret, nonce)


# create http handler
opener = urllib2.build_opener()
opener.addheaders = [('User-agent', 'CryptoSwitcher')]

# disable extended status output (=> coin price and difficulty) by default. only
# enable it, if at least one coins profitability is calculated by cryptoswitcher
extout = False

# main loop
cnt_all = 0
while True:
    # print header
    print "\n\n\n<<< Round %d >>>" % (cnt_all+1)
    print "time:", time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())

    # get data from sources
    prestr = "getting data... "

    for x in source:
        # coinchoose
        if x=='coinchoose' or x=='cryptoswitcher':
            try:
                fullstr = prestr + "coinchoose"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://www.coinchoose.com/api.php")
                opener_cc = urllib2.build_opener()
                opener_cc.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_cc.open(req, timeout = 5)
                data_cc = simplejson.load(f)
                #print data_cc
            except:
                pass


        elif x=='coinwarz':
            try:
                fullstr = prestr + "coinwarz"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://www.coinwarz.com/v1/api/profitability/?apikey=YOUR_COINWARZ_API_KEY&algo=all")
                opener_cz = urllib2.build_opener()
                opener_cz.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_cz.open(req, timeout = 5)
                data_cz = simplejson.load(f)
                #print data_cc
            except:
                pass


        # dustcoin
        elif x=='dustcoin':
            try:
                fullstr = prestr + "dustcoin"
                print fullstr + (79-len(fullstr))*" " + "\r",
                usock = urllib2.urlopen('http://dustcoin.com/mining', timeout = 5)
                data = usock.read()
                usock.close()
                soup = BeautifulSoup(data)
                table_dustcoin = soup.findAll('tr',{ "class":"coin" })
            except:
                pass

        # coinotron
        elif x=='coinotron':
            try:
                fullstr = prestr + "coinotron"
                print fullstr + (79-len(fullstr))*" " + "\r",
                usock = urllib2.urlopen('https://coinotron.com/coinotron/AccountServlet?action=home', timeout = 5)
                data = usock.read()
                usock.close()
                soup = BeautifulSoup(data)
                table_coinotron = soup.findAll('tr')
            except:
                pass


    for x in source_cryptoswitcher:
        # cryptsy
        if x=='cryptsy':
            try:
                fullstr = prestr + "cryptsy"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://pubapi.cryptsy.com/api.php?method=orderdata")
                opener_cyp = urllib2.build_opener()
                opener_cyp.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_cyp.open(req, timeout = 5)
                data_cyp = simplejson.load(f)
            except:
                pass



    # assign data to coins
    # loop through coins
    for abbreviation, c in coins.items():
        # only get profitability for coins which we are interested in.
        # this saves network traffic and running time
        if c.willingToMine==False:
            continue

        success = 0
        # loop trough source list. try first entry first.
        for x in source:
            if x=='coinchoose':
                try:
                    for item in data_cc:
                        if item['symbol'].lower()==abbreviation:
                            print abbreviation
                            coins[item['symbol'].lower()].ratio = float(item['adjustedratio'])
                            coins[item['symbol'].lower()].source = 'cc'
                            success = 1
                            break
                except:
                    print "eccezione********"
                    continue




            elif x=='coinwarz':
                try:
                    ciao = data_cz["Data"]
                    ids = [item['CoinTag'] for item in ciao]
                    ids = [s.encode('utf-8') for s in ids]
                    for item in ciao:
                        if item['CoinTag'].lower()==abbreviation:
                         coins[item['CoinTag'].lower()].ratio = float(item['ProfitRatio'])
                  
                         coins[item['CoinTag'].lower()].source = 'cz'


                    success = 1
                    break
                except:
                    print "eccezione********"
   continue





            elif x=='dustcoin':
                try:
                    i=0
                    for coinrow in table_dustcoin:
                        coinName, profit = coinrow.find('strong',text=True).text, coinrow.find('td',{"id":"profit"+str(i)}).text.replace('%','')
                        # make sure the profit we read is floating value, if not, continue loop and keep old profit value until next check
                        try:
                            profit = float(profit)
                        except:
                            continue
                        # calculate profitabilty
                        if coinName == coins[abbreviation].name:
                            coins[abbreviation].ratio = float(profit)
                            coins[abbreviation].source = 'dc'
                            success = 1
                            break
                        i+=1
                except:
                    continue

            elif x=='coinotron':
                try:
                    i = 0
                    for coinrow in table_coinotron:
                        coinName = coinrow.findNext('td').contents[0]
                        profit = coinrow.findNext('td').findNext('td').findNext('td').findNext('td').findNext('td').findNext('td').findNext('td').findNext('td').contents[0]
                        # when all coins where read, leave loop
                        if i == 5: break
                        i+=1
                        # convert profitability to percent
                        profit = float(profit)*100
                        # calculate profitabilty
                        if coinName.lower()==abbreviation:
                            coins[abbreviation].ratio = float(profit)
                            coins[abbreviation].source = 'ct'
                            success = 1
                            break
                        i+=1
                except:
                    continue

            # lets calulate profitability ourself
            elif x=='cryptoswitcher':
                # get difficulty and block rewards
                # source for difficulty data depends on coin
                try:
                    # if this is the first time we come here, update btc as well.
                    # otherwise we are unable to calculate the profitabilty.
                    fullstr = prestr + "difficulty of " + coins[abbreviation].name
                    print fullstr + (79-len(fullstr))*" " + "\r",
                    if coins['btc'].reward == 0:
                        for item in data_cc:
                            if item['symbol'].lower()=='btc':
                                coins['btc'].diff = float(item['difficulty'])
                                coins['btc'].reward = float(item['reward'])
                                break

                    # get difficulty values from coinchoose by default
                    for item in data_cc:
                        if item['symbol'].lower()==abbreviation:
                            coins[item['symbol'].lower()].diff = float(item['difficulty'])
                            coins[item['symbol'].lower()].reward = float(item['reward'])
                            coins[item['symbol'].lower()].algo = item['algo']
                            break

                    # if we dont have a difficulty source for our coin, continue loop and get profitabilty from
                    # other sources
                    if item['symbol'].lower()!=abbreviation:
                        continue

                    # for trc: use a different source for difficulty
                    if abbreviation == 'trc':
                        req = urllib2.Request("http://cryptocoinexplorer.com:3750/chain/Terracoin/q/getdifficulty")
                        f = opener.open(req, timeout = 5)
                        coins['trc'].diff = simplejson.load(f)

                    # for btc: we dont need to calculate
                    if abbreviation=='btc':
                        coins['btc'].ratio=100.0
                        coins['btc'].source = '--'
                        coins['btc'].algo = "SHA-256"
                        coins['btc'].price = 1.0
                        success = 1
                        break

                except:
                    continue


                # calculate highest buy value
                # use only data sources defined in source_cryptoswitcher
                coins[abbreviation].price = 0.0
                for y in source_cryptoswitcher:

                    # if coin profitability couldnt be processed manually in the
                    # last round, then they are probably not traded on the chosen
                    # markets. so the coin is removed from manual processing.
                    if coins[abbreviation].source != '--' and coins[abbreviation].source != 'cs':
                        continue

                    # btc-e
                    if y=='btce':
                        try:
                            fullstr = prestr + "price of " + coins[abbreviation].name + " at BTC-E"
                            print fullstr + (79-len(fullstr))*" " + "\r",
                            req = urllib2.Request("https://btc-e.com/api/2/" + abbreviation + "_btc/ticker")
                            f = opener.open(req, timeout = 5)
                            output = simplejson.load(f)
                            if coins[abbreviation].price < float(output['ticker']['sell']):
                                coins[abbreviation].price = float(output['ticker']['sell'])
                        except:
                            continue

                    # bter
                    elif y=='bter':
                        try:
                            fullstr = prestr + "price of " + coins[abbreviation].name + " at Bter"
                            print fullstr + (79-len(fullstr))*" " + "\r",
                            req = urllib2.Request("https://bter.com/api/1/ticker/" + abbreviation + "_btc")
                            f = opener.open(req, timeout = 5)
                            output = simplejson.load(f)
                            if coins[abbreviation].price < float(output['buy']):
                                coins[abbreviation].price = float(output['buy'])
                        except:
                            continue

                    # vircurex
                    elif y=='vircurex':
                        try:
                            fullstr = prestr + "price of " + coins[abbreviation].name + " at Vircurex"
                            print fullstr + (79-len(fullstr))*" " + "\r",
                            req = urllib2.Request("https://vircurex.com/api/get_highest_bid.json?base=" + abbreviation + "&alt=btc")
                            f = opener.open(req, timeout = 5)
                            output = simplejson.load(f)
                            if coins[abbreviation].price < float(output['value']):
                                coins[abbreviation].price = float(output['value'])
                        except:
                            continue

                    # cryptsy
                    elif y=='cryptsy':
                        try:
                            fullstr = prestr + "price of " + coins[abbreviation].name + " at Cryptsy"
                            print fullstr + (79-len(fullstr))*" " + "\r",
                            for item in data_cyp['return']:
                                if item.lower()==abbreviation:
                                    if data_cyp['return'][item]['secondarycode']=='BTC':
                                        if coins[abbreviation].price < float(data_cyp['return'][item]['buyorders'][0]['price']):
                                            coins[abbreviation].price = float(data_cyp['return'][item]['buyorders'][0]['price'])
                                    success = 1
                                    break
                        except:
                            continue

                # calculate profitability
                if coins[abbreviation].price!=0.0:
                    try:
                        if coins[abbreviation].algo == 'scrypt':
                            coins[abbreviation].ratio = (coins[abbreviation].reward/coins[abbreviation].diff)/(coins['btc'].reward/coins['btc'].diff)*coins[abbreviation].price*100/(hashrate_sha256/hashrate_scrypt)
                        else:
                            coins[abbreviation].ratio = (coins[abbreviation].reward/coins[abbreviation].diff)/(coins['btc'].reward/coins['btc'].diff)*coins[abbreviation].price*100
                        coins[abbreviation].source = 'cs'
                        success = 1

                        # at least one coins profitability was calculated by cryptoswitcher
                        # => enable extended status output
                        extout = True
                        break
                    except:
                        continue

            if success==1:
                break


    # Now work out how profitable btc mining really is, if we're doing any merged mining
    if coins['nmc'].willingToMine:
        coins['btc'].ratio +=coins['nmc'].ratio
    if coins['dvc'].willingToMine:
        coins['btc'].ratio +=coins['dvc'].ratio
    if coins['ixc'].willingToMine:
        coins['btc'].ratio +=coins['ixc'].ratio

    fullstr = prestr + "done"
    print fullstr + (79-len(fullstr))*" " + "\r"


    # Now get data for vanity mining
    if coins['vanity'].willingToMine:
        vanityDataValid = True
        try:
            usock = urllib2.urlopen('http://www.fizzisist.com/mining-value/api/bitcoin-value',timeout=1)
            btcperghash = usock.read()
            usock.close()
            btcperghash = float(btcperghash)
        except (urllib2.URLError, ValueError, socket.timeout) as  e:
            print "There was an error: ,", e
            vanityDataValid = False

        try:
            usock = urllib2.urlopen('http://www.fizzisist.com/mining-value/api/vanitypool-value',timeout=1)
            btcpergkey = usock.read()
            btcpergkey = float(btcpergkey)
            usock.close()
        except (urllib2.URLError, ValueError, socket.timeout) as  e:
            print "There was an error: ,", e
            vanityDataValid = False

        if vanityDataValid:
            # Now put vanity mining in terms of BTC mining.
            vanitybtcsec = gkeypersec * btcpergkey
            miningbtcsec = ghashpersec * btcperghash
            vanityprof = vanitybtcsec / miningbtcsec * 100
            coins['vanity'].ratio = vanityprof
            # print 'Vanity Mining', vanityprof

    # Now find the best profit coin
    bestcoin = 'btc'
    bestprof = 0
    print "comparing profitabilty..."
    print "-"*36
    for abbreviation, c in coins.items():
        if c.willingToMine:
            print "%11s: %3d  (fee: %2d, src: %s)" % (coins[abbreviation].name, c.ratio, coins[abbreviation].fee, coins[abbreviation].source),
            if extout == True:
                if coins[abbreviation].source == "cs" or abbreviation == "btc":
                    print "(pr: %.5f, di[%s]: %.2f)" % (coins[abbreviation].price, coins[abbreviation].algo, coins[abbreviation].diff),
                else:
                    # if diff is valid print it
                    if coins[abbreviation].reward != 0:
                        print "(pr:  -NA-  , di[%s]: %.2f)" % (coins[abbreviation].algo, coins[abbreviation].diff),
                    else:
                        print "(pr:  -NA-  , di[%s]:  -NA-  )" % (coins[abbreviation].algo),
            print ""

        if c.ratio-coins[abbreviation].fee > bestprof and c.willingToMine:
            bestcoin = abbreviation
            bestprof=c.ratio-coins[abbreviation].fee
    print "-"*36
    print "=> Best: %d, mining %s" % (bestprof, coins[bestcoin].name)
    coins[bestcoin].median = ((coins[bestcoin].median * coins[bestcoin].cnt) + coins[bestcoin].ratio-coins[bestcoin].fee) / (coins[bestcoin].cnt+1)
    coins[bestcoin].cnt = coins[bestcoin].cnt+1


    if coins[bestcoin].miningNow == False:
        # i.e. if we're not already mining the best coin
        print '=> Switching to %s (running %s)' % (coins[bestcoin].name, coins[bestcoin].command)
        for abbreviation, c in coins.items():
            c.miningNow = False
        coins[bestcoin].miningNow = True
        subprocess.Popen(coins[bestcoin].command)

    # Sell some coins if that's what we're into
    for abbreviation, c in coins.items():
        if c.willingToSell and (c.miningNow or c.merged) and enableBTCE:
            # i.e. if we're willing to sell it AND it's still worth more than BTC -
            # with pool payout delays and wild exchange swings, while it might be
            # profitable to have mined it, we didn't sell it quickly enough. This
            # keeps hold of the coin until you've made a decision.
            sellCoinBTCE(abbreviation, authedAPI)
        # elif c.willingToSell and c.miningNow and enableVircurex:
        if c.willingToSell and enableVircurex and (c.miningNow or c.merged):
            sellCoinVircurex(abbreviation)
        if c.willingToSell and enableCryptsy and (c.miningNow or c.merged):
            sellCoinCryptsy(abbreviation)

    # ...and now save the keyfile in case the script is aborted.
    if enableBTCE:
        handler.setNextNonce(key,time.time()) #Thanks, jsorchik
        handler.save(key_file)

    # create status output strings
    sname = "#        "
    smedian = "# Median:"
    stime = "# Time:  "
    median_all = 0
    cnt_all = 0
    for abbreviation, c in coins.items():
        if c.willingToMine and (not c.merged):
            coins[abbreviation].h, coins[abbreviation].m = divmod(coins[abbreviation].cnt*idletime, 60)
            if coins[abbreviation].h < 10:
                sname += "%5s  " % (abbreviation.upper())
                smedian += "%5d |" % (coins[abbreviation].median)
                stime += "%2d:%02d |" % (coins[abbreviation].h, coins[abbreviation].m)
            elif coins[abbreviation].h < 100:
                sname += "%6s  " % (abbreviation.upper())
                smedian += "%6d |" % (coins[abbreviation].median)
                stime += "%3d:%02d |" % (coins[abbreviation].h, coins[abbreviation].m)
            else:
                sname += "%7s  " % (abbreviation.upper())
                smedian += "%7d |" % (coins[abbreviation].median)
                stime += "%4d:%02d |" % (coins[abbreviation].h, coins[abbreviation].m)
            if coins[abbreviation].cnt > 0:
                median_all = ((median_all * cnt_all) + (coins[abbreviation].median*coins[abbreviation].cnt)) / (cnt_all+coins[abbreviation].cnt)
                cnt_all += coins[abbreviation].cnt

    # remove last chars
    sname = sname[:-2]
    smedian = smedian[:-2]
    stime = stime[:-2]

    smedian_all = '# Total Median:%5d' % (median_all)
    stime_all = '# Total Time:%4d:%02d' % (divmod(cnt_all*idletime, 60))

#    # fill strings to screen width and add "#" to the end
#    sname = "%s%s%s" % (sname, " "*(79-len(sname)), "#")
#    smedian = "%s%s%s" % (smedian, " "*(79-len(smedian)), "#")
#    stime = "%s%s%s" % (stime, " "*(79-len(stime)), "#")
#    smedian_all = "%s%s%s" % (smedian_all, " "*(79-len(smedian_all)), "#")
#    stime_all = "%s%s%s" % (stime_all, " "*(79-len(stime_all)), "#")

    # output status strings
#    print "\n", "#"*80+sname+smedian+stime+smedian_all+stime_all+"#"*80
    print "\n", sname
    print smedian
    print stime
    print smedian_all
    print stime_all, "\n"

    # sleep
    print 'Going to sleep...'
    i=0
    while i<idletime*60:
        print "Seconds remaining:", (idletime*60-i), " ", "\r",
        time.sleep(1)
        i+=1




cryptoSwitcher.config

Code:


# -------------------------------------------------#
# Cryptocurrency mining switcher config file       #
# TipJar (BTC): 1NhathL6LpcgofDnHELSS6Hej6kU9xrVgp #
# Author: area                                     #
# -------------------------------------------------#


################################################################################
[MineCoins]

# Enable the coins you want to mine here.
mineALF = False
mineAMC = False
mineANC = False
mineARG = False
mineASC = False
mineBFC = False
mineBQC = False
mineBET = True
mineBTB = False
mineBTC = False
mineBTE = False
mineBTG = False
mineCAP = False
mineCGB = False
mineCNC = False
mineCRC = False
mineDGC = False
mineDEM = True
mineEMD = False
mineELC = False
mineEZC = False
mineFRC = False
mineFRK = False
mineFST = False
mineFTC = False
mineGDC = False
mineHBN = False
mineHYC = False
mineKGC = False
mineLBW = False
mineLKY = False
mineLTC = False
mineMEM = False
mineMNC = False
mineNBL = False
mineNRB = False
mineNVC = False
minePPC = False
minePXC = False
mineSPT = False
mineSBC = False
mineTGC = True
mineTRC = False
mineWDC = False
mineZET = False
mineUNO = True

# Listed against LTC only (currently unusable by CS)
mineDBL = False
mineGLD = False
mineJKC = False
mineRYC = False

# No data available from sources
minePWC = False
mineMEC = False
mineYAC = False

# BTC Merged mining coins. Will be added to Bitcoin profitibilty when enabled.
mineDVC = True
mineIXC = True
mineI0C = False
mineNMC = True

# Enable to mine vanity addresses.
mineVANITY = False


################################################################################
[Scripts]

# You should have scripts that stop all other forms of mining, set all necesary
#  environment variables, and start mining the appropriate coin.

# Examples included are 'litecoin.sh.sample' and 'bitcoin.sh.sample'.
# Any coins you aren't mining you can just leave blank.
# For Windows you can use bat-files, eg "BTCscript = bitcoin.bat".
ALFscript =
AMCscript =
ANCscript =
ARGscript =
ASCscript =
BETscript = ./betacoin.sh
BFCscript =
BQCscript =
BTBscript =
BTCscript = ./bitcoin.sh
BTEscript =
BTGscript =
CAPscript =
CGBscript =
CNCscript =
CRCscript =
DBLscript =
DGCscript =
DEMscript = ./dem.sh
EMDscript =
ELCscript =
EZCscript =
FRCscript =
FRKscript =
FSTscript =
FTCscript =
GDCscript =
GLDscript =
HBNscript =
HYCscript =
KGCscript =
JKCscript =
LBWscript =
LKYscript =
LTCscript = ./litecoin.sh
MECscript =
MEMscript =
MNCscript =
NBLscript =
NRBscript =
NVCscript =
PPCscript =
PWCscript =
PXCscript =
RYCscript =
SPTscript =
SBCscript =
TGCscript = ./tigercoin.sh
TRCscript =
WDCscript =
YACscript =
ZETscript =
UNOscript = ./uno.sh

VANITYscript =

################################################################################
[Fees]

# Set specific fees for every coin (in percent).
# The fee simply adds to the profitability before calculating the most profitable coin.
# Negative values are also allowed, they increase the profitability.
feeALF = 0
feeAMC = 0
feeANC = 0
feeARG = 0
feeASC = 0
feeBET = 0
feeBFC = 0
feeBQC = 0
feeBTB = 0
feeBTC = 1.5
feeBTE = 0
feeBTG = 0
feeCAP = 0
feeCGB = 0
feeCNC = 0
feeCRC = 0
feeDBL = 0
feeDEM = 0
feeDGC = 0
feeEMD = 0
feeELC = 0
feeEZC = 0
feeFRC = 0
feeFRK = 0
feeFST = 0
feeFTC = 0
feeGDC = 0
feeGLD = 0
feeHBN = 0
feeHYC = 0
feeKGC = 0
feeJKC = 0
feeLBW = 0
feeLKY = 0
feeLTC = 2
feeMEC = 0
feeMEM = 0
feeMNC = 0
feeNBL = 0
feeNRB = 0
feeNVC = 0
feePPC = 0
feePWC = 0
feePXC = 0
feeRYC = 0
feeSPT = 0
feeSBC = 0
feeTGC = 0
feeTRC = 0
feeWDC = 0
feeYAC = 0
feeZET = 0
feeUNO = 0

################################################################################
[Data-Source]

# Source list for determining mining profitability.
# The first entry in the source list has the highest priority and is used first.
# If the site is down or a certain coin is not found the next source is used.
# Available sources: cryptoswitcher, coinotron, coinchoose, dustcoin
source=coinwarz, coinotron, coinchoose, dustcoin
#source=coinwarz

# If using CryptoSwitcher as a source, list markets to source prices from.
# Difficulty is acquired from coinchoose and cryptocoinexplorer.
# Available sources: btce, bter, vircurex, cryptsy
source_cryptoswitcher=btce, bter, vircurex, cryptsy

# Hashrates used in calculations when using CryptoSwitcher as a source.
# Measured in hashes per second. Can be acquired by testmining with cgminer.
# sha256 is used by Bitcoin etc. while scrypt is used by Litecoin etc.
hashrate_sha256=1350000
hashrate_scrypt=1450


################################################################################
[Misc]

# Idle Time (in minutes) between two checks of coin profitability.
idletime = 5

# Gigahash per second you can output doing normal BTC mining.
ghashpersec = 0.7

# Gigakeys per second you can output doing vanity address mining.
gkeypersec = 0.05

# Trade multiplier - if not 1, sells not at the highest bid, but at this
#  multiple of it.  
tradeMultiplier = 1.01

# make sure our sell order is the lowest if tradeMultiplier > 1
tradeMultiplierCheck = False

################################################################################
[Sell]

# If you want to sell your coins ASAP after mining, enable an exchange here.
# This will automatically sell flagged coins for BTC ONLY.

# BTC-e
enableBTCE = False
# You'll need to configure your API key, secret, and a nonce in "key.sample".
# Rename this file to "key".

# VirCurEx
enableVircurex = False
vircurexUsername = VCEUSERNAME
vircurexSecret = APISECRET

# Cryptsy
enableCryptsy = False
cryptsyPublicKey = YOUR_CRYPTSY_API_PUBLIC_KEY
cryptsyPrivateKey = YOUR_CRYPTSY_API_PRIVATE_KEY

# Enable the coins you want to sell here.
sellALF = False
sellAMC = False
sellANC = False
sellARG = False
sellASC = False
sellBET = False
sellBFC = False
sellBQC = False
sellBTB = False
sellBTE = False
sellBTG = False
sellCAP = False
sellCGB = False
sellCNC = False
sellCRC = False
sellDBL = False
sellDGC = False
sellEMD = False
sellELC = False
sellEZC = False
sellFRC = False
sellFRK = False
sellFST = False
sellFTC = False
sellGDC = False
sellGLD = False
sellHBN = False
sellHYC = False
sellKGC = False
sellJKC = False
sellLBW = False
sellLKY = False
sellLTC = False
sellMEC = False
sellMEM = False
sellMNC = False
sellNBL = False
sellNRB = False
sellNVC = False
sellPPC = False
sellPWC = False
sellPXC = False
sellRYC = False
sellSPT = False
sellSBC = False
sellTGC = False
sellTRC = False
sellWDC = False
sellYAC = False
sellUNO = False
sellZET = False
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 26, 2013, 10:43:51 AM
Last edit: December 26, 2013, 02:38:29 PM by corsaro
 #196

...  following my precedent message, where I released the implementation of coinwarz to the excellent cryptoSwitcher python script....

remember too that you can generate your coinwarz api key from here http://www.coinwarz.com/v1/api/documentation

  • free api: it is limited to just 25 queries per day, and for a maximum of 1,000 calls (useful if you made a call every 1 hour, you will have api key working for 1 month)
  • usd 20: a total of 300 calls per day, and for a maximum of 50,000 calls (useful if you made a call every 5 minutes, you will have api key working for 6 months)
  • usd 50: a total of 1500 calls per day, and for a maximum of 250,000 calls (useful if you made a call every 5 minutes, you will have api key working for more then 2 years)



happy "most profitable" mining Wink
Florak
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
December 30, 2013, 10:32:56 AM
 #197

Hi, looks nice. how many times a day the script switch coins ? do you experience higher profitability ?
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 30, 2013, 11:57:17 AM
 #198

Which pools do you use for SHA-256 ASICs with crypto switcher?

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 30, 2013, 03:35:10 PM
 #199

Hi, looks nice. how many times a day the script switch coins ? do you experience higher profitability ?

actually I am using coinwarz as profit calculator, and cryptoSwitcher as switching script, checking as per default, every 5 minutes.
Yes, using cryptoswitcher I am noting a 30-40% higher profitability respect to exclusive BTC mining

I am mining SHA-256 coins
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 30, 2013, 03:37:59 PM
Last edit: December 30, 2013, 04:27:17 PM by corsaro
 #200

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 30, 2013, 06:13:54 PM
 #201

Thanks. Are those pools PPS types?

Does coinwarz support SHA-256 coins? I see mostly crypt type of coins on coinwarz web page.

Do you use auto sell feature of crypto switcher or auto sell in cryptsy?

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 30, 2013, 06:51:51 PM
 #202

Thanks. Are those pools PPS types?

Does coinwarz support SHA-256 coins? I see mostly crypt type of coins on coinwarz web page.

Do you use auto sell feature of crypto switcher or auto sell in cryptsy?

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...

yes, for sure...  coinwarz support main sha-256 coins...
where possible I prefer pps or rbpps. Anyway, on large pools, like p2pool it does not mean it is pplns, due to the fact block are found every few minutes...
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 30, 2013, 06:56:17 PM
 #203

Where do you get addresses for alt coins mining, please?

Cryptsy as I know does not recommend to use their addresses for mining.

Thanks. Are those pools PPS types?

Does coinwarz support SHA-256 coins? I see mostly crypt type of coins on coinwarz web page.

Do you use auto sell feature of crypto switcher or auto sell in cryptsy?

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...

where possible I prefer pps or rbpps. Anyway, on large pools, like p2pool it does not mean it is pplns, due to the fact block are found every few minutes...

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
December 30, 2013, 07:52:41 PM
 #204

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...
shame on u supporting the p2pool.org scam... run your own node

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
nov
Sr. Member
****
Offline Offline

Activity: 433
Merit: 251


Independent crypto developer


View Profile WWW
December 30, 2013, 08:01:20 PM
 #205

Could you explain, please?

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...
shame on u supporting the p2pool.org scam... run your own node

WowDoge - DogeCoin Lightweight Wallet DOGE: DLoawzLvw5WvvpGUkSTxrwMgKhkamsqFo7
Vertigo - VertCoin Lightweight Wallet VTC: VertGv5nVwYYR7mTmDDeAP9et1NJyAsC9P | Exelite - ExeCoin Lightweight Wallet EXE: ELiteWbMDwX95YZj5Jf5BkHS54qbH7wpXg | Lightweight Wallet Creation Service
MultiCoin - Multiple Crypto Coin Lightweight Wallet in Development BTC: 1EKT9uaaDbTRuwjttFQbfax7KmGNZX32HP | BitcoinViewer - Bitcoin Balances & Transactions on iPhone/iPad BTC: 1NEvfbiA5Bs2sG2jqRdCidGUjLD5JjAjEZ
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
December 30, 2013, 09:40:22 PM
Last edit: December 31, 2013, 07:11:51 AM by corsaro
 #206

Where do you get addresses for alt coins mining, please?

Cryptsy as I know does not recommend to use their addresses for mining.

Thanks. Are those pools PPS types?

Does coinwarz support SHA-256 coins? I see mostly crypt type of coins on coinwarz web page.

Do you use auto sell feature of crypto switcher or auto sell in cryptsy?

Which pools do you use for SHA-256 ASICs with crypto switcher?

eligius                  for   btc
p2pool.org            for   uno, tgc, bet, bte, xjo
multipool.us          for   trc, zet, frc
dem.ispace.co.uk   for   dem


using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

Anyway, I had this night a problem on one of my sha-256 devices, so for some hours the whole system mined at 50% capacity...  so probably profitabiliy should be higher then 130...   anyway, more accurate statistics will come in the following days...

where possible I prefer pps or rbpps. Anyway, on large pools, like p2pool it does not mean it is pplns, due to the fact block are found every few minutes...

for p2pool.org you have to use a "personal wallet" address. Just download the official wallet client for each cryptocurrency you want to mine at p2pool... you can download them at respective official currency web site...

UNO https://bitcointalk.org/index.php?topic=313126.0
TGC https://bitcointalk.org/index.php?topic=289312.0
BET https://bitcointalk.org/index.php?topic=321266.0
BTE http://bytecoin.biz/
XJO https://bitcointalk.org/index.php?topic=299308.0

  sorry, but most part of them offer only "window$" executables wallet clients.... in this case, if you have a linux or mac, just setup a virtualbox machine to correctly run them..

running p2pool.org you will receive mined coins directly into your personal wallet... on some cases you have to wait some hours before money starts incoming into your personal wallet..   yes, do not use exchange address (like cryptsy.com or coinex.pw ones) to mine at p2pool

to exchange altcoins you can use cryptsy, coinex.pw, coins-e.com, btc-e.com, bter, vircurex...

You can fully automate the altcoin exchange, enabling automatic api exchange feature on CryptoSwitcher script
Jilixi
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile WWW
December 31, 2013, 12:05:23 PM
 #207

So getting the Dependencies, could someone post a package of all of them, running BAMT and having a hard time getting this right.

Cheers Smiley

Owner of BlackCoin Store - BlackCoin Store
BC: BNatbck1SDJebHRMQemkUEFPVZR9uLHLrM
BTC: 161EcdmbgmxpZMk2ssZCjGQqB6gypduu97
Jilixi
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile WWW
December 31, 2013, 06:13:52 PM
 #208

Anyone that could help out? a short guide would also be awesome. Project like this cant go unnoticed, cant think of anything better when you have something as good as BAMT

Owner of BlackCoin Store - BlackCoin Store
BC: BNatbck1SDJebHRMQemkUEFPVZR9uLHLrM
BTC: 161EcdmbgmxpZMk2ssZCjGQqB6gypduu97
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
December 31, 2013, 08:37:28 PM
 #209

using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).
this stupidity makes me so sad! you are aware that compiling from git is easier than always downloading winblows binaries? if you have linux, fking use it and dont go back to the stone-age obsolete shit...

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
corsaro
Legendary
*
Offline Offline

Activity: 1400
Merit: 1000


View Profile
January 01, 2014, 08:43:32 AM
Last edit: January 04, 2014, 08:20:11 PM by corsaro
 #210

using all them, with coinwarz as profit calculator, cryptoswitcher as switching script and cryptsy as exchenger, I reached around 130 as profitabiliy in the last 2 days (respect to exclusive btc mining).

in the last 48 hours of "stable running" of my sha-256 devices on ubuntu, mining sha-256 altcoins, I confirm you I reached a value of "155" for mining profitability (respect to standard value of "100" we assigned as reference to exclusive bitcoin mining)

- cryptoswitcher script, running on ubuntu, with added coinwarz support, see https://bitcointalk.org/index.php?topic=172121.msg4149631#msg4149631
- cgminer 3.8.4 for ubuntu 64bit patched for technobit hexa2 device https://bitcointalk.org/index.php?topic=355323.msg3913578#msg3913578
- coinwarz api as profit calculator, see https://bitcointalk.org/index.php?topic=172121.msg4149631#msg4149631
- cryptsy as exclusive exchanger (I enabled automatic exchange on cryptoswitcher script)
- sha-256 alcoins mined: uno, btc, trc, tgc, fcc, bet, bte, tek, frc, xjo, dem, zet
- cryptoswitcher time: 5 min (default)

FishStiks
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 05, 2014, 12:06:29 PM
 #211

corsaro,

is there perhaps a way to mine the 2nd or 3rd most profitable coin instead of the 1st in the code?  It would even be better if it were an option in cryptoSwitcher.config. Wink

Thanks
kweenirang
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
January 12, 2014, 08:03:11 AM
 #212

so cryptoswitcher is like multipool but locally? What advantages does that have
MiMiMiner
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 12, 2014, 10:41:42 PM
 #213

Hello!

I am about to start using this great software. But one thing I don't understand. So I have to find a good pool for every currency. Got it. But, where do I have to send the payouts to? Since this software is managing the trading as well...

Thanks!
MiMiMiner
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
January 13, 2014, 04:10:48 PM
 #214

Nodboy here? Sad
lifestyleopt
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 13, 2014, 05:12:22 PM
 #215

I used this tool a while back and it had a setting for you to "auto sell" the coin when it reaches the exchange.  This feature worked good at cryptsy but not 100% with btc-e.

If I were to use this tool today, I would have the mined coins sent to cryptsy (which they may frown upon) and use their "Autosell coinxxx" feature.

I have moved from this software to using mining pools that do the switching and selling for you.  Here is a list of those types of pools that I have found.
https://delicious.com/miningcoins/mining-pool-multiple-coins
pastet89
Sr. Member
****
Offline Offline

Activity: 378
Merit: 265


View Profile WWW
January 25, 2014, 09:16:02 AM
Last edit: January 25, 2014, 09:46:48 AM by pastet89
 #216

Hi,

I just downloaded it. However as I can see some currencies are missing, and I want to ask is there any way they to be added?
For example, currently all curencies which are more profitable over Bitcoin are not available in the config file.

And also where do you input your wallets addresses to mine to?

Cryptostats.es
pastet89
Sr. Member
****
Offline Offline

Activity: 378
Merit: 265


View Profile WWW
January 25, 2014, 11:55:42 AM
 #217

 
Hello!

I am about to start using this great software. But one thing I don't understand. So I have to find a good pool for every currency. Got it. But, where do I have to send the payouts to? Since this software is managing the trading as well...

Thanks!
I think as far as you insert your cryptsy API you get all deposited there and finally the sold BTCs there. Then you have to withdraw from there.
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.

Cryptostats.es
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
January 25, 2014, 05:20:36 PM
 #218

 
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.

Sounds like you might want to spend sometime getting basic mining setup.

This script really has nothing to do with your wallets for various coins.

It will auto-trade on various exchanges, but you don't enter wallet addresses in this script.
pastet89
Sr. Member
****
Offline Offline

Activity: 378
Merit: 265


View Profile WWW
January 25, 2014, 06:59:14 PM
 #219

 
However what I do not understand is how do I set this up on Linux and where to insert the wallets the script is supposed to deposit from.

Sounds like you might want to spend sometime getting basic mining setup.

This script really has nothing to do with your wallets for various coins.

It will auto-trade on various exchanges, but you don't enter wallet addresses in this script.

OK, so where does the script take my coins from so it can trade with them?

Cryptostats.es
pastet89
Sr. Member
****
Offline Offline

Activity: 378
Merit: 265


View Profile WWW
January 25, 2014, 07:08:01 PM
 #220

The money must appear in some way on Cryptsy, right?
So only one possibility I see for this without enetring wallet addresses in script, is to enter criptsy's deposit wallet addresses directly in the pools and mine to them. But this is forbidden.
So... ?  Huh

Cryptostats.es
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
January 25, 2014, 08:00:09 PM
 #221

The money must appear in some way on Cryptsy, right?
So only one possibility I see for this without enetring wallet addresses in script, is to enter criptsy's deposit wallet addresses directly in the pools and mine to them. But this is forbidden.
So... ?  Huh

Mining at a "normal" pool, you are able to use a cryptsy address for payout
pastet89
Sr. Member
****
Offline Offline

Activity: 378
Merit: 265


View Profile WWW
January 26, 2014, 07:01:22 AM
 #222

No, that's the point, it is forbidden as funds come from address 0, you need to forward them at least once trough another address. So how is this supposed to happen?

Cryptostats.es
RicRock
Sr. Member
****
Offline Offline

Activity: 290
Merit: 250



View Profile
January 27, 2014, 04:59:01 PM
 #223

No, that's the point, it is forbidden as funds come from address 0, you need to forward them at least once trough another address. So how is this supposed to happen?

Not sure what you mean.

As long as you are not mining at a P2Pool, you can use a cryptsy address.

I've been doing it for quite some time.
Helium3
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 03, 2014, 11:58:15 PM
 #224

Ola all.

I got CryptoSwitcher running over the weekend on a test machine. Is there a simple way to add Dogecoin (which seems the most profitable atm)?

He3
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
February 04, 2014, 09:32:12 PM
 #225

I got CryptoSwitcher running over the weekend on a test machine. Is there a simple way to add Dogecoin (which seems the most profitable atm)?

It's been a while since I've touched the code, but there are (IIRC) three places that you'd need to edit to add a coin.  It should be fairly obvious, as each is a block of mostly-similar statements that describe the coins that are already supported.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
tfbpa
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
February 09, 2014, 05:03:58 AM
 #226

A couple of days or so ago, I merged some pull requests that had been sitting around a while.  I also included a PHP script that uses the cgminer API to switch pools.  Others have posted about using just one cgminer.conf with every pool and issuing a switchpool call.  My script takes a pool URL, miner name, and password, adds them to the current list of pools, and (optionally) removes all of the other pools.  In your pool-switching shell script, you then call my script once for each pool you want to use for a coin, with the "clear" parameter included on the first call. This allows you to have multiple pools configured for a coin as a backup.

Thanks for the script, much appreciated.

At the moment the regular setup is working, but I would like to make sure cgminer doesn't need to restart when switching pools by using the above method, but unfortunately I don't understand what exactly needs to be done.

I am guessing that the PHP script is https://github.com/area/CryptoSwitcher/blob/master/switchpool.php but I still don't understand what exactly needs to be done.

- Where to specify all pool urls's and miner name/password?
- How to call this script with "clear" parameter included on the first call in the pool-switching shell script?
- I am guessing that I have to remove line 4 and 5 from pool-switching shell script https://github.com/area/CryptoSwitcher/blob/master/litecoin.sh.sample in order to make sure cgminer isn't restarted every time. Is that correct?

Any help is appreciated, thanks.
Wayne187
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
March 12, 2014, 03:00:30 AM
Last edit: March 13, 2014, 07:18:20 PM by Wayne187
 #227

veeeeery nice tool  Grin thank you very much indeed!

After hours of configuration it works very well.
But can somebody tell me how to add more sites like coinchoose?

I've tried the last hours to code it by myself but all was only worst of time.

API:
http://sancrypto.info/api/json/15/

Code:
# sancrypto
        if x=='sancrypto':
            try:
                fullstr = prestr + "sancrypto"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://sancrypto.info/api/json/15/")
                opener_sc = urllib2.build_opener()
                opener_sc.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_sc.open(req, timeout = 5)
                data_sc = simplejson.load(f)
            except:
                pass

Code:
            if x=='sancrypto':
                try:
                    for item in data_sc:
                        if item['symbol'].lower()==abbreviation:
                            coins[item['symbol'].lower()].ratio = float(item['ratio'])
                            coins[item['symbol'].lower()].source = 'sc'
   success = 1
   break
                except:
print "ERROR"
continue

I dont know what the problem is. So, if anyone could - please help Wink


EDIT:
Got it, thanks anyway. I did it by myself with a detour. python export now the json into a txt file, add a few thinks like "CoinTag" and it works very well.
Sanasol
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
March 25, 2014, 09:09:29 PM
 #228

veeeeery nice tool  Grin thank you very much indeed!

After hours of configuration it works very well.
But can somebody tell me how to add more sites like coinchoose?

I've tried the last hours to code it by myself but all was only worst of time.

API:
http://sancrypto.info/api/json/15/

Code:
# sancrypto
        if x=='sancrypto':
            try:
                fullstr = prestr + "sancrypto"
                print fullstr + (79-len(fullstr))*" " + "\r",
                req = urllib2.Request("http://sancrypto.info/api/json/15/")
                opener_sc = urllib2.build_opener()
                opener_sc.addheaders = [('User-agent', 'CryptoSwitcher')]
                f = opener_sc.open(req, timeout = 5)
                data_sc = simplejson.load(f)
            except:
                pass

Code:
            if x=='sancrypto':
                try:
                    for item in data_sc:
                        if item['symbol'].lower()==abbreviation:
                            coins[item['symbol'].lower()].ratio = float(item['ratio'])
                            coins[item['symbol'].lower()].source = 'sc'
   success = 1
   break
                except:
print "ERROR"
continue

I dont know what the problem is. So, if anyone could - please help Wink


EDIT:
Got it, thanks anyway. I did it by myself with a detour. python export now the json into a txt file, add a few thinks like "CoinTag" and it works very well.

what about sharing result? Tongue
jmlindn
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
March 29, 2014, 10:37:54 AM
 #229

Looks neat, will try whenever I get home.
_Crash_
Full Member
***
Offline Offline

Activity: 133
Merit: 100


View Profile
March 31, 2014, 04:55:24 PM
 #230

I tried but it says the config file' syntax is old or outdated then immediately closes.

MiningSpace.net - MULTI-COIN / MULTI-POOL :: Miners Paid TX Fees! :: Europe :: Most Profitable Pool! :: Gigabit Connectivity :: 0% Fee!
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
April 01, 2014, 10:39:21 PM
 #231

I am guessing that the PHP script is https://github.com/area/CryptoSwitcher/blob/master/switchpool.php but I still don't understand what exactly needs to be done.

- Where to specify all pool urls's and miner name/password?
- How to call this script with "clear" parameter included on the first call in the pool-switching shell script?
- I am guessing that I have to remove line 4 and 5 from pool-switching shell script https://github.com/area/CryptoSwitcher/blob/master/litecoin.sh.sample in order to make sure cgminer isn't restarted every time. Is that correct?

Everything is passed in as arguments.  Here's what I'm using to switch over to Bitgem mining...write this to bitgem.sh:

Code:
#!/bin/bash
source miners.sh
for i in $miners
do
  php switchpool.php stratum+tcp://bitgem.dyndns.org:3333 salfter.${i} x clear ${i} 4029
done

miners.sh just declares a variable with the hosts to be switched:

Code:
#!/bin/bash
miners="miner2"

Going back to switchpool.php, the arguments passed to it are as follows:

  • pool URL
  • pool worker name
  • pool password
  • "clear" (to remove all other pools from the current config) or "" (to not do that, if you're using multiple pools for a coin)
  • cgminer/bfgminer hostname
  • cgminer/bfgminer RPC port number

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
mhkso2
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
April 14, 2014, 02:10:19 PM
 #232

so cryptoswitcher is like multipool but locally? What advantages does that have
Report to moderator 

nocroom
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
September 13, 2014, 04:20:14 AM
 #233

any self hosted php/mysql script auto switcher i can use?

Check out this blog if you want free bitcoins https://bitcoinvest.cc/how-to-get-free-bitcoins-fast
geometric_series
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
September 14, 2014, 06:08:13 PM
 #234

Can it mine coins that are not listed on exchange?

lakala
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 27, 2014, 11:06:19 PM
 #235

Cryptsy changes the URL for their API.  I wonder if that needs to change.

BitNet(VPNCOIN)第二论赠币:VikSbFcj3ogVByPajAYzvuAEoWir9shYNZ
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!