cosmetic fixes
This commit is contained in:
parent
ebac725951
commit
433ce14e79
@ -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)
|
||||
Loading…
x
Reference in New Issue
Block a user