API Documentation

Overview

COIN ASSET provide REST API allow you to programmatically performs actions with our exchange system. Our API return all data in JSON format.

Public API

Ticker

Return all Markets data.

Request

Response

Order Books

Return all order book for a symbol pairing.

Request

Parameter

Name Type Mandatory Description
symbol String Yes
limit int No Default 100, Range 1-1000

Example

Response

Recent Trades

Get recent trades (up to last 1,000).

Request

Parameter

Name Type Mandatory Description
symbol String Yes
limit int No Default 100, Range 1-1000

Example

Response

Private API

In order to use private API, you will need to create an API key for your account.
All request to the private API are sent via HTTPS POST to https://api.coinasset.co.th and must contain the following parameters via either queryString or in postBody:

  • api_key Your API Key.
  • signature A HMAC SHA256 signatures signed by your API Key and secret. A PHP code example hash_hmac('sha256', $api_key, $secret)
  • timestamp Timestamp is a "nonce" parameter, an integer which must always be greater than the previous nonce used.

Create Order

Request Buy Order

Request Sell Order

Parameter

Name Type Mandatory Description
pair_id String Yes
quantity Number Yes
price Number Yes
note string optional Additional note for order

Response

Response (Error)

Cancel Order

Request

Parameter

Name Type Mandatory Description
order_id String Yes

Response

Response (Error)

Opened Order

Request

Response

Transaction History

Request

Parameter

Name Type Mandatory Description
start_date date No
format Y-m-d. Ex. 2018-09-01
Default 30 days
end_date date No format Y-m-d. Ex. 2018-09-30

Response

Balance

Return all user balances for all currencies.

Request

Response

Deposit Address

Return all user deposit addresses for all currencies.

Request

Response

Create a new deposit address.

Request

Parameter

Name Type Mandatory Description
currency_id String Yes Currency symbol to create a deposit address for.

Response