Public API

Public API does not require any Poloniex account.

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.

Ticker

poloniex_aio.public.returnTicker(session)

Returns the ticker for all markets.

Parameters:session – Aiohttp client session object

24-hour volume

poloniex_aio.public.return24hVolume(session)

Returns the 24-hour volume for all markets, plus totals for primary currencies.

Parameters:session – Aiohttp client session object

Order book

poloniex_aio.public.returnOrderBook(session, *, currencyPair)

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.

Parameters:
  • session – Aiohttp client session object
  • currencyPair (String) – Market identifier, example : BTC_ETH

Trade history

poloniex_aio.public.returnTradeHistory(session, *, currencyPair, start=None, end=None)

Returns the past 200 trades for a given market, or up to 50,000 trades between a range specified in UNIX timestamps by the “start” and “end” parameters.

Parameters:
  • session – Aiohttp client session object
  • currencyPair (String) – Market identifier, example : BTC_ETH
  • start (String) – UNIX timestamp. Every returned trade will have a timestamps greater or equal.
  • end (String) – UNIX timestamp. Every returned trade will have a timestamps lower or equal.

Chart data

poloniex_aio.public.returnChartData(session, *, currencyPair, start, end, period)

Returns candlestick chart data.

Parameters:
  • session – Aiohttp client session object
  • currencyPair (String) – Market identifier, example : BTC_ETH
  • start (String) – UNIX timestamp. Every returned trade will have a timestamps greater or equal.
  • end (String) – UNIX timestamp. Every returned trade will have a timestamps lower or equal.
  • period (String) – candlestick period in seconds; valid values are 300, 900, 1800, 7200, 14400, and 86400

Currencies

poloniex_aio.public.returnCurrencies(session)
Parameters:session – Aiohttp client session object

Returns information about currencies.

Loan orders

poloniex_aio.public.returnLoanOrders(session, *, currency)

Returns the list of loan offers and demands for a given currency, specified by the “currency” GET parameter.

Parameters:
  • session – Aiohttp client session object
  • currency (String) – Currency identifier, example : BTC