API

Public Api V1

/pairs.php

A List of all Trading Pairs on the market

Direct Link: https://kema.io/api/pairs.php

or to use curl:

curl https://kema.io/api/pairs.php

Sample Output:

[{"ticker_id":"KEMA_BTC","base":"KEMA","target":"BTC"},{"ticker_id":"KEMA_LTC","base":"KEMA","target":"LTC"},{"ticker_id":"KEMA_USD","base":"KEMA","target":"USD"}]

/tickers.php

24 Hour Market Info for each market pair.

Direct Link: https://kema.io/api/tickers.php

or to use curl:

curl https://kema.io/api/tickers.php

Sample Output:

[{"ticker_id":"KEMA_BTC","base_currency":"KEMA","target_currency":"BTC","last_price":"0.00000003","base_volume":"2400.00000000","target_volume":"0.00015200","bid":0,"ask":0,"high":"0.00000007","low":"0.00000003"},{"ticker_id":"KEMA_LTC","base_currency":"KEMA","target_currency":"LTC","last_price":"0.00030000","base_volume":"6085.47862595","target_volume":"0.04920557","bid":"0.00001310","ask":0,"high":"0.00030000","low":"0.00001310"},{"ticker_id":"KEMA_USD","base_currency":"KEMA","target_currency":"USD","last_price":"0.00030000","base_volume":"78117.19319346","target_volume":"66.47196165","bid":"0.00060698","ask":"0.00060699","high":"0.00900000","low":"0.00000080"}]

/orderbook.php

Orderbook Endpoint is to provide information with at least a depth = 100 (50 each side) returned for a given market pair/ticker. Specify the depth or 0 returns full depth.

Example query: https://kema.io/api/orderbook.php?ticker_id=KEMA_USD&depth=200

or to use curl:

curl https://kema.io/api/orderbook.php?ticker_id=KEMA_USD&depth=200

Sample Output:

{"ticker_id":"KEMA_USD","timestamp":"1588969223","bids":[["1000.00000000","0.60697000"],["1000.00000000","0.60698000"]],"asks":[["72483.77401549","43.99692599"],["1000.00000000","0.60700000"]]}

/historical_trades.php

Historical Trades Endpoint is to provide historical completed trades returned for a given market pair. Specify the limit or 0 for full history.

Example query: https://kema.io/api/historical_trades.php?ticker_id=KEMA_USD&limit=10

or to use curl:

curl https://kema.io/api/historical_trades.php?ticker_id=KEMA_USD&limit=10

Sample Output:

{"Buy":[{"trade_id":"1","price":"0.00030000","base_volume":"1000.00000000","target_volume":"0.30000000","trade_timestamp":"1587619924","type":"buy"},{"trade_id":"4","price":"0.00030000","base_volume":"1000.00000000","target_volume":"0.30000000","trade_timestamp":"1587621151","type":"buy"},{"trade_id":"6","price":"0.00030000","base_volume":"100.00000000","target_volume":"0.03000000","trade_timestamp":"1587622229","type":"buy"},{"trade_id":"7","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622313","type":"buy"},{"trade_id":"9","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622551","type":"buy"},{"trade_id":"12","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622738","type":"buy"}],"Sell":[{"trade_id":"2","price":"0.00030000","base_volume":"1000.00000000","target_volume":"0.30000000","trade_timestamp":"1587619999","type":"sell"},{"trade_id":"3","price":"0.00030000","base_volume":"1000.00000000","target_volume":"0.30000000","trade_timestamp":"1587621124","type":"sell"},{"trade_id":"8","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622333","type":"sell"},{"trade_id":"10","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622573","type":"sell"},{"trade_id":"11","price":"0.00030000","base_volume":"1.00000000","target_volume":"0.00030000","trade_timestamp":"1587622721","type":"sell"}]}