from alpaca.trading.client import TradingClient
from alpaca.trading.requests import GetAssetsRequest
trading_client = TradingClient(API_KEY, SECRET_KEY)
account = trading_client.get_account()
account.account_number
print(account.account_number)
I am using the above code for getting the account_numbe of my live trading account, but it only show the paper account number to me whatever I set paper=True or not.
would any one help to explain ? thanks