Developer's Guide - API

Public API
public/getticker
https://bitsten.com/v1/public/getticker/{market}
Method GET

Parameter
Required
Description
market
Yes
all,stn_btc,ltc_btc etc
Response for all market https://bitsten.com/api/v1/public/getticker/all
{
		    "success": true,
		    "message": "",
		    "result": {
			    "stn_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://bitsten.com/api/v1/public/getticker/stn_btc
{
		    "success": true,
		    "message": "",
		    "result": {
		        "stn_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://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://bitsten.com/api/v1/public/getorderbook/stn_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"
		            }
		        ]
		    }
		}
Market API
market/postorder
https://bitsten.com/api/v1/market/postorder
Method POST

Parameter
Required
Description
user
Yes
The user of apikey
key
Yes
Api Key
nonce
Yes
Curent Time
market
Yes
A string literal for the market (ex:stn_btc)
order
Yes
The type order (buylimit or selllimit)
quantity
Yes
Amount of quantity
rate
Yes
Price to place order
fee
Yes
Type of fee (reg or stn)
Response for open order https://bitsten.com/api/v1/market/postorder
{
		 	"success": 1,
		    "result": {
		        "id": "1963",
		        "date": "2018-08-31 16:47:19",
		        "rate": "0.00000480",
		        "quantity": "10.00000000",
		        "filled": "0.00000000",
		        "result": "0.00000000"
		    },
		    "message": ""
		
market/getopenorders
https://bitsten.com/api/v1/market/getopenorders/{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
Method POST
Parameter
Required
Description
user
Yes
The user of apikey
key
Yes
Api Key
nonce
Yes
Curent Time
Response for all market https://bitsten.com/api/v1/market/getopenorders/stn_btc/both/2
{
		    "success": true,
		    "message": "",
		    "result": {
		        "buylimit": [
		            {
		                "date": "2018-08-09 01:46:50",
		                "id": "926",
		                "price": "0.07000000",
		                "quantity": "100000.00000000",
		                "filled": "0.00000000"
		            },
		            {
		                "date": "2018-08-09 01:47:26",
		                "id": "927",
		                "price": "0.07900000",
		                "quantity": "100000.00000000",
		                "filled": "6620.07321113"
		            }
		        ],
		        "selllimit": []
		    }
			}
			}
			
market/cancel
https://bitsten.com/api/v1/market/cancel/{market}/{typeorder}/{limit}

Method POST

Method GET
Parameter
Required
Description
market
Yes
stn_btc or ltc_btc or etc
typeorder
Yes
buylimit,selllimit
orderid
Yes
Order Id (ex: 1234 )
Method POST
Parameter
Required
Description
user
Yes
The user of apikey
key
Yes
Api Key
nonce
Yes
Curent Time
Response for open order https://bitsten.com/api/v1/market/cancel/stn_btc/buylimit/123
{
			 	"success": 1,
			    "message": ""
			
Account API
account/getbalance
https://bitsten.com/api/v1/account/getbalance/{coin}
Method GET
Parameter
Required
Description
coin
Yes
all or stn , btc , dgb , etc
Method POST
Parameter
Required
Description
user
Yes
The user of apikey
key
Yes
Api Key
nonce
Yes
Curent Time
Response for all market https://bitsten.com/api/v1/account/getbalance/all
{
    "success": true,
    "message": "",
    "result": {
        "btc": {
            "available": "0.03532797",
            "addr": "3FdHxrQh5YUh5yxAsToLgywsDBQKGjS92b"
        },
        "stn": {
            "available": "755381.75669457",
            "addr": "SizsSm1T1tVuFeM7PgFogpQF4EXPf4ZUD3"
        },
        "ltc": {
            "available": "0.09985000",
            "addr": "LRhUZoEiYCyY2KV8vzAdB1kStUiBUGqpQ7"
        },
        "bch": {
            "available": "0.00000000",
            "addr": "bitcoincash:qr2jypgnxwezu6w2540glnv6hsqjyr65aqqxqtw5wy"
        },
        "qtum": {
            "available": "0.00000000",
            "addr": "QfkefnEqHWM5mK8FRWcBBmBppYciwEes7m"
        },
        "dash": {
            "available": "0.03698159",
            "addr": "XcEWwqUNStaTb65UYcpHwKGTrgx3c4JkTJ"
        },
        "doge": {
            "available": "0.00000000",
            "addr": "DLjMAn2MUP1LQzYriW5QD1Abiuo73dWH7E"
        },
        "pso": {
            "available": "0.00000000",
            "addr": "PJwV6G9Syq3gWf64sT18Npmgvrv6rGZN6E"
        },
        "dgb": {
            "available": "0.00000000",
            "addr": "DEU6W7zHtoLsfHaTpgGB28Jj7BmHvD4MYN"
        },
        "zcl": {
            "available": "0.03698878",
            "addr": "t1QXsojV87iCgZbY4TFs4SvYDVhgyqAd7zg"
        },
        "zec": {
            "available": "0.00000000",
            "addr": "t1QGd1CAjDWYV6BoZFRjNyMZNfULri1bqPv"
        },
        "lgs": {
            "available": "0.00000000",
            "addr": "GPMmKGrbHMpuex9EqsQ2GS5zfty4CyExxS"
        }
    }
}