🔑 Step 1: Get Your MarketStack API Key
Go to
https://marketstack.com/Create an account or log in.
Copy your API key from your dashboard.
🧱 Step 2: Create a New Plugin (If you're building this yourself)
Open the Bubble Plugin Editor.
Create a new plugin and name it something like MarketStack.
Navigate to the API Calls tab on the left.
🔒 Step 3: Add Authentication
Authentication: Set to None or self-handled
Under Shared Parameters for All Calls:
Key: access_key
Value: Paste your API key
Set the value to Secret
🔗 Step 4: Add API Endpoints
Here’s how to set up each individual call as shown in your screenshots.
🔹 1. End of Day Data
Name: End of day data
Method: GET
Use as: Data
Data Type: JSON
URL:
bash
Copy
Edit
http://api.marketstack.com/v1/eod?symbols=[Symbol]
URL Parameters:
Symbol = aapl (or dynamic value) | Public
🔹 2. Intraday Data
Name: Intraday data
URL:
bash
Copy
Edit
http://api.marketstack.com/v1/intraday?symbols=[symbols]
URL Parameters:
symbols = aapl (or dynamic value) | Public
🔹 3. Historical Data
Name: Historical data
URL:
pgsql
Copy
Edit
http://api.marketstack.com/v1/eod?symbols=[symbols]&date_from=[Date from]&date_to=[Date to]
URL Parameters:
symbols = AAPL
Date from = YYYY-MM-DD
Date to = YYYY-MM-DD
🔹 4. Splits Data
Name: Splits Data
URL:
http://api.marketstack.com/v1/splits?symbols=[Symbols]
🔹 5. Dividends Data
Name: Dividends data
URL:
http://api.marketstack.com/v1/dividends?symbols=[symbols]
🔹 6. Tickers
Name: Tickers
URL:
http://api.marketstack.com/v1/tickers🔹 7. Exchanges
Name: Exchanges
URL:
http://api.marketstack.com/v1/exchanges🔹 8. Currencies
Name: Currencies
URL:
bash
Copy
Edit
http://api.marketstack.com/v1/currencies🔹 9. Timezones
Name: Timezones
URL:
http://api.marketstack.com/v1/timezones✅ Step 5: Save and Reinitialize
Click Save.
For each call, click Reinitialize Call to confirm that the setup works and Bubble can fetch the response.
🧪 Step 6: Use in Bubble App
Go to your Bubble app editor.
In the API Connector (or plugin editor), choose the MarketStack plugin.
Use the calls as data sources in:
Repeating groups
Dynamic text elements
Charts
Bind parameters like [symbols] dynamically using Bubble inputs.