Commit graph

230 commits

Author SHA1 Message Date
Tanguy Pruvot
e816d5ce0c markets: always update markets if we have the data
Only require installed flag if a secondary api query is required

+ banx rename
+ kraken BTC/ALT markets fix, prices are 1/x
2016-04-25 12:49:13 +02:00
Tanguy Pruvot
21746e5953 history: allow to watch local price/balance
also show graphes even if the wallet is not installed (like BTC or LTC)

+ yaamp "core" function to know if a coin is watched
2016-04-25 12:49:10 +02:00
Tanguy Pruvot
bf7fc3534f sql: keep btc and user defined markets history
will allow to do internal graphes and compute better exchange orders

Also track in the new table a (BTC/EUR) alternative, from kraken public api
this second currency should be user definable later.
2016-04-24 10:23:21 +02:00
Tanguy Pruvot
0fd1d490df decred: auto toggle ready flag with connection count
unlike other coins, decred ignore getblocktemplate error

This prevent miners to mine without possible reward in this special case.
2016-04-23 03:34:29 +02:00
Tanguy Pruvot
60e1938289 wallet: basic console 2016-04-22 11:04:34 +02:00
Tanguy Pruvot
74b80292a6 stratum/decred: link new db coin rpc fields
And use rpcencoding='DCR' for decred checks,
to handle testnet instances or future forks..
2016-04-20 00:13:11 +02:00
Tanguy Pruvot
644f5b8560 nova: volume market check was in btc 2016-04-18 00:30:40 +02:00
Tanguy Pruvot
009e97f311 nova: missing link to cron + url typo 2016-04-15 21:57:46 +02:00
Tanguy Pruvot
4ed942569a add nova exchange api 2016-04-15 21:32:36 +02:00
Tanguy Pruvot
187a5dcb85 trading: remove big markets checks + bter fix + balances 2016-04-15 18:40:50 +02:00
Tanguy Pruvot
e4ef728d40 coins: link the new fields in form
notes:
- account "default" should be set for decred
- payout_min handled (should be > txfee)
- payout_max to handle...

stratum rpc/account changes will be made in a second commit
2016-04-03 16:02:04 +02:00
Tanguy Pruvot
a338131f28 sql: rename account last_login to last_earning
this column name was confusing, add an index btw...

beware with this commit, need mysql change + memcache restart
2016-04-03 15:19:52 +02:00
Tanguy Pruvot
b43fa9236b coins: add link_site field
don't forget to restart memcached service to refresh the db structure
2016-04-02 15:11:54 +02:00
Tanguy Pruvot
9f431ec275 markets: improve disabled flag
disabled = 9 means permanent disable by admin (no more checked)
else, values 1 to 8 will depends on different cases... api down, low volume, etc

for the moment, only handle the autoswitch between 0 and 1 when the api reports an active state
2016-04-02 15:11:54 +02:00
Tanguy Pruvot
fbe8689fa1 markets: link new market fields (disabled/priority) 2016-04-02 15:11:53 +02:00
Tanguy Pruvot
616e448228 wallet: link new market fields 2016-04-02 15:11:53 +02:00
Tanguy Pruvot
f72ce04be1 markets: new fields + balances update 2016-04-02 15:11:53 +02:00
Tanguy Pruvot
6950057b17 db: handle custom user donation percents
The setting is set with g=10% in password field

its disabled by default, to do maybe per worker...

