API Documents


Public API Method

Please note that fetching excessive amounts of data repeatedly and needlessly can result in your IP being banned.
There are six public methods, all of which take HTTP GET requests and return output in JSON format.


▼returnTicker

Returns the current rate.

Parameters Description
command API method name
Input "returnTicker".
Request sample

https://www.fusioncoin.net/api/public/v1?command=returnTicker


▼return24Volume

Returns the 24-hour volume for all markets.

ParametersDescription
commandAPI method name
Input "return24Volume".
Request sample

https://www.fusioncoin.net/api/public/v1?command=return24Volume


▼returnOrderBook

Returns the order book for a given market.

ParametersDescription
commandAPI method name
Input "returnOrderBook".
currencyPair"ALL" or "USD_XFC"
depth
Request sample

https://www.fusioncoin.net/api/public/v1?command=returnOrderBook&currencyPair=USD_XFC&depth=10


▼returnTradeHistory

Returns the past trades for a given market
By default, returns past 200 trades.
Can be specified in UNIX timestamps by using "start" and "end" parameters.
Response data has upper limit.

ParametersDescription
commandAPI method name
Input "returnTradeHistory".
currencyPair"USD_XFC"
startUNIX timestamps
endUNIX timestamps
Request sample

https://www.fusioncoin.net/api/public/v1?command=returnTradeHistory&currencyPair=USD_XFC
&start=1514732400&end=1517410799


▼returnChartData

Returns candlestick chart data.
Can be specified in UNIX timestamps by the "start" and "end".
Response data has upper limit.

ParametersDescription
commandAPI method name
Input "returnChartData".
currencyPair"USD_XFC"
startUNIX timestamps
endUNIX timestamps
periodcandlestick period in seconds
Request sample

https://www.fusioncoin.net/api/public/v1?command=returnChartData&currencyPair=USD_XFC
&start=1514732400&end=1517410799&period=14400


▼returnCurrencies

Returns information about currencies.

ParametersDescription
commandAPI method name
Input "returnCurrencies".
Request sample

https://www.fusioncoin.net/api/public/v1?command=returnCurrencies


Sample

PHP, Python, Node.js sample code