RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
from t_tech.invest import AsyncClient
|
||||
from t_tech.invest.schemas import InstrumentIdType, InstrumentRequest
|
||||
|
||||
|
||||
async def main():
|
||||
token = os.environ["INVEST_TOKEN"]
|
||||
|
||||
with AsyncClient(token) as client:
|
||||
r = await client.instruments.structured_note_by(
|
||||
request=InstrumentRequest(
|
||||
id_type=InstrumentIdType.INSTRUMENT_ID_TYPE_FIGI, id="BBG012S2DCJ8"
|
||||
)
|
||||
)
|
||||
print(r.instrument)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user