Coder Social home page Coder Social logo

cryptoswitcher's People

Contributors

area avatar catmanix avatar masterx1582 avatar salfter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptoswitcher's Issues

Cryptoswitcher deciding to switch to coins not in coinchooses API list

At the moment it favors MNC, which isn't even in the API (http://www.coinchoose.com/api.php). Something seems fishy. According to Coinchoose Worldcoin is atm at 200% profitability of BTC.

<<< Round 818 >>>
time: 2013-07-16 17:22:54
getting data... done
comparing profitabilty...
------------------------------------
  Alphacoin: 145  (fee:  2, src: cc)
   Argentum:  94  (fee:  2, src: cc)
    Mincoin: 162  (fee:  2, src: cc)
     EZCoin:   0  (fee:  2, src: --)
     Franko: 133  (fee:  2, src: cc)
  Luckycoin: 121  (fee:  2, src: cc)
DigitalCoin: 132  (fee:  2, src: cc)
   Memecoin:   0  (fee:  2, src: --)
 StableCoin:  17  (fee:  2, src: cc)
 Krugercoin:   9  (fee:  2, src: cc)
  Worldcoin: 138  (fee:  2, src: cc)
   Fastcoin: 128  (fee:  2, src: cc)
------------------------------------
=> Best: 160, mining Mincoin

Only using "source=coinchoose" and "source_cryptoswitcher=cryptsy".

Incorrect application of mining fee

Bug report I received via PM on bitcointalk

When it's estimating profitability, it applies the "pool fee" percentage to the nominal bitcoin 100% amount, not the actual coin's profitability....

So for example, let's say it queries coinchoose.com and finds that MEC is currently 200% as profitable as bitcoin. Let's say that I have MEC configured as a pool fee of 5% (2.5% for my pool, and an estimate of 2.5% stale, so I'm losing 5% in total).

Currently, cryptoswitcher would assign this situation a value of 195, whereas it should be 190.

Cryptsy change after downtime yesterday?

Doesn't seem like PyCryptsy can parse the API response anymore.

Traceback (most recent call last):
File "cryptoSwitcher.py", line 601, in
sellCoinCryptsy(abbreviation)
File "cryptoSwitcher.py", line 227, 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

Sending input value to script

Would be nice if the CryptoSwitcher could be able to send a value when running a script:

For instance:

DGCscript = "/home/username/switchpool.php 3"

Crash when coinotron unavailable

Today Coinotron is unavailable (HTTP 503). The script crash as it seems to expect a 2xx return code with an answer.

It should control the HTTP return code, and fallback to an older value if 4xx or 5xx answer.

Meanwhile thanks for this precious script

Here comes the output of the crash:

<<< Round 1 >>>
time: 2013-05-10 16:06:22
getting data...
Traceback (most recent call last):
File "cryptoSwitcher.py", line 171, in
usock = urllib2.urlopen('https://coinotron.com/coinotron/AccountServlet?action=home')
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 503: Service Temporarily Unavailable

Ability to calc/sell Memecoin/Ezcoin as their now LTC only

comparing profitabilty...

Alphacoin: 171 (fee: 2, src: cc)
Argentum: 74 (fee: 2, src: cc)
Phenixcoin: 248 (fee: 2, src: cc)
Mincoin: 83 (fee: 2, src: cc)
EZCoin: 0 (fee: 2, src: --)
Franko: 44 (fee: 2, src: cc)
Luckycoin: 101 (fee: 2, src: cc)
DigitalCoin: 143 (fee: 2, src: cc)
Megacoin: 130 (fee: 2, src: cc)
Memecoin: 0 (fee: 2, src: --)
StableCoin: 142 (fee: 2, src: cc)
Worldcoin: 121 (fee: 2, src: cc)

Fastcoin: 110 (fee: 2, src: cc)

As you can see, the script calcs the value 0 for the coins that is changed to LTC only.

2 calcs is needed I guess, first LTC vs BTC price. Then use that to compare the profitability of the new vs LTC only coins.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.