Files
raptor-trading/invest-python-master/examples/users/async_get_bank_accounts.py

17 lines
320 B
Python

import asyncio
import os
from t_tech.invest import AsyncClient
async def main():
token = os.environ["INVEST_TOKEN"]
async with AsyncClient(token) as client:
response = await client.users.get_bank_accounts()
print(response)
if __name__ == "__main__":
asyncio.run(main())