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/bst_btc
{
		    "success": true,
		    "message": "",
		    "result": {
		        "bst_btc": {
		            "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/bst_btc/both/2
{
		    "success": true,
		    "message": "",
		    "result": {
		        "buylimit": [
		            {
		                "price": "0.00000500",
		                "amount": "8280.00000000"
		            },
		            {
		                "price": "0.00000425",
		                "amount": "2412.00000000"
		            }
		        ],
		        "selllimit": [
		            {
		                "price": "0.00000590",
		                "amount": "4285.50650662"
		            },
		            {
		                "price": "0.00000595",
		                "amount": "214.00000000"
		            }
		        ]
		    }
		}
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/bst_btc/5
{
    "success": true,
    "message": "",
    "result": [
        {
            "id": "7266",
            "time": 1560785439,
            "price": "100000000.00000000",
            "amount": "0.10000000",
            "trade": "SELL"
        },
        {
            "id": "7265",
            "time": 1560785167,
            "price": "122220000.00000000",
            "amount": "0.10000000",
            "trade": "SELL"
        },
        {
            "id": "7263",
            "time": 1560785072,
            "price": "1000000.00000000",
            "amount": "1.00000000",
            "trade": "BUY"
        },
        {
            "id": "7260",
            "time": 1560784847,
            "price": "50.00000000",
            "amount": "1.00000000",
            "trade": "BUY"
        },
        {
            "id": "7254",
            "time": 1560776779,
            "price": "31.00000000",
            "amount": "10.00000000",
            "trade": "BUY"
        }
    ]
}