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,30 @@
"""Example - How to get Post Order"""
import os
from uuid import uuid4
from t_tech.invest import Client, OrderDirection, OrderType
from t_tech.invest.schemas import PostOrderAsyncRequest
TOKEN = os.environ["INVEST_TOKEN"]
def main():
with Client(TOKEN) as client:
accounts = client.users.get_accounts()
account_id = accounts.accounts[0].id
request = PostOrderAsyncRequest(
order_type=OrderType.ORDER_TYPE_MARKET,
direction=OrderDirection.ORDER_DIRECTION_BUY,
instrument_id="BBG004730ZJ9",
quantity=1,
account_id=account_id,
order_id=str(uuid4()),
)
response = client.orders.post_order_async(request=request)
print(response)
if __name__ == "__main__":
main()