I am selling my license. As I am lacking an assistant who does all that fancy finance stuff for me, this program is earning me 0 (zero) btc.
I checked how many times you asked here, and found never before! It seems therefore that you could really need somebody who can serve you, read your mind, and maybe change your diapers too. Try playing lottery, its easier to understand.
|
|
|
GUI and this is one of the weakenings of CAT in Linux environments (local or VPS) Java (respectively CAT GUI) deep-freeze beyond a certain time and all is no more accessible... When programs are complex a gui is needed. There are tons of buttons and functions, it's not possible to create a no-Gui env, it will be so complex that nobody will use it. About the freeze problems, i'm continue telling you that YOUR installation got problems, 99% of C.A.T. users doesn't have any kind of problems. as I have said above it is the same on a rented VPS runnung Linux... perhaps most users have runnung only a few trading pairs and hence not that issue... I don't get your problem!!! Are you asking how to add graphic to your VPS? Google for it. I did it also to a Digital Ocean Cloud VPS. It is slow, it has no god resolution, but it does work. Besides, I think you SHOULD use for 100+ markets a dedicated machine. RAM will be an issue, as well as API per seconds. You might be even blocked by an exchange.
|
|
|
The JSON starts after the "=" sign.
Exactly, first you must extract the DATA value, then parse it as JSON. Yes, that is a WORKAROUND. The correct way is to do what you said: IT'S A JSON!!! While you already removing this nonsense string before and including "=" please add the Exchange name to it. Thank you very much. I am sure you can do that in less then 5 minutes. Thank you again!
|
|
|
I found the problem with the "JSON": The raw data I receive is: Content is data={"PingPong":{"Market":"BURST/BTC","TimeStamp":"2016-10-21 02:19:13","OriginalTradeType":"BUY","OriginalTradePrice":"0.00000142","OriginalTradeQuantity":"842.28169013","OriginalTradeFee":"0.00000179","FinalTradeType":"SELL","FinalTradePrice":"0.00000143","FinalTradeQuantity":"840.17598590","FinalTradeFee":"0.00000181","TotalFee":"0.00000360","Gain":"0.00000479","PercentageGain":"0.704","MarketComulativeGain":"0.00480284"}} http://www.jslint.com/ shows that this is not a JSON!!! The JSON starts after the "=" sign. Can you please remove the left part including the "=" sign ("Content is data=") and add the Exchange name.
|
|
|
I still stuck here. Thats what I tried: <?php header('Content-Type: application/json');
$myFile = "testFile.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $date = new DateTime(); $date = $date->format("Y-m-d H:i:s"); fwrite($fh, $date . "\n===================\n");
$error = '';
//Make sure that it is a POST request. if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){ $error = "Request method must be POST!\n"; }
//Make sure that the content type of the POST request has been set to application/json $contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : ''; if(strcasecmp($contentType, 'application/json') != 0){ $error = $error . "Content type must be: application/json\n"; }
//Receive the RAW post data. $content = trim(file_get_contents("php://input")); //Attempt to decode the incoming RAW post data from JSON. $decoded = json_decode($content, true); //If json_decode failed, the JSON is invalid. if(!is_array($decoded)){ $error = $error . "Received content contained invalid JSON!\n"; } //If error, put it into out put file if($error) { fwrite($fh, $error); }
fwrite($fh, $decoded); fclose($fh);
?>
Can anybody spot something? I had not a good trading pair, I had to wait for the respond very long: 2016-10-20 12:15:54 =================== Content type must be: application/json Received content contained invalid JSON! Can you please add the missing header?
|
|
|
why don't you just print out everything you receive before trying something more elevated with writting it into a file?
How would you do that? Maybe you miss the point here. C.A.T. sends info to the server, to an URL. I am not the server. The program receives it, there is no screen, to see it, ...
|
|
|
I still stuck here. Thats what I tried: <?php header('Content-Type: application/json');
$myFile = "testFile.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $date = new DateTime(); $date = $date->format("Y-m-d H:i:s"); fwrite($fh, $date . "\n===================\n");
$error = '';
//Make sure that it is a POST request. if(strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0){ $error = "Request method must be POST!\n"; }
//Make sure that the content type of the POST request has been set to application/json $contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : ''; if(strcasecmp($contentType, 'application/json') != 0){ $error = $error . "Content type must be: application/json\n"; }
//Receive the RAW post data. $content = trim(file_get_contents("php://input")); //Attempt to decode the incoming RAW post data from JSON. $decoded = json_decode($content, true); //If json_decode failed, the JSON is invalid. if(!is_array($decoded)){ $error = $error . "Received content contained invalid JSON!\n"; } //If error, put it into out put file if($error) { fwrite($fh, $error); }
fwrite($fh, $decoded); fclose($fh);
?>
Can anybody spot something?
|
|
|
Do you have an example Jason string available? you need to create a webservice with a servlet http://your.url/servlet and then CAT will send a JSON data when a Gain occurs.
|
|
|
Usually pools don't payout if its not above a threshold. Ask the pool operator for details in your case.
|
|
|
Wouldn't it be nice to get all these recalled Samsung phones to use them as an Android BURST miner?
|
|
|
I am looking for pool operators based on uray source who can help me a little with setup pool.
I run uray source and it is working fine but when i open main page everything is static. No dynamic contest like Best deadline, round elapsed. Current round shares is empty. Only thing which is visible is All round shares and Recent payments. System is Debian 8.6 with nodejs from repozitory.
Unlike Windows, Linux does distinguish between small and capital characters. ( client)
|
|
|
Is this a bug? 2016-10-09 19:57:14| 2016-10-09 19:57:14 - API Get User Trades Error. Trace Is : java.lang.UnsupportedOperationException: Not an array: null at JSON.JsonValue.asArray(Unknown Source) at CAT.apiSystemBot.Support.CJ.getSubArray(Unknown Source) at CAT.apiSystemBot.API_Bittrex.getMyTrades(Unknown Source) at CAT.apiSystemBot.Support.API_INVOKER.getMyTrades(Unknown Source) at CAT.singleMarketEnv.CoreOrderEnv.PPMarketBrain.updateMyTrades(Unknown Source) at CAT.singleMarketEnv.CoreOrderEnv.PPMarketBrain.updateOrderMyOrderMyTrades(Unknown Source) at CAT.singleMarketEnv.Core.PPPingPongAlgo.startLookup(Unknown Source) at CAT.singleMarketEnv.Core.a.run(Unknown Source) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
-----
|
|
|
Is this a bug? (I just got up, maybe it's me) My balance shows 6000 BURST coins left and reserved for orders 19734. However, my orders are only 12055. I arrived to that, when I deleted the Pong Order, since the price was not anymore in the range of current trading. It seems it did not updated the balance. I clicked several times the Load balances button.
|
|
|
I can add a function to clear the table log if you want Yes please, after several months running CAT I noticed that the logs folders take lots of space, and I am now running it on a Raspberry. So cleaning the logs periodically would be nice. Maybe delete older than instead delete all.
|
|
|
With the Oracle Java I get even the sound when trades occur on Linux.
|
|
|
I finally see some gains. It is not great yet, but I do not risk much either. In the past 24 hours (since my C.A.T. does not freeze anymore) I gained about 20,000 Satoshi with only one coin.
|
|
|
You might be right, since I have switched to oracle sdk, I dont see any frozen screens anymore. Thanks for the hint.
|
|
|
How does it work when there are now 100+ users using this software on maybe 3 decent altcoin exchanges ? The coins are also limited to volume isn't everyone just fighting everyone squeezing the margins into nothing ?
C.A.T. is one of the available TOOLS, some people use no tool at all, ... so there are many different traders on an exchange. If there are no trades then it is properly not a good coin anyway.
|
|
|
|