redoc icon indicating copy to clipboard operation
redoc copied to clipboard

python sample

Open dma61 opened this issue 3 years ago • 1 comments

Describe the bug Using the python sample: GET/{market}/candles =>

`from python_bitvavo_api.bitvavo import Bitvavo

bitvavo = Bitvavo() response = bitvavo.candles('BTC-EUR', '1m', {}) print (response) for candle in response ['candles']: print('Timestamp', candle[0], ' open', candle[1], ' high', candle[2], ' low', candle[3], ' close', candle[4], ' volume', candle[5])`

We got the message: TypeError: list indices must be integers or slices, not str

Expected behavior It should give something like: [ [ 1538784000000, "4999", "5012", "4999", "5012", "0.45" ] ]

What should be changed?

dma61 avatar May 19 '22 17:05 dma61

Hi @dma61 , thank you for the issue. Can you clarify it? Please add OpenAPI snippet for reproducing.

AlexVarchuk avatar May 19 '22 19:05 AlexVarchuk

If it doesn't work please add the full definition for reproducing and reopen it. Thanks

AlexVarchuk avatar Sep 06 '22 13:09 AlexVarchuk