Commit graph

400 commits

Author SHA1 Message Date
Tanguy Pruvot
33e0aa65c4 markets: fix typo related to the LTC test 2016-05-02 16:27:20 +02:00
Tanguy Pruvot
90b29f7cd2 blakecoin: add to default algos + diff factor fix 2016-05-02 15:40:07 +02:00
Tanguy Pruvot
e0e1b1d144 yobit: price update was interrupted by the deposit address check
also, add more autotrade safety against scams pump'n'dump
2016-05-02 15:08:34 +02:00
Tanguy Pruvot
2d1af265fa history: improve the stacked graph series with missing data
+ optional hack to allow to store decred staking (locked) balance history
2016-05-01 13:29:25 +02:00
Tanguy Pruvot
2300314280 wallet: enhance graph ajax refresh and resize
prevent graph flicker on ajax refresh, only reload data after 5mn
and/or when the browser window is resized.

should reduce a bit the browser cpu usage...
2016-05-01 08:00:05 +02:00
Tanguy Pruvot
cf9b70c04b history: update time to rounded hour on older history
+ db user setting to set the delete delay (in seconds)
2016-04-30 18:05:31 +02:00
Tanguy Pruvot
b81a3701b4 history: prune database + better axis interval for 7 days
2 months kept in the database, and pruned by avg after 7 days
2016-04-30 13:50:24 +02:00
Tanguy Pruvot
6d2ab6efa1 markets: attempt to handle LTC markets
for the test, i added (manually) a market record named "c-cex LTC"
with base_coin set to "LTC", you may have to disable any BTC market(s) for the coin

In this case, the coin BTC price/balance is computed, based on LTC price,
even if the database coin "BTC price" is under 1 sat.

require LTC to be enabled or... "watched" to also update LTC/BTC price

implemented for cryptopia, nova and c-cex, not bleutrade (DOGE only)

+ various small log fixes..
2016-04-28 18:51:23 +02:00
Tanguy Pruvot
d32c673fa9 bitstamp: fix api typo 2016-04-27 13:16:02 +02:00
Tanguy Pruvot
fff4c76d68 c-cex: indent + constant fix 2016-04-27 12:52:58 +02:00
Tanguy Pruvot
6c8c6ce043 bitstamp: fix private api + getbalance 2016-04-27 12:08:41 +02:00
Tanguy Pruvot
b7c846c985 settings: link the exchange disable flag
+ apply settings to all exchanges

but remove the btc withdraw address from valid keys by default, security issue...
2016-04-27 11:12:38 +02:00
Tanguy Pruvot
7e0c9f69ce sql: settings table for exchange variables
only applied to bittrex as sample, default values are kept if unset.
2016-04-27 09:58:32 +02:00
Tanguy Pruvot
9d20eb01b3 backups: prefer xz if available 2016-04-27 05:17:27 +02:00
crackfoo
878716ea62 yiimp: add system var db & host for backup 2016-04-27 05:17:25 +02:00
crackfoo
15654cce6c bittrex: fix withdraw subtract tx fee from balance 2016-04-26 16:34:35 +02:00
Tanguy Pruvot
c74cfff0fc payments: handle payout_max field, to enhance later 2016-04-26 15:49:13 +02:00
Tanguy Pruvot
fac301fb93 cryptomic: finish renaming + kraken ask/bid check 2016-04-26 12:47:54 +02:00
Tanguy Pruvot
70d4ac5b88 bitstamp public api, private untested yet 2016-04-26 12:47:52 +02:00
Tanguy Pruvot
457a90d02d markets: dont disable cryptopia-only markets 2016-04-26 05:45:16 +02:00
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