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,28 @@
import os
from pprint import pprint
from t_tech.invest import Client, GetOperationsByCursorRequest
token = os.environ["INVEST_TOKEN"]
with Client(token) as client:
accounts = client.users.get_accounts()
account_id = accounts.accounts[0].id
def get_request(cursor=""):
return GetOperationsByCursorRequest(
account_id=account_id,
instrument_id="BBG004730N88",
cursor=cursor,
limit=1,
)
operations = client.operations.get_operations_by_cursor(get_request())
print(operations)
depth = 10
while operations.has_next and depth > 0:
request = get_request(cursor=operations.next_cursor)
operations = client.operations.get_operations_by_cursor(request)
pprint(operations)
depth -= 1