From 390c34f236a96b6655adca8b7e57b1b1ec99e5db Mon Sep 17 00:00:00 2001 From: Immanuel Edunsin Date: Wed, 23 Jul 2025 16:31:39 +0100 Subject: [PATCH] Delete list_accounts.py --- list_accounts.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 list_accounts.py diff --git a/list_accounts.py b/list_accounts.py deleted file mode 100644 index adeff74..0000000 --- a/list_accounts.py +++ /dev/null @@ -1,17 +0,0 @@ -import os, json -from oandapyV20 import API -from oandapyV20.endpoints.accounts import AccountList - -# 1. Read your practice token from env -token = os.getenv("OANDA_TOKEN") - -# 2. Initialize the client in practice mode -client = API(access_token=token, environment="practice") - -# 3. Create and send the AccountList request -req = AccountList() -resp = client.request(req) - -# 4. Pretty-print the JSON so you can see your account IDs -print(json.dumps(resp, indent=2)) - \ No newline at end of file