dominiktraxl / pykrakenapi

A python implementation of the Kraken API.
GNU Lesser General Public License v3.0
225 stars 53 forks source link

get_ticker_information #40

Closed miwahn closed 3 years ago

miwahn commented 4 years ago

Hi. Thanks for the great work on this. There might be a little problem with the get_ticker_information function - it's taking a list of tickers as an input, but only seems to return a single row in the output dataframe. Sorry in advance if I missed/misunderstood anything

dominiktraxl commented 3 years ago

Hi. get_ticker_information takes a string as input, not a list (see docstring). So this works:

import krakenex
import pykrakenapi
k = pykrakenapi.KrakenAPI(krakenex.API())
k.get_ticker_information('AAVEETH,ZEURZUSD')

whereas k.get_ticker_information(['AAVEETH', 'ZEURZUSD']) doesn't throw an exception, but rather returns only the ticker information of the last entry of the list