Skip to content

Commit

Permalink
formatting edits
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jan 5, 2018
1 parent f9a6658 commit 11f9b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/py/fetch-ohlcv-kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

def print_chart(exchange, symbol, timeframe):

print("\n" + exchange.name + ' ' + symbol + ' ' + timeframe + ' chart:')

# get a list of ohlcv candles
ohlcv = exchange.fetch_ohlcv(symbol, timeframe)

Expand All @@ -41,6 +39,8 @@ def print_chart(exchange, symbol, timeframe):
for x in ohlcv:
print(exchange.iso8601(x[0]), x)

print("\n" + exchange.name + ' ' + symbol + ' ' + timeframe + ' chart:')

# print the chart
print("\n" + asciichart.plot(series[-length:], {'height': height})) # print the chart

Expand Down

0 comments on commit 11f9b30

Please sign in to comment.