From 4dc59c089b30259b723a55cef372423a0fa10fd9 Mon Sep 17 00:00:00 2001 From: 4th-turning <43880+4th-turning@users.noreply.github.com> Date: Tue, 9 Apr 2024 19:58:42 -0700 Subject: [PATCH] typo on json account node name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 676a94c..f1f0152 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ import TastytradeClient from "@tastytrade/api" const tastytradeClient = new TastytradeClient(baseUrl, accountStreamerUrl) const loginResponse = await tastytradeClient.sessionService.login(usernameOrEmail, password) const accounts = await tastytradeClient.accountsAndCustomersService.getCustomerAccounts() -const accountPositions = await tastytradeClient.balancesAndPositionsService.getPositionsList(accounts[0].accounts['account-number']) +const accountPositions = await tastytradeClient.balancesAndPositionsService.getPositionsList(accounts[0].account['account-number']) ``` ### Market Data