1. API Key Setup
Go to your CoinAPI dashboard (
https://www.coinapi.io/).
Generate an API key.
In the Bubble Plugin Editor:
Under Shared Headers, add:
Key: X-CoinAPI-Key
Value: Your CoinAPI key (set as Secret)
2. Configure Plugin API Calls
Each API call is already predefined in the plugin. Here’s how to use them in your Bubble app:
✅ List Exchanges
Purpose: Returns a list of supported exchanges.
Method: GET
Endpoint:
https://rest.coinapi.io/v1/exchangesHow to use: Use as a data source in repeating groups or dropdowns to show exchange names.
✅ List Assets
Purpose: Returns all available crypto and fiat assets.
Method: GET
Endpoint:
https://rest.coinapi.io/v1/assetsHow to use: Great for asset selectors or filtering mechanisms.
✅ List Symbols
Purpose: Retrieve trading symbol pairs (e.g., BTC/USD).
Method: GET
Endpoint:
https://rest.coinapi.io/v1/symbolsUse case: Pairing for quote or conversion functionality.
✅ Get Exchange Rates
Purpose: Converts between currencies in real time.
Method: GET
Endpoint:
https://rest.coinapi.io/v1/exchangerate/{asset_id_base}/{asset_id_quote}
Required Parameters:
asset_id_base: e.g. BTC
asset_id_quote: e.g. USD
How to use: Display converted currency amounts.
✅ Get OHLCV Historical Data
Purpose: Access historical market data (e.g., candlestick charts).
Method: GET
Endpoint:
https://rest.coinapi.io/v1/ohlcv/{symbol_id}/history?period_id=1DAY&time_start=...
Required Parameters:
symbol_id: e.g., BITSTAMP_SPOT_BTC_USD
period_id: e.g., 1DAY, 1HRS
time_start: ISO time format (e.g., 2023-01-01T00:00:00)
How to use: Populate time-series charts or graphs.
✅ Get Latest Quotes
Purpose: Returns live quote data (ask, bid, price).
Method: GET
Endpoint:
https://rest.coinapi.io/v1/quotes/{symbol_id}/latest
Required Parameter: symbol_id
✅ Order Book (Snapshot)
Purpose: Get a snapshot of the market depth.
Method: GET
Endpoint:
https://rest.coinapi.io/v1/orderbooks/{symbol_id}/latest
Required Parameter: symbol_id
Use case: Visualize bids and asks on charts or tables.
🔄 Using the Plugin in Workflows
Go to your Bubble editor.
Create a workflow action where you want to fetch market data.
Use the "Get data from external API" action.
Choose the API call (e.g., Get exchange rates).
Pass dynamic values like asset IDs from dropdowns or custom states.