RAPTOR v18.4: Исправлена отчетность, активированы выходные

This commit is contained in:
root
2026-04-18 23:26:45 +03:00
commit ef0958239e
312 changed files with 54247 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import asyncio
import os
from t_tech.invest import AsyncClient
from t_tech.invest.schemas import GetForecastRequest
TOKEN = os.environ["INVEST_TOKEN"]
async def main():
async with AsyncClient(TOKEN) as client:
instrument = (
await client.instruments.find_instrument(
query="Сбер Банк - привилегированные акции"
)
).instruments[0]
request = GetForecastRequest(instrument_id=instrument.uid)
response = await client.instruments.get_forecast_by(request=request)
print(instrument.name, response.consensus.recommendation.name)
if __name__ == "__main__":
asyncio.run(main())