API

1. REST API

Base URL

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 } ] } }

11. 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" } ] } }