Chat

Trollbox
Users Online: 1428
Search Posts

API


















Last Posts
Thread: API

 Yes, its the very first call in the documentation   Api/GetCurrencies "Status":"Maintenance","StatusMessage":"Unable to sync network", "ListingStatus": "Active"


Thread: API

Is there any Public API which could tell wallet status? Like  Online Offline Maintenace or Other Issues.


Thread: API

Stuck. Can anyone show me example for SubmitWithdraw in PHP. Using  API Wrapper and Sample Trading Bot in PHP. Thank you.


Thread: API

Hi,   I tried to send a trade order over python but it's not working, I'm trying to sell 50 doge in the DOGE_BTC market at 0.00000116 BTC per Doge api_query("SubmitTrade", {'Market':'DOGE/BTC', 'Type':'Sell', 'Rate': 0.00000116, 'Amount:':50} ) However I get this response : {"Success":false,"Error":"Invalid trade amount, Minimum total trade is 0.00000500 BTC","Data":null} Well 50*0.00000116 > 0.00000500 so what is the problem? Thanks


Thread: API

    Check your api secret. I double clicked and copied it but it did not copy the whole api secret. Click four times or ctr+a and check it. It should be like this(edited example) - /RSgfdgfgfkljsalkjdlshuBweCP3uklkjs/9mghfk4=


Thread: API

 There is a working example in this thread for PHP. You can check your code with it.


Thread: API

Hi, im having trouble with submit trade api in php. can you please give example? ive tried everything and keep getting a bad request error, thanks.


Thread: API

 Totally agree, but I guess it would be difficult to change it now that it has been released (no backward compatibility).


Thread: API

[SOLVED! But I'll leave it here in case anyone else is making the same silly mistake! :P ][SOLUTION : There is nothing wrong with the API, the market just didn't have any orders since almost a week ago!!]Hi,  I'm building a desktop interface for the site and I'm having difficulty with GetMarketHistory. BVC/LTC returns me no market history in my app, I used a debug str to return the marketID 2966 which when I put into the URL: Returns: {"Success":true,"Message":null,"Data":[],"Error":null}   Even when I add timespan /24 on the end of the URL.


Thread: API

 Hi All,   Even I am facing the same issue, I've generated new API key and secret, enabled API but not able to get balances, it is showing message as bad request with status 401


Thread: API

Hello,  After successfully logging in, move your cursor over your username in the upper right corner, and click on "Settings" in the appearing menu.  In the settings menu, click on the link "Security" on the left side of the screen.  In section "Account security", you find the API settings. Check the box "Enable API" - et voilĂ . hth


Thread: API

Hi there, I was trying to get my api key to use it on coinigy but it is not that intuitive to get it on Cryptopia, could you give my a hand, please? Thanks for your time!! T


Thread: API

You are right. My code was working. With partially filled orders it is not working as I expected. I am testing a few things now.   I changed my method to workaround your findings. It solves my usecase, but your question is still valid. Thanks for digging in to this!  


Thread: API

Thanks again for your message; I really appreciate that you're trying to help out here.    I've tried it myself with a real-world example; now I have proof of the problem. I created an order and saved all details: After the order was completed, I've queried the trade history for all pairs DOGE_BTC (total: 1) - repsonse: Obvioiusly, OrderId and TradeId are the same.    I've tried to understand your code, but the problem is that an important variable comes out of nowhere: $trade However, I'm not here to question your code. If you've made successful transactions, than I understand that you are sure that your code works as expected and OrderId and TradeId are the same, and that's fine.    But I still have the opinion that OrderId and TradeId are not the same things, and I'd really like to hear something from the staff of Cryptopia about it - anyone out there, or is Cryptopia maintained by an AI without a customer service module?   


Thread: API

The code works. I made more than 100k successful trades with it. I tested the different cases by setting an order on a very low volume market and then doing partial sell/buys and so on.   Here a full method where I use TradeId and OrderId  


Thread: API

Thank you for your message and the code.  Have you ever tested it/is it working successfully?  Because you are comparing the OrderId with the TradeId, which are different things (as pointed out above).   Just an example to show the difference: I've submitted two orders yesterday. One is still open and has the OrderId 31844xxx (8 digits, starting with 3). One is completed and has the TradeId 10276xxx (8 digits, starting with 1). Since IDs are usually consecutive, it is obvious that OrderId and TradeId are not the same. 


Thread: API

Actually I had the same question. The code for figuring out whether a trade is done or not works like this (PHP)   $verify = $this->call('GetTradeHistory', 'POST', $body); $verify = json_decode($verify['content']); $arr = array_filter(    $verify->Data,    function($trade) use ($resp) {        return ($trade->TradeId == $resp->Data->OrderId);    } ); // Is the OrderId we are waiting for to be filled in the history? if (count($arr) == 1) {    return true; } // if not, start over again after a little sleep


Thread: API

  No, these are different IDs.  Would be nice to hear something from the devs of Cryptopia... if this feature is not added, I've to look for an alternative (as mentioned by ffhuang, other exchanges have this feature already), as reliable trading is not doable without the ID (only with dirty workarounds). 


Thread: API

Isn't it that TradeId == OrderId?


Thread: API

Hello, Any update on this request?  Without the OrderId it is not possible to track the completion of a trade...