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,24 @@
import os
from t_tech.invest import Client
from t_tech.invest.schemas import EventType, GetBondEventsRequest, InstrumentType
TOKEN = os.environ["INVEST_TOKEN"]
def main():
with Client(TOKEN) as client:
bond = client.instruments.find_instrument(
query="Тинькофф Банк выпуск 1",
instrument_kind=InstrumentType.INSTRUMENT_TYPE_BOND,
).instruments[0]
request = GetBondEventsRequest(
instrument_id=bond.uid,
type=EventType.EVENT_TYPE_CALL,
)
print(client.instruments.get_bond_events(request=request))
if __name__ == "__main__":
main()