Skip to content

Commit

Permalink
fix python3.5 string format
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBernard committed Aug 10, 2019
1 parent 3d96f85 commit 96b61f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dccd/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# @Email: arthur.bernard.92@gmail.com
# @Date: 2019-03-25 19:31:56
# @Last modified by: ArthurBernard
# @Last modified time: 2019-08-10 10:47:22
# @Last modified time: 2019-08-10 10:55:47

""" Objects to download data from Bitfinex exchange.
Expand Down Expand Up @@ -164,7 +164,7 @@ def get_data_bitfinex(channel, process_func, time_step=60, until=None,
""" Download orderbook from Bitfinex exchange. """
# Set database connector object
if path is None:
path = f'database/orders/{pair}'
path = 'database/orders/{}'.format(pair)

# Set saver object
saver = IODataBase(path, method=save_method)
Expand Down
4 changes: 2 additions & 2 deletions dccd/bitmex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# @Email: arthur.bernard.92@gmail.com
# @Date: 2019-08-07 11:16:51
# @Last modified by: ArthurBernard
# @Last modified time: 2019-08-10 10:48:41
# @Last modified time: 2019-08-10 10:56:39

""" Objects to download data from Bitmex exchange.
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_data_bitmex(process_func, *args, time_step=60, until=None,
""" Download orderbook from Bitfinex exchange. """
# Set database connector object
if path is None:
path = f'database/orders/{pair}'
path = 'database/orders/{}'.format(pair)

# Set saver object
saver = IODataBase(path, method=save_method)
Expand Down

0 comments on commit 96b61f6

Please sign in to comment.