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
|
return currencies
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
api_address = market_trade.constants.TINKOFF_API_ADDRESS
|
api_address = market_trade.constants.TINKOFF_API_ADDRESS
|
||||||
token = market_trade.constants.TINKOFF_BEARER_TOKEN
|
token = market_trade.constants.TINKOFF_BEARER_TOKEN
|
||||||
authorization_field = market_trade.constants.TINKOFF_AUTHORIZATION_HEADER
|
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)
|
currencies = get_all_currencies(tinkoff_channel)
|
||||||
while True:
|
while True:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
Loading…
x
Reference in New Issue
Block a user