prevent negative donation percents
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
2022170777 db: save payout errors 2016-04-02 15:08:43 +02:00
Tanguy Pruvot
71de6d635b db: save blocks worker id for worker stats
Note: need database change!
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
294da52732 banx: rename to cryptomic (part 2) 2016-04-02 15:06:37 +02:00
JarBinks
a5450584e0 safecex: fixing missing cancel order routines
I left these out of the last update. :-(
2016-04-02 14:48:21 +02:00
Tanguy Pruvot
40268644b2 banx: quick fix for new domain name 2016-04-02 14:00:22 +02:00
Tanguy Pruvot
21d8a1d5c6 exchange: fix bter api queries
was badly reported as bleutrade errors
2016-04-02 13:54:25 +02:00
JarBinks
1a51a4f2ec cryptopia: bug fix in the cancel order function 2016-04-02 12:11:27 +02:00
crackfoo
c3f2e90c26 yobit: add auto withdraw BTC
fixed (tpruvot)
2016-04-01 10:55:29 +02:00
Tanguy Pruvot
06f397a357 cryptopia: double check orders api result in trading 2016-03-31 21:20:32 +02:00
JarBinks
d41d5c324b cryptopia: marketid update 2016-03-31 16:53:19 +02:00
JarBinks
46d1fe9a9a Exchange Order Cancel on Dashboard page 2016-03-31 10:05:41 +02:00
Tanguy Pruvot
e7a08087c8 util: add a new objSafeVal() function for json objects 2016-03-30 18:21:25 +02:00
Tanguy Pruvot
5f1779673d kraken: set a timeout to api calls 2016-03-30 18:21:21 +02:00
Tanguy Pruvot
87128640a3 poloniex: dont assume the api key is defined 2016-03-30 17:35:50 +02:00
Tanguy Pruvot
b46b4e0cd1 cryptopia: fix typo in markets code 2016-03-30 13:38:40 +02:00
Tanguy Pruvot
b1d7435564 c-cex: link coin labels api 2016-03-28 12:09:18 +02:00
Tanguy Pruvot
1c5daaa9b7 graphs: handle the new blake unit 2016-03-27 23:41:13 +02:00
Tanguy Pruvot
fe6c79ea23 stats: change blake algos profit to mBTC/Gh
to update history, manually run this sql query :

UPDATE hashrate SET price=price*1000.0, rent=rent*1000 WHERE algo IN ('blake','blake2s','decred','vanilla') AND price < 0.01;
2016-03-27 20:27:27 +02:00
Tanguy Pruvot
dac5d33e09 profit: move sha256 GH/s factor in a function
todo: handle blake algos like sha
2016-03-27 11:49:17 +02:00
Tanguy Pruvot
b90ef30df3 small changes 2016-03-24 05:11:08 +01:00
Tanguy Pruvot
318efbb7dc bter exchange private api 2016-03-24 05:05:52 +01:00
Tanguy Pruvot
0075e26208 backups: purge outdated shares 2016-03-24 03:34:40 +01:00
Tanguy Pruvot
8444523b98 exchange: banx and cryptopia also returns deposit addresses 2016-03-23 05:39:28 +01:00
Tanguy Pruvot
997f0be1b5 kraken api, to retrieve markets and btc balance 2016-03-22 14:44:10 +01:00
Tanguy Pruvot
6d3241d02a bleutrade: sleep before each api call 2016-03-22 09:52:34 +01:00
Tanguy Pruvot
f4fcf5c492 c-cex: handle error in return field :/ 2016-03-22 06:54:06 +01:00
Tanguy Pruvot
7d599013ea safecex: also store all balances 2016-03-22 05:52:01 +01:00
Tanguy Pruvot
40dbf13e46 c-cex: get deposit addresses 2016-03-22 05:18:21 +01:00
Tanguy Pruvot
8dfa435d94 exchanges: load balances in market table
for the moment, only when not using the auto-exchange

disable empoex (closing)
2016-03-21 16:44:11 +01:00
Tanguy Pruvot
7e739906a1 c-cex: add new apis + auto withdraw 2016-03-21 16:18:43 +01:00
Tanguy Pruvot
0f34e167cf users: rework table and bad shares count 2016-03-21 07:25:27 +01:00
Tanguy Pruvot
bc3ae3b44f Restore banx exchange, reopening..
site will also be renamed later... cryptomic.com

This reverts commit e669e1cc05.
2016-03-19 07:40:57 +01:00