various fixes

This commit is contained in:
2025-11-24 19:55:38 +01:00
parent 159095ce5a
commit 5977ed5c15
14 changed files with 3168 additions and 1685 deletions

13
tools/t.py Normal file
View File

@@ -0,0 +1,13 @@
import tinkoff_grpc
import market_trade.constants
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.Channel(api_address=api_address,
token=token,
authorization_field=authorization_field) as tinkoff_channel:
instrument_service = tinkoff_grpc.InstrumentsService(tinkoff_channel)
currencies = instrument_service.get_currencies(market_trade.constants.DEFAULT_INSTRUMENT_STATUS)
for currency in currencies:
print(currency.figi, currency.iso_code)