Asset API
The Asset api collection has public as well as private api's. The pubic api doesn't require authentication but the private api require Authentication. Please refer authentication section.The standard ratelimit applied for all the market API's.
Get Assets
This endpoint is used to get all asset information. The user can also request for the details of a specific asset
HTTP Request
GET /api/v1/assets/<asset name>
Example Requests
GET /api/v1/assets
- Returns all assetsGET /api/v1/assets/btc
Response Parameters
Parameters | Parameter Type | Description |
---|---|---|
asset | String | Asset Symbol e.g. btc |
can_deposit | Boolean | Is deposit enabled or disabled |
can_withdraw | Boolean | Is withdraw enabled or disabled |
minimum_withdraw | Integer | Minimum withdraw amount for asset |
delister | Boolean | Delist for asset |
taker_fee | String | Taker Fee |
maker_fee | String | Maker Fee |
Example Response
{
"result": [
{
"name": "Ethereum",
"code": "ETH",
"can_withdraw": true,
"can_deposit": true,
"minimum_withdraw": 0.05,
"delisted": false,
"taker_fee": "0.1",
"maker_fee": "0.1"
},
{
"name": "Beldex",
"code": "BDX",
"can_withdraw": true,
"can_deposit": true,
"minimum_withdraw": 500,
"delisted": false,
"taker_fee": "0.1",
"maker_fee": "0.1"
},
{
"name": "Dash",
"code": "DASH",
"can_withdraw": true,
"can_deposit": true,
"minimum_withdraw": 0.004,
"delisted": false,
"taker_fee": "0.1",
"maker_fee": "0.1"
},
]
}
Asset Balance
Returns balance of all assets if no assets is given, you can also provide list of assets to get the balance.
HTTP Request
GET /api/v1/asset/balance
Example Request
GET /api/v1/asset/balance
Returns all asset balancesGET /api/v1/asset/balance?asset=ETH,BTC,XMR
Response Parameter
Parameters | Parameter Type | Description |
---|---|---|
available | String | Total available balance for the asset |
freeze | String | Balance that are in order |
Example Response
{
"result": {
"ETH": {
"available": "127",
"freeze": "2.7"
},
"XMR": {
"available": "29.78",
"freeze": "1.89"
},
"BTC": {
"available": "0.98",
"freeze": "0.0034"
}
}
}
Balance History
Returns balance history of the provided asset. If the asset value is null
the the balance history of all the asset will be returned.
HTTP Request
POST /api/v1/asset/balance/history
Example Request
POST /api/v1/asset/balance/history
Example Request Payload:
{
"asset":"BDX",
"type":"deposit",
"start_time":0,
"end_time":0,
"offset":0,
"limit":10
}
Request Parameter
Parameters | Parameter Type | Description |
---|---|---|
asset | String | Asset symbol e.g. ETH |
start_time | Integer | Start time, 0 for unlimited |
end_time | Integer | End time, 0 for unlimited |
offset | Integer | Offset position |
limit | Integer | No of records to limit |
Example Response
{
"result": {
"offset": 0,
"limit": 10,
"records": [
{
"time": 1579777145.411906,
"balance": "1000",
"asset": "BDX",
"detail": {
"id": 10
},
"change": "1000"
}
]
}
}