My code is as follows:
_dataClient = Environments.Paper.GetAlpacaDataClient(new SecretKey(apiKeyId, secretKey));
_tradingClient = Environments.Paper.GetAlpacaTradingClient(new SecretKey(apiKeyId,
secretKey));
After that, pulling my account information will throw “Not authorized”
private async void Test()
{
var account = await _tradingClient.GetAccountAsync();
}
Everything works fine if I change the environments to Live, but I am interested in the paper to test my algorithms. Thank you.