Developer's Guide - API

From 01 August 2019 url api bitsten move from https://bitsten.com/api/v1 to https://api.bitsten.com/api/v1
Public API
public/getticker
https://api.bitsten.com/v1/public/getticker/{market}
Method GET

Parameter
Required
Description
market
Yes
all,stn_btc,ltc_btc etc
Response for all market https://api.bitsten.com/api/v1/public/getticker/all
{
		    "success": true,
		    "message": "",
		    "result": {
			    "bst_btc": {
			        "last": "0.00000494",
			        "bid": "0.00000401",
			        "ask": "0.00000494",
			        "high": "0.00000494",
			        "low": "0.00000395",
			        "open": "0.00000400",
			        "basevolume": "0.00119178",
			        "btcvolume": "0.00119178",
			        "change": "23.50"
			    },
			    "ltc_btc": {
			        "last": "0.01000000",
			        "bid": "0.01000000",
			        "ask": "0.00999990",
			        "high": "0.01000000",
			        "low": "0.01000000",
			        "open": "0.01000000",
			        "basevolume": "0.00100000",
			        "btcvolume": "0.00100000",
			        "change": "0.00"
			    }, . . . . etc
			}
		}
		

Response for single market https://api.bitsten.com/api/v1/public/getticker/btc_usdt
{
		    "success": true,
		    "message": "",
		    "result": {
		        "btc_usdt": {
		            "last": "0.00000460",
		            "bid": "0.00000500",
		            "ask": "0.00000590",
		            "high": "0.00000600",
		            "low": "0.00000395",
		            "open": "0.00000395",
		            "basevolume": "0.17958818",
		            "btcvolume": "0.17958818",
		            "change": "16.46"
		        }
		    }
		}
		
public/getorderbook
https://api.bitsten.com/api/v1/public/getorderbook/{market}/{typeorder}/{limit}
Method GET

Parameter
Required
Description
market
Yes
stn_btc or ltc_btc or etc
typeorder
Yes
both,buylimit,selllimit
limit
Yes
1-1000
Response for all market https://api.bitsten.com/api/v1/public/getorderbook/btc_usdt/both/4
{
    "success": true,
    "message": "",
    "result": {
        "buylimit": [
            {
                "price": "9708.00000000",
                "amount": "0.00982000"
            },
            {
                "price": "9704.00000000",
                "amount": "0.00715000"
            },
            {
                "price": "9680.00000000",
                "amount": "0.00398000"
            },
            {
                "price": "9651.00000000",
                "amount": "0.01046000"
            }
        ],
        "selllimit": [
            {
                "price": "9753.00000000",
                "amount": "0.00715000"
            },
            {
                "price": "9756.00000000",
                "amount": "0.00207000"
            },
            {
                "price": "9783.00000000",
                "amount": "0.00365000"
            },
            {
                "price": "9784.00000000",
                "amount": "0.00213000"
            }
        ]
    }
}
public/history
https://api.bitsten.com/api/v1/public/history/{market}/{limit}
Method GET

Parameter
Required
Description
market
Yes
stn_btc or ltc_btc or etc
limit
Yes
1-1000
Response https://api.bitsten.com/api/v1/public/history/btc_usdt/5
{
    "success": true,
    "message": "",
    "result": [
        {
            "id": "46155",
            "time": 1589842250,
            "price": "9745.00000000",
            "amount": "0.00631000",
            "trade": "BUY"
        },
        {
            "id": "46154",
            "time": 1589842198,
            "price": "9710.00000000",
            "amount": "0.00466000",
            "trade": "BUY"
        },
        {
            "id": "46153",
            "time": 1589842145,
            "price": "9711.00000000",
            "amount": "0.01011000",
            "trade": "BUY"
        },
        {
            "id": "46152",
            "time": 1589842092,
            "price": "9742.00000000",
            "amount": "0.00262000",
            "trade": "BUY"
        },
        {
            "id": "46151",
            "time": 1589842039,
            "price": "9724.00000000",
            "amount": "0.00272000",
            "trade": "BUY"
        }
    ]
}
public/assets
https://api.bitsten.com/api/v1/public/assets
Method GET

Response https://api.bitsten.com/api/v1/public/assets
{
    "success": true,
    "message": "",
    "result": {
        "btc": {
            "id": "1",
            "name": "Bitcoin",
            "txFee": "0.00030000",
            "minConf": "2",
            "minWd": "0.00050",
            "maxWd": "1.00",
            "disabled": 0,
            "delisted": 0,
            "frozen": 0
        },
        "ltc": {
            "id": "3",
            "name": "Litecoin",
            "txFee": "0.02000000",
            "minConf": "4",
            "minWd": "0.05000",
            "maxWd": "100.00",
            "disabled": 0,
            "delisted": 0,
            "frozen": 0
        },
        "doge": {
            "id": "9",
            "name": "Dogecoin",
            "txFee": "20.00000000",
            "minConf": "4",
            "minWd": "100.00000",
            "maxWd": "100000.00",
            "disabled": 0,
            "delisted": 0,
            "frozen": 0
        }
    }
}