Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.09 KB

File metadata and controls

35 lines (26 loc) · 1.09 KB

Setting Up Market Data API Keys for PortfolioSync

Step 1: Get Free API Keys

Alpha Vantage (Free: 25 calls/day)

  1. Go to: https://www.alphavantage.co/support/#api-key
  2. Enter your email and click "GET FREE API KEY"
  3. Copy the API key (format: XXXXXXXXXXXXXXXX)

Finnhub (Free: 60 calls/minute)

  1. Go to: https://finnhub.io/register
  2. Sign up with your email
  3. Go to Dashboard and copy your API key (format: xxxxxxxxxxxxxxxxxxxxxx)

Step 2: Store in AWS Secrets Manager

Run these commands (replace with your actual keys):

# Store Alpha Vantage API Key
aws secretsmanager create-secret \
    --name "portfoliosync/alpha-vantage-api-key" \
    --description "Alpha Vantage API Key for PortfolioSync" \
    --secret-string "YOUR_ALPHA_VANTAGE_KEY_HERE"

# Store Finnhub API Key
aws secretsmanager create-secret \
    --name "portfoliosync/finnhub-api-key" \
    --description "Finnhub API Key for PortfolioSync" \
    --secret-string "YOUR_FINNHUB_KEY_HERE"

Step 3: I'll update the code to use Secrets Manager

The backend will automatically retrieve keys from Secrets Manager securely.