From 433ce14e7927efe0b4685c9b4bf542bb05d802ef Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 23 Sep 2022 12:01:10 +0300 Subject: [PATCH] cosmetic fixes --- tools/{save_trades_data.py => save_currencies_data.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename tools/{save_trades_data.py => save_currencies_data.py} (88%) diff --git a/tools/save_trades_data.py b/tools/save_currencies_data.py similarity index 88% rename from tools/save_trades_data.py rename to tools/save_currencies_data.py index 6610ab0..3e0ded3 100644 --- a/tools/save_trades_data.py +++ b/tools/save_currencies_data.py @@ -22,13 +22,13 @@ def get_all_currencies(channel: tinkoff_grpc.src.channel.Channel): return currencies - - if __name__ == '__main__': api_address = market_trade.constants.TINKOFF_API_ADDRESS token = market_trade.constants.TINKOFF_BEARER_TOKEN authorization_field = market_trade.constants.TINKOFF_AUTHORIZATION_HEADER - with tinkoff_grpc.src.channel.Channel(api_address=api_address, token=token, authorization_field=authorization_field) as tinkoff_channel: + with tinkoff_grpc.Channel(api_address=api_address, + token=token, + authorization_field=authorization_field) as tinkoff_channel: currencies = get_all_currencies(tinkoff_channel) while True: time.sleep(1)