API Document

1. REST API


The REST API has endpoints for account and order management as well as public market data.

Base url is https://covex.io/

Request URL needs to be determined by BASE and specific endpoint combination.

2. Endpoint


Each interface has its own endpoint, described by field HTTP REQUEST in the docs.

3. Request


All requests and responses are application/json content type.

4.Order Book


Get a list of open orders for a symbol.

Http Request : POST Class/API/OrderBook.php

Request Parameter : Pair : LTCBTC

Response

{"status": 1,"msg": "Success","Info": {"Buy": [{"Volume": "0.61936142","Price": "0.01522400"}],"Sell": [{"Volume": "0.61936142","Price": "0.01522400"}],}}

5.Trade History


Http Request : POST Class/API/Trades.php

Request Parameter : Pair : LTCBTC

Response

{"status": 1,"msg": "Success","Info": [{"Time": 1553751002,"Type": "buy","Volume": "0.40564879","Price": "0.01522400"}]}

6. Last 24 hour Detail


Http Request : POST Class/API/Detail.php

Request Parameter : Pair : LTCBTC

Response

{"status": 1,"msg": "Success","Info": {"volume": "0.00000000","Bid": "0.01522400","Ask": "0.01524000","High": "0.00000000","Low": "0.00000000","LastTradePrice": "0.01522400"}}

7. Historical Data


Http Request : POST Class/API/HistoricalData.php

Request Parameter : Pair : LTCBTC

Response

{"status": 1,"msg": "Success","Info": {"t": [1554109620,1554109560],"o": [0.01464,0.014622,],"h": [0.01465,0.02465,],"l": [0.02465,0.03465,],"c": [0.02465,0.03465,],"v": [15.235689,20.25689,],"s": "ok"}}

8. Market Data


Http Request : GET /api/v1/markets/{btc}

Request Parameter : btc

Response

{ "status": 1,"msg": "Success","Info": [{ "pair": "LTC/BTC", "coin": "Bitcoin", "lastprice": "0.00942300/$95.03", "24hchange": "1.93%", "24hhigh": "0.00980400", "24hlow": "0.00924200", "marketcap": "$28111270.80", "24hvolume": "2787.31670569" } ] }

9. Asset List


Http Request : GET /api/v1/assets

Request Parameter : None

Response

{ "status": 1, "msg": "Success", "Info": { "BTC": { "lastUpdateTimestamp": "2019-07-25T13:27:00Z", "name": "Bitcoin", "UnifiedCryptoassetID": "1", "canWithdraw": true, "canDeposit": true, "minWithdrawal": "0.0025", "maxWithdrawal": "no limit", "makerFee": "0.0006", "takerFee": "0.0006" }, "LTC": { "lastUpdateTimestamp": "2019-07-25T13:27:00Z", "name": "Litecoin", "UnifiedCryptoassetID": "2", "canWithdraw": true, "canDeposit": true, "minWithdrawal": "0.003", "maxWithdrawal": "no limit", "makerFee": "0.002", "takerFee": "0.002" }, "ETH": { "lastUpdateTimestamp": "2019-07-25T13:27:00Z", "name": "Etherum", "UnifiedCryptoassetID": "3", "canWithdraw": true, "canDeposit": true, "minWithdrawal": "0.03", "maxWithdrawal": "no limit", "makerFee": "0.02", "takerFee": "0.02" }, "USDT": { "lastUpdateTimestamp": "2019-07-25T13:27:00Z", "name": "Tether", "UnifiedCryptoassetID": "4", "canWithdraw": true, "canDeposit": true, "minWithdrawal": "7.6", "maxWithdrawal": "no limit", "makerFee": "4.3", "takerFee": "4.3" } } }

10. Ticker Summary


Http Request : GET /api/v1/ticker

Request Parameter : None

Response

{"status": 1, "msg": "Success", "Info": [ { "lastUpdateTimestamp": "2019-07-25T14:47:00Z", "tradingPairs ": "LTCBTC", "LastPrice": "0.00943500", "lowestAsk": "0.00924900", "highestBid": "0.00980400", "baseVolume24h": "28092033.57842464", "quoteVolume24h": "2811.55" }, { "lastUpdateTimestamp": "2019-07-25T14:46:00Z", "tradingPairs ": "ETHBTC", "LastPrice": "0.02207600", "lowestAsk": "0.02138200", "highestBid": "0.02245600", "baseVolume24h": "22451036.32730348", "quoteVolume24h": "2246.98" } ] }

11. Trades List


Http Request : GET /api/v1/trades/{ETHBTC}

Request Parameter : Pair : ETHBTC

Response

