Skip to content

Commit de0e0cd

Browse files
authored
Change account number for fetching positions
Assume only one account exists
1 parent fb8e60e commit de0e0cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
print(f"Company Name: {quote.company_name}")
4848

4949
# Get positions and print them out for an account.
50-
positions = ft_accounts.get_positions(account=ft_accounts.account_numbers[1])
50+
positions = ft_accounts.get_positions(account=ft_accounts.account_numbers[0])
5151
print(positions)
5252
for item in positions["items"]:
5353
print(
54-
f"Quantity {item['quantity']} of security {item['symbol']} held in account {ft_accounts.account_numbers[1]}"
54+
f"Quantity {item['quantity']} of security {item['symbol']} held in account {ft_accounts.account_numbers[0]}"
5555
)
5656

5757
# Get account history (past 200)

0 commit comments

Comments
 (0)