RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
11
check_acc.py
Normal file
11
check_acc.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os, requests, json
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv("tok.env")
|
||||
TOKEN = os.getenv("TINKOFF_TOKEN")
|
||||
URL = "https://sandbox-invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.SandboxService/GetSandboxAccounts"
|
||||
|
||||
headers = {"Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json"}
|
||||
r = requests.post(URL, json={}, headers=headers)
|
||||
|
||||
print(json.dumps(r.json(), indent=4))
|
||||
Reference in New Issue
Block a user