RESTful API

TWP-EX provides the following APIs for block-chain activation.
If you click the item, you can see the detailed explanation.

1. Public API

1-1. Basic Information

[ Returned Value Description ]


Key Name Description
status Result status code (normal: 0000, non-normal codes refer to error messages)
error_message Output an error message when an error occurs
data Result data

1-2. API Information

* {BasicCoin} = BTC, ETH, ORME
* {ExchangeCoin} = BCH, BTC, BTG, DASH, EOS, ETC, ETH, LTC, NEO, OMC, ORME, QTUM, ZEC

[ Returned Example ]


{
	"last" : "0.05541500",
	"last_24" : "0.05541500",
	"dif" : 0.055415,
	"dif_per" : 100,
	"QTY" : "0.00000000",
	"AMT" : "0.00000000",
	"PRICE_MIN" : "0.00000000",
	"PRICE_MAX" : "0.00000000",
	"timestamp" : 1528942041
}


[ Returned Value Description ]


Key Name Description
last last unit price
last_24 Last unit before 24 hours
dif variable amount
dif_per Variable percent
QTY Total quantity for 24 hours
AMT Total amount for 24 hours
PRICE_MIN Minimum amount for 24 hours
PRICE_MAX Maximum amount for 24 hours
timestamp lookup time
* {BasicCoin} = BTC, ETH, ORME
* {ExchangeCoin} = BCH, BTC, BTG, DASH, EOS, ETC, ETH, LTC, NEO, OMC, ORME, QTUM, ZEC

[ Returned Example ]


{
	"selling" : [
		{"PRICE" : "0.05542000","QTY" : "0.10000000"},
		{"PRICE" : "0.05545000","QTY" : "0.23000000"},
		{"PRICE" : "0.05563000","QTY" : "0.90000000"},
		{"PRICE" : "0.05570000","QTY" : "0.31000000"},
		{"PRICE" : "0.05580000","QTY" : "1.01806300"}
	],
	"buying" : [
		{"PRICE" : "0.0551000000000000","QTY" : "1.1000000000000000"},
		{"PRICE" : "0.0552000000000000","QTY" : "4.0000000000000000"},
		{"PRICE" : "0.0553000000000000","QTY" : "0.5000000000000000"},
		{"PRICE" : "0.0554000000000000","QTY" : "0.9000000000000000"},
		{"PRICE" : "0.0554100000000000","QTY" : "0.5000000000000000"}
	],
	"timestamp" : 1528942063
}


[ Returned Value Description ]


Key Name Description
selling Selling in progress (Sub Value Description Reference)
buying Buying in progress (Sub Value Description Reference)
timestamp lookup time


[ Sub Value Description ]


Key Name Description
PRICE unit price
QTY Quantity