cosmetic fixes

This commit is contained in:
Mark 2022-09-23 12:01:10 +03:00
parent ebac725951
commit 433ce14e79

View File

@ -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)