Public API Methods

Please note that making more than 6 calls per second to the public API, or repeatedly and needlessly fetching excessive amounts of data, 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 ticker for all markets. Sample output:

    {"BRL_BTC":{"currencyPair":"BRL_BTC","last":75000,"lowestAsk":35000,"highestBid":100000,"percentChange":0,"baseVolume":7.5,"quoteVolume":0.0001,"high24hr":75000,"min24hr":75000}, "BRL_DGB":{"currencyPair":"BRL_DGB","last":0.09,"lowestAsk":0.01,"highestBid":0.02,"percentChange":0,"baseVolume":1.8,"quoteVolume":20,"high24hr":0.09,"min24hr":0.09}, "BRL_POT":{"currencyPair":"BRL_POT","last":0.3,"lowestAsk":null,"highestBid":null,"percentChange":0,"baseVolume":0.3,"quoteVolume":1,"high24hr":0.3,"min24hr":0.3}, ... }

    Call: https://nanu.exchange/public?command=returnTicker

    Call: https://nanu.exchange/public?command=returnTicker&currencyPair=BTC_NNC

  • returnOrderBook

    Returns the order book for a given market, as well as a sequence number for use with the Push API and an indicator specifying whether the market is frozen. You may set currencyPair to "all" to get the order books of all markets. Sample output:

    {"asks":[[0.00007600,1164],[0.00007620,1300], ... ], "bids":[[0.00006901,200],[0.00006900,408], ... ]}

    Call: https://nanu.exchange/public?command=returnOrderBook&currencyPair=BTC_NNC

  • returnTradeHistory

    Returns the past 200 trades for a given market. Sample output:

    [{"date":"2014-02-10 04:23:23","type":"buy","rate":"0.00007600","amount":"140","total":"0.01064"},{"date":"2014-02-10 01:19:37","type":"buy","rate":"0.00007600","amount":"655","total":"0.04978"}, ... ]

    Call: https://nanu.exchange/public?command=returnTradeHistory&currencyPair=BTC_NNC

  • returnChartData

    Returns candlestick chart data. Required GET parameter "currencyPair". Sample output:

    [{"date":1405699200,"high":0.0045388,"low":0.00403001,"open":0.00404545,"close":0.00427592,"volume":44.11655644,
    "quoteVolume":10259.29079097,"weightedAverage":0.00430015}, ...]

    Call: https://nanu.exchange/public?command=returnChartData&currencyPair=BTC_NNC