Commit Graph
100 Commits
Author SHA1 Message Date
dimxy 656992811c long double 2019-04-30 00:47:15 +05:00
dimxy e6d145f2f5 log dcostbasis 2019-04-30 00:39:05 +05:00
dimxy 0467d13a10 try use floating point to calc average costbasis 2019-04-29 21:50:55 +05:00
dimxy d81d30a27c corr costbasis prec in pricesinfo 2019-04-29 21:35:58 +05:00
dimxy 911462d1aa remove clearing prec in pricesinfo 2019-04-29 21:30:28 +05:00
dimxy 13a1463f02 removed clearing precision to 0.0001 2019-04-29 21:23:46 +05:00
dimxy 5e93f5d3b7 satoshiden to prices_normfactor (signed) 2019-04-29 20:04:21 +05:00
dimxy 79397bbe88 corrected costbasis is the latest minmax value 2019-04-29 16:58:05 +05:00
dimxy 6e8e695bc8 comment corrected 2019-04-27 17:29:41 +05:00
dimxy f5aea6c1bd clear last 0000 for liqprice 2019-04-27 17:07:27 +05:00
dimxy c0a662824f remove extra logging 2019-04-27 15:46:51 +05:00
dimxy 3bf8ab37b5 corr arithmetic normalization 2019-04-27 15:42:48 +05:00
dimxy 87571e8457 corr totalbets normalization 2019-04-27 15:37:58 +05:00
dimxy b6f98557c8 totalbets check zero logging added 2019-04-27 15:32:08 +05:00
dimxy 5dd59ee7c1 prevent average costbasis zero div 2019-04-27 15:23:42 +05:00
dimxy ba495d5baf norm operation grouping 2019-04-27 13:46:26 +05:00
dimxy 3c368e8275 corr normalization 2019-04-27 13:37:44 +05:00
dimxy eb515ba1ab add norm to average costbasis 2019-04-27 13:32:07 +05:00
dimxy 9c2ee630b9 added logging accum costbasis 2019-04-27 13:23:57 +05:00
dimxy 8de1d2cd1b corr calc average costbasis 2019-04-27 13:15:26 +05:00
dimxy 13fdf95907 add ave costbasis and liq price (not normalized) 2019-04-27 13:01:09 +05:00
dimxy 8d272e1c5f val state cleared 2019-04-26 19:43:50 +05:00
dimxy 25b86870c1 all return invalid captured 2019-04-26 12:05:57 +05:00
dimxy eb7d77de1d off costbasis validation 2019-04-26 01:51:51 +05:00
dimxy 50adff8b8c corr vintx validation for add tx 2019-04-26 01:46:25 +05:00
dimxy 1141ce95d8 bettx comment validation for add fund tx 2019-04-26 01:33:49 +05:00
dimxy fc1e3209fd more relaxed validation 2019-04-26 01:09:51 +05:00
dimxy 94d6916ca4 final tx vout check commented 2019-04-26 00:59:30 +05:00
dimxy d9a1ff1695 added check vout==index 2019-04-26 00:48:35 +05:00
dimxy 2d677f3add logging 2019-04-26 00:27:58 +05:00
dimxy d1c206b347 corr addrindex 2019-04-26 00:01:59 +05:00
dimxy 7b17cd8a36 changed to cc marker
cc marker excluded for addpricesinputs
2019-04-25 23:52:53 +05:00
dimxy 4f5d16905a corr check open/closed 2019-04-25 20:28:26 +05:00
dimxy c3854b8084 corr cashout amount 2019-04-25 20:22:04 +05:00
dimxy 82557a93a4 added checks for closed 2019-04-25 19:47:33 +05:00
dimxy 02858d9103 corr Cashout and Rekt funcs 2019-04-25 18:59:37 +05:00
dimxy fe3e906c46 added height > firstheight check 2019-04-25 17:33:07 +05:00
dimxy 00a39266aa corr perm costbasis calc 2019-04-25 17:15:27 +05:00
dimxy 10447109dd corr equity compare 2019-04-25 16:16:18 +05:00
dimxy 1c219dbf67 corr costbasis init
corr json vals precision
2019-04-25 16:10:05 +05:00
dimxy ae4d2faa69 corr adding array to json res 2019-04-25 15:59:07 +05:00
dimxy 6005562b6a corr resultbets entry 2019-04-25 15:50:19 +05:00
dimxy 91704c0b0a result to varr 2019-04-25 15:40:55 +05:00
dimxy 879a9fbaf8 corr break from loop 2019-04-25 15:34:55 +05:00
dimxy 1c4c7f677a added prices_scanchain func
added all bets params to json
2019-04-25 15:21:22 +05:00
dimxy f290e2e2b3 corr link err (corr func def) 2019-04-25 13:23:42 +05:00
dimxy 0331607b71 costbasis calc now only for smoothed val
added costbasis calc for added bets
removed test windows 7
2019-04-25 13:15:22 +05:00
dimxy 58577b64e1 changed valid height 2019-04-23 22:49:13 +05:00
dimxy 187ce2a657 costbasis validation logging 2019-04-23 22:04:54 +05:00
dimxy db8619363c added costbasis validation
removed cycling in setcostbasis
2019-04-23 20:07:07 +05:00
dimxy 37a09bf6cd test bettx vout0 to fake pk 2019-04-23 17:24:55 +05:00
dimxy 3de3298e57 test bad pk to bettx 2019-04-23 17:05:30 +05:00
dimxy dee7212413 temp pubkey validation removed 2019-04-23 16:47:58 +05:00
dimxy 36227f2e9c test window=7 2019-04-23 16:39:53 +05:00
dimxy 1bf4baf408 added normal inputs pubkey validation 2019-04-23 15:56:54 +05:00
dimxy 8982ffd918 added opret to test tx spending marker 2019-04-23 15:42:33 +05:00
dimxy a8065c0462 added testtransactions rpc to table 2019-04-23 15:42:32 +05:00
dimxy f341b517a3 corr include, syntax err 2019-04-23 15:42:30 +05:00
dimxy ea96f4d528 moved testtransaction to server lib 2019-04-23 15:42:29 +05:00
dimxy c088fa62d5 testtransactions.cpp added 2019-04-23 15:42:28 +05:00
dimxy 37aa2fbe88 test transaction moved to a separate file
added a new test tx to try to spend bettx marker
2019-04-23 15:42:28 +05:00
dimxy b56dc25c8d added logging to PricesList 2019-04-23 15:42:26 +05:00
dimxy a4aad9e05b corr check vout0 validation in ValidateFinalTX 2019-04-23 15:42:25 +05:00
dimxy 96c82c5208 corr validate for cashout 2019-04-23 15:42:24 +05:00
dimxy 1bdd83f1d1 changed profits calc (prevent conversion to 0) 2019-04-23 15:42:23 +05:00
dimxy 51e5260627 corrected profits calc - cast to int64 2019-04-23 15:42:22 +05:00
dimxy 0e3351557e corr param num check 2019-04-23 15:42:21 +05:00
dimxy b2c7484255 param to lower case 2019-04-23 15:42:19 +05:00
dimxy 8b763d971b added missing return 2019-04-23 15:41:14 +05:00
dimxy c19d636d7d added all|open|close opt param to priceslist, mypriceslist 2019-04-23 15:41:13 +05:00
dimxy a18ab80dde mypriceslist added 2019-04-23 15:41:11 +05:00
dimxy efec12bcf5 if TESTMODE PRICES_DAYWINDOW=3 2019-04-23 15:41:09 +05:00
dimxy 82c6560374 costbasis=0 zero div prevention in logging 2019-04-23 15:41:08 +05:00
dimxy 5d296e44f5 try SATOSHIDEN as signed 2019-04-23 15:41:07 +05:00
dimxy d5d633140e corr calc profits refheight 2019-04-23 15:41:06 +05:00
dimxy 5f30987ad6 outprice 2019-04-23 15:41:05 +05:00
dimxy 71b960a1e1 yet corr profits fraction 2019-04-23 15:41:04 +05:00
dimxy 01dfdc6b67 addfunding now in coins
try correct fraction of profits
2019-04-23 15:41:03 +05:00
dimxy 0684f7ab6e corrected temp costbasis calculation for priceinfo
corrected equity loss check
2019-04-23 15:41:02 +05:00
dimxy 41f5437f09 define for 10000 factor added 2019-04-23 15:41:00 +05:00
dimxy d15e1b3a8f removed bad logging 2019-04-23 15:40:59 +05:00
dimxy bcd6e1a4d9 clear lowest pos in price 2019-04-23 15:40:58 +05:00
dimxy f7912ee8f4 more pricedata log 2019-04-23 15:40:57 +05:00
dimxy 7f59d7c76e pricedata logging 2019-04-23 15:40:56 +05:00
dimxy d36e8227d0 corr costbasis & profits calc
added json params
2019-04-23 15:40:55 +05:00
dimxy 3d2c1ea5e0 calc costbasis for firstheight 2019-04-23 15:40:54 +05:00
dimxy 5fa528c0ab try double profits 2019-04-23 15:40:53 +05:00
dimxy 9642776c0a profits log 2019-04-23 15:40:52 +05:00
dimxy d3dbbacaef set calcCostbasis for temp 2019-04-23 15:40:51 +05:00
dimxy f0f091ba0a lev deser restored 2019-04-23 15:40:50 +05:00
dimxy 7e312afc9e char ptrs 2019-04-23 15:40:49 +05:00
dimxy 24a35a4bb0 more lev log 2019-04-23 15:40:48 +05:00
dimxy d7565e75b2 lev log 2019-04-23 15:40:47 +05:00
dimxy 771273f195 costbasis logging 2019-04-23 15:40:46 +05:00
dimxy acd979ea06 set costbasis before 24 as temp
show it txid
2019-04-23 15:40:45 +05:00
dimxy a031847df5 leverage check 0
coin as double
2019-04-23 15:40:44 +05:00
dimxy 26724cae90 pricesget ret check corr 2019-04-23 15:40:43 +05:00
dimxy f6a0ede386 corr priceget params 2019-04-23 15:40:42 +05:00
dimxy a80dd2763e 1of2 change to 1 for bettx 2019-04-23 15:40:41 +05:00
dimxy 8a46a75d0e skip till 2100 2019-04-23 15:40:40 +05:00