{"status": 1, "msg": "Success", "Info": { "ETHBTC": [ { "tradeId": "1556435602120", "price": "0.02212600", "volume": "0.00055540", "time": "2019-07-25T13:27:00Z", "isBuyerMaker": true }, { "tradeId": "1556435602123", "price": "0.02212600", "volume": "0.00055540", "time": "2019-07-25T13:27:00Z", "isBuyerMaker": true } ] } }

12. Depth List


Http Request : GET /api/v1/depth/{ETHLTC}

Request Parameter : Pair : ETHLTC

Response

{"status": 1, "msg": "Success", "Info": { "LastUpdateTimestamp": "2019-07-25T14:19:52Z", "bids": [ { "QTY": "1304.40856873", "PRICE": "0.43584000" }, { "QTY": "118.35742657", "PRICE": "0.00000050" } ], "asks": [ { "QTY": "1276.96652851", "PRICE": "1000000000.00000000" }, { "QTY": "5.81810492", "PRICE": "193.00000000" } ] } }

13. Post Trade


Http Request : POST /api/v1/post-trade

Request Parameter : APIKey : "Your api key" , SecretKey : "Your secret key" , Market : LTCBTC , Price : 0.001 , Side : LTCBTC , OrderType : "buy/sell" , Amount : 1

Response

{"status": 1,"msg": "Success","Result": "REVUb3B0STZYeUVUbDY3aWRSTGhWYXhXR3NiMERQbE83dE43YXY0NUVFTT0="}

14. Order Info By Order Id


Http Request : /api/v1/get-order-by-id

Request Parameter : APIKey : "Your api key" , OrderId : "Your order id"

Response

{ "status": 1, "msg": "Success", "Result": [ { "Amount": "0.40000000", "Price": "100.00000000", "TradeId": "d0JqK2NVa0dVT1ZqcmdsTTRSZTZKTGtHeGRLTXdCeThaYlBac09SaE1Obz0=", "FeeAmount": "0.00000000", "Date": 1565611612, "Status": "Pending", "side": "buy", "Type": "Limit" }, { "Amount": "0.50000000", "Price": "100.00000000", "TradeId": "d0JqK2NVa0dVT1ZqcmdsTTRSZTZKS3dxb28xcExENzgvaDdUSVlkUzZBRT0=", "FeeAmount": "0.00000000", "Date": 1565611630, "Status": "Confirm", "side": "buy", "Type": "Limit" }, { "Amount": "0.10000000", "Price": "100.00000000", "TradeId": "d0JqK2NVa0dVT1ZqcmdsTTRSZTZKSTJXNnpySVdjcmZ6TloyeHpqSkprRT0=", "FeeAmount": "0.00000000", "Date": 1565611635, "Status": "Confirm", "side": "buy", "Type": "Limit" } ] }

15. Deposit


Http Request : /api/v1/deposit

Request Parameter : APIKey : "Your api key" , SecretKey : "Your secret key" , Coin : BTC

Response

{ "status": 1, "msg": "Success", "Result": { "Address": "3GVL28i6CrFwJoSjMh32LxDwFJiVAcrgNH", "Balance": "46493.19060450" } }

16. Withdraw


Http Request : /api/v1/withdraw

Request Parameter : APIKey : "Your api key" , SecretKey : "Your secret key" , Coin : BTC , Amount : 1 , ReceiveAddress : "Your receiving address" , Note : "Your remark"

Response

{ "status": 1, "msg": "Withdraw successfully. Please wait for approval.", "Result": "xJtaDb7BGi" }

17. Cancel Order by Order Id


Http Request : /api/v1/cancel-order-by-id

Request Parameter : APIKey : "Your api key" , SecretKey : "Your secret key" , OrderId : "Your order id"

Response

{ "status": 1, "msg": "Order successfully closed." }

18. Ticker by Summary


Http Request : GET api/public/ticker/LTCBTC

Request Parameter : None

Response

{ "ask": "0.00194500", "bid": "0.00714400", "last": "0.00514700", "open": "0.00512500", "low": "0.00512500", "high": "0.00514700", "volume": "10794052.97563187", "volumeQuote": "1025.31", "timestamp": "2020-09-04T11:32:37Z", "symbol ": "LTCBTC" }

18. Trades By Sorting


Http Request : GET api/public/trades/LTCBTC&sort=desc&by=qudantity&limit=100

Request Parameter : None

Response

[ { "id": "246", "uuid": "246", "price": "0.00938000", "quantity": "1.00000000", "side": "sell", "timestamp": "2020-09-05T7:01:27Z", "unixtimestamp": 1599458619 } ]