infernoman
Legendary
Offline
Activity: 964
Merit: 1000
|
|
October 15, 2016, 07:47:22 PM |
|
Can I get all free APIs for free?
Yes, they are called FREE API Basically what he's saying is You cannot purchase API's from another user because it is locked to your account. If you would like you can purchase their CORE version. and get the FREE api's added to your account for JUST the cost of core. At that point If you would like to purchase a bittrex or another API for YOUR account you can. The ONLY way you can purchase a bittrex api or similar from another user is IF they provide ALL of their accounts, for the exchange API your purchasing. As each API is LOCKED to the API key and secret so if your purchasing a bittrex API from another user. you need CORE + bittrex + the account that the bittrex API is locked to. if your purchasing core from another user, You ONLY need to purchase core from that user, and you can get all of the free api's added to core. After you've purchased it.
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 16, 2016, 10:08:20 PM |
|
2016-10-15 01:43:03| OCR : Create Order (From Pool) Error From C-CEX : Error. Invalid trading pair This is for the BTC-USD pair
This is what i've found. TL;DR : there's a problem on C-CEX Side. This is the explanation with proof : https://c-cex.com/t/api_pub.html?a=getmarketsThis is the API Call to get the complete Market List. If you check inside you will find the Pair USD-BTC, BUT not the Pair BTC-USD on C-CEX exchange there's only the BTC-USD Pair : https://c-cex.com/?p=btc-usd (i'm not able to find any usd-btc) So it seems that USD-BTC is a "zombie" market, BUT data are updated according to BTC-USD Pair. In fact i'm able to load data like "GetOrderBook" and "GetTrades" But i'm not able to create any order due to the "Invalid Pair Error" Another Example This is the ORDERBOOK Api for BTC-USD : https://c-cex.com/t/api_pub.html?a=getorderbook&market=BTC-USD&depth=100&type=both <- THIS IS THE ONLY Market that Exists,BUT is NOT RETURNED from GetMarkets Call And This is the ORDERBOOK Api for USD-BTC : https://c-cex.com/t/api_pub.html?a=getorderbook&market=USD-BTC&depth=100&type=both <- THIS IS WHAT YOU GET USING C.A.T. On the Market Side CAT is 100% Dynamic, so is able to get a dynamic list and manage all trades/orders/etc..... The only thing i can try to do is contact C-CEX Admin.........it's not a problem on C.A.T. Side
|
|
|
|
infernoman
Legendary
Offline
Activity: 964
Merit: 1000
|
|
October 16, 2016, 10:54:11 PM |
|
2016-10-15 01:43:03| OCR : Create Order (From Pool) Error From C-CEX : Error. Invalid trading pair This is for the BTC-USD pair
This is what i've found. TL;DR : there's a problem on C-CEX Side. This is the explanation with proof : https://c-cex.com/t/api_pub.html?a=getmarketsThis is the API Call to get the complete Market List. If you check inside you will find the Pair USD-BTC, BUT not the Pair BTC-USD on C-CEX exchange there's only the BTC-USD Pair : https://c-cex.com/?p=btc-usd (i'm not able to find any usd-btc) So it seems that USD-BTC is a "zombie" market, BUT data are updated according to BTC-USD Pair. In fact i'm able to load data like "GetOrderBook" and "GetTrades" But i'm not able to create any order due to the "Invalid Pair Error" Another Example This is the ORDERBOOK Api for BTC-USD : https://c-cex.com/t/api_pub.html?a=getorderbook&market=BTC-USD&depth=100&type=both <- THIS IS THE ONLY Market that Exists,BUT is NOT RETURNED from GetMarkets Call And This is the ORDERBOOK Api for USD-BTC : https://c-cex.com/t/api_pub.html?a=getorderbook&market=USD-BTC&depth=100&type=both <- THIS IS WHAT YOU GET USING C.A.T. On the Market Side CAT is 100% Dynamic, so is able to get a dynamic list and manage all trades/orders/etc..... The only thing i can try to do is contact C-CEX Admin.........it's not a problem on C.A.T. Side Would you not be able to make cat use BTC-USD instead of USD-BTC?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 16, 2016, 10:57:08 PM |
|
I wrote a PM to C-CEX boss, hope he'll be able to fix from server side. Probably he only need to switch the MarketID USD and BTC code.
|
|
|
|
|
Elmit
|
|
October 17, 2016, 03:30:27 PM |
|
How to use the Tool "Make a Post To URL When a Ping-Pong is Completed http://your.url/page "?
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 17, 2016, 03:37:46 PM |
|
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.
|
|
|
|
Elmit
|
|
October 17, 2016, 04:08:17 PM |
|
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.
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 17, 2016, 04:14:20 PM |
|
No i don't have one actually, but if you run a servlet and print all the message you will get the complete json string.
|
|
|
|
psycodad
Legendary
Offline
Activity: 1648
Merit: 1812
精神分析的爸
|
|
October 18, 2016, 06:08:14 PM |
|
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. Cool feature, Sampey. Works perfectly fine, thank you!
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 18, 2016, 09:52:22 PM |
|
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. Cool feature, Sampey. Works perfectly fine, thank you! Yeah!!!
|
|
|
|
Elmit
|
|
October 19, 2016, 01:40:56 AM |
|
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?
|
|
|
|
mObLOBScHAr
|
|
October 19, 2016, 07:04:00 AM |
|
why don't you just print out everything you receive before trying something more elevated with writting it into a file?
|
|
|
|
Elmit
|
|
October 19, 2016, 08:29:57 AM |
|
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, ...
|
|
|
|
Elmit
|
|
October 20, 2016, 04:35:59 AM |
|
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?
|
|
|
|
crysx
|
|
October 20, 2016, 04:55:44 AM |
|
hi sampey ...
can CAT be setup and run in console under linux ( fedora 23 / 24 x64 or centos 7 x64 ) automatically via a config file? ...
i have a server that can do that - but no gui - which is a preferrable way of working on a big dedicated system ...
i just want it to do specific type of trades at specific intervals - 24 / 7 ...
can this be done - and if so - how? ...
#crysx
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 20, 2016, 05:22:13 AM |
|
hi sampey ...
can CAT be setup and run in console under linux ( fedora 23 / 24 x64 or centos 7 x64 ) automatically via a config file? ...
i have a server that can do that - but no gui - which is a preferrable way of working on a big dedicated system ...
i just want it to do specific type of trades at specific intervals - 24 / 7 ...
can this be done - and if so - how? ...
#crysx
Hi, no sorry, there's no command line operation. You must use the GUI
|
|
|
|
crysx
|
|
October 20, 2016, 10:29:38 AM |
|
hi sampey ...
can CAT be setup and run in console under linux ( fedora 23 / 24 x64 or centos 7 x64 ) automatically via a config file? ...
i have a server that can do that - but no gui - which is a preferrable way of working on a big dedicated system ...
i just want it to do specific type of trades at specific intervals - 24 / 7 ...
can this be done - and if so - how? ...
#crysx
Hi, no sorry, there's no command line operation. You must use the GUI is there any way to convince you to create such a system based off cat? ... #crysx
|
|
|
|
Sampey (OP)
Legendary
Offline
Activity: 2632
Merit: 1040
|
|
October 20, 2016, 11:06:44 AM |
|
is there any way to convince you to create such a system based off cat? ...
The creation of a CAT environment that works only from command line will have an unaccesible cost. It's like some month of coding.....
|
|
|
|
ewibit
Legendary
Offline
Activity: 2955
Merit: 1050
|
|
October 20, 2016, 02:45:13 PM |
|
hi sampey ...
can CAT be setup and run in console under linux ( fedora 23 / 24 x64 or centos 7 x64 ) automatically via a config file? ...
i have a server that can do that - but no gui - which is a preferrable way of working on a big dedicated system ...
i just want it to do specific type of trades at specific intervals - 24 / 7 ...
can this be done - and if so - how? ...
#crysx
Hi, no sorry, there's no command line operation. You must use the GUI 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...
|
|
|
|
|