Environment
Python 3
I am using PyCharm IDE to interact with my alpaca account. I am also using a MacBook.
Here is the error I am receiving:
“/Users/raphaelriordan/PycharmProjects/alpaca/venv/bin/python /Users/raphaelriordan/PycharmProjects/alpaca/trade.py
b’{“code”:40110000,“message”:“access key verification failed : access key not found (Code = 40110000)”}’”
This is my paper trading account.
Here is the code I am using. I have got my keys listed in a different folder.
import requests
from config import *
BASE_URL = “https://paper-api.alpaca.markets”
ACCOUNT_URL = “{}/v2/account”.format(BASE_URL)
r = requests.get(ACCOUNT_URL, headers={“APCA_API_KEY_ID”: API_KEY, ‘APCA_API_SECRET_KEY’: SECRET_KEY})
print(r.content)
same issue. I hope Alpaca will come to the rescue
Same issue. @Ray_Riordan @Jeddie_Eddie Any luck with this error?
change
r = requests.get(ACCOUNT_URL, headers={“APCA_API_KEY_ID”: API_KEY, ‘APCA_API_SECRET_KEY’: SECRET_KEY})
to
r=requests.get(ACCOUNT_URL, headers={‘APCA-API-KEY-ID’: API_KEY, ‘APCA-API-SECRET-KEY’: API_SECRET})
This solution did not work for me. What else should I try?
Hi all, it’s hard to get a resolution from Alpaca Tech Support. I tried to clarify the problem, starting with the successful account login with issues, account portfolio value showing different account numbers in my account, but not showing the secret number, only showing Acct.#ID & transactions history. After several attempts to resolve, all ended up with System maintenance on April 4, and the 11th. I was given a link to the troubleshooting page, but nothing got resolved.
I created a newly funded account. The Key Generation tab gave options for the expiration, but the API Key was not available in the Account. ID key #, the Transaction ID key, no Secret key at this time. Currently, I use Google & Edge to log in, the worst of all, the login asks for 2FA, which is static when at scan, the other option is to click the code to copy, but if done doesn’t work when pasted. I sent all info to tech. & images Radzi has been writing back and forth with no instructions, but keeps sending Troubleshooting materials, none of which work after the attempts. I’m stuck on the issues, and don’t know if the account portfolio generations belong to the account assigned to me or someone else, ending up in my account. How do I get out of this mess? Are there other ways to create my own Secret API Keys, Account ID #, and Key API Code? I want to get out of this mess ASAP.