custom code in the cloud in minutes
A customer built a Bitcoin price checker in minutes using CustomScripts, pulling data from CoinGecko. Monitor stocks, weather, or more with custom rules, no cloud setup.
SaaS Solutions
Workflow Automation
AI Integration
Custom Development
Want to track Bitcoin’s price without wading through apps or websites? With CustomScripts, you can whip up a script to fetch real-time data in minutes—no cloud servers or complex setups needed. One of our customers did just that, and we’ll show you how, plus other cool things you can monitor.
Our customer wrote a simple JavaScript function to grab Bitcoin’s price from CoinGecko’s public API. The script sends a request, parses the JSON response, and logs the price (e.g., “Bitcoin: $45,000”). If the API fails, it handles errors gracefully. Here’s the code:
async function getBitcoinPrice() {
const apiUrl = "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd";
try {
const response = await fetch(apiUrl);
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
const data = await response.json();
if (data?.bitcoin?.usd) {
console.log(`Bitcoin price: $${data.bitcoin.usd}`);
return data.bitcoin.usd;
} else {
console.error("Failed to fetch Bitcoin price.");
return null;
}
} catch (error) {
console.error("Error:", error);
return null;
}
}
getBitcoinPrice();
This was just the start. With CustomScripts, they could’ve added sophisticated logic in minutes—like sending an email if Bitcoin drops below $40,000, triggering a buy/sell action via a trading API, or logging price trends to a customers collection for analysis. Our platform’s database (with collections like scripts and automations) makes it easy to extend scripts with rules, notifications, or integrations, no infrastructure needed.
CustomScripts eliminates setup headaches. Write a script, add logic, and run it instantly. Save scripts in folders, schedule them with automations, or manage team access via tenants. It’s serverless, secure, and scales effortlessly, so you can focus on building, not managing.
CustomScripts isn’t just for crypto. Use APIs to create scripts with complex actions, like:
Each script can include rules (e.g., “if stock falls 5%, email the team”) and store results in the database, all built in minutes.