RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
20
invest-python-master/examples/async_get_last_prices.py
Normal file
20
invest-python-master/examples/async_get_last_prices.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
from t_tech.invest import AsyncClient, InstrumentStatus
|
||||
|
||||
TOKEN = os.environ["INVEST_TOKEN"]
|
||||
|
||||
|
||||
async def main():
|
||||
async with AsyncClient(TOKEN) as client:
|
||||
print(
|
||||
await client.market_data.get_last_prices(
|
||||
figi=["BBG004730ZJ9"],
|
||||
instrument_status=InstrumentStatus.INSTRUMENT_STATUS_ALL,
|
||||
)
|
||||
) # pylint:disable=line-too-long
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user