API Documentation - Exchange
Pairs
GET https://api.stakecube.net/v1/exchange/pairs
Returns an array of Exchange-Pair objects, each with the following structure:
Field Type Description
pair string Unique identifier of the pair, e.g. "BTC-SCC"
pair_ltr string Left-to-right unique identifier of the pair, e.g. "SCC-BTC"
pair_string string Unique identifier of the pair without separator, e.g. "BTC-SCC"
pair_string_ltr string Left-to-right unique identifier of the pair without separator, e.g. "BTC-SCC"

Tickers
GET https://api.stakecube.net/v1/exchange/tickers
The parameters should be passed in the query component of the URL of GET request.
Name Description Required
base Base market, e.g. "BTC" optional
If the parameter is not specified, the detailed information about all available tickers is returned
target Target market, e.g. "SCC" optional
If the parameter is not specified, the detailed information about all available tickers is returned
Returns an array of Ticker objects, each with the following structure:
Field Type Description
pair string Unique identifier of the pair, e.g. "BTC-SCC"
base string Base market, e.g. "BTC"
target string Target market, e.g. "SCC"
ask string Best ask price. If there are no active selling orders, the field contains the value "null"
bid string Best bid price. If there are no active buying orders, the field contains the value "null"
last_price string Last price. If this information is not available, the field contains the value "null"
low string Lowest price over the last 24 hours. If this information is not available, the field contains the value "null"
high string Highest price over the last 24 hours. If this information is not available, the field contains the value "null"
volume string Total trading volume of the pair over the last 24 hours, expressed in base currency
percentChange string Percentage change of the price over the last 24 hours. If this information is not available, the field contains the value "0"
timestamp datetime Date and time when the ticker was updated

Orderbook
GET https://api.stakecube.net/v1/exchange/orders
The parameters should be passed in the query component of the URL of GET request
Name Description Required
base Base market, e.g. "BTC" required
If the parameter is not specified, an error message will be returned
target Target market, e.g. "SCC" required
If the parameter is not specified, an error message will be returned
limit Maximum number of returned price levels (both buying and selling) per call optional
If the parameter is not specified, the number of levels is limited to 100
Returns an object with the following structure:
Field Type Description
bids array An array of price levels for buying orders, sorted by price from highest to lowest
asks array An array of price levels for selling orders, sorted by price from lowest to highest
- price string Price for which the base currency is bought or sold
- amount string Total amount of target currency that is bought or sold on the price level
- timestamp datetime Date and time when the order was updated

Recent Trades (Market history)
GET https://api.stakecube.net/v1/exchange/trades
The parameters should be passed in the query component of the URL of GET request
Name Description Required
base Base market, e.g. "BTC" required
If the parameter is not specified, an error message will be returned
target Target market, e.g. "SCC" required
If the parameter is not specified, an error message will be returned
limit Maximum number of returned trades (both buying and selling) per call optional
If the parameter is not specified, the number of levels is limited to 100
Returns an object with the following structure:
Field Type Description
price string Price for which the base currency was bought or sold
amount string Amount of target currency that is bought or sold on the price level
type string Trade direction, can have either of the two values: "buy" or "sell"
timestamp datetime Date and time when the trade took place