
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
client-twelve-data-rapidapi
Advanced tools
Complete TypeScript library for Twelve Data API with 154 endpoints, technical indicators, and intelligent rate limiting
A complete TypeScript library for the Twelve Data API with automatic rate limiting and 154 endpoints covering all financial data categories.
| Category | Endpoints | Coverage |
|---|---|---|
| Reference Data | 9 | ✅ 100% |
| Core Data | 9 | ✅ 100% |
| Mutual Funds | 12 | ✅ 100% |
| Fundamentals | 17 | ✅ 100% |
| Analysis | 9 | ✅ 100% |
| Technical Indicators | 98 | ✅ 100% |
| Total | 154 | ✅ 100% |
# Using npm
npm install client-twelve-data-rapidapi
# Using yarn
yarn add client-twelve-data-rapidapi
# Using bun
bun add client-twelve-data-rapidapi
import TwelveData from 'client-twelve-data-rapidapi';
// Initialize with your API key
const client = new TwelveData({
apiKey: 'your-rapidapi-key-here'
});
// Get real-time stock price
const quote = await client.coreData.getQuote({
symbol: 'AAPL'
});
console.log(`AAPL Current Price: $${quote.close}`);
const client = new TwelveData({
apiKey: 'your-rapidapi-key-here',
baseUrl: 'https://twelve-data1.p.rapidapi.com', // optional
rateLimit: 3000 // optional, default: 3000 requests/minute
});
// Stocks list with filtering
const stocks = await client.referenceData.getStocksList({
exchange: 'NASDAQ',
country: 'United States'
});
// Forex pairs
const forexPairs = await client.referenceData.getForexPairsList();
// Cryptocurrencies
const cryptos = await client.referenceData.getCryptocurrenciesList();
// ETFs list
const etfs = await client.referenceData.getETFsList();
// Symbol search
const search = await client.referenceData.symbolSearch({
symbol: 'AAPL'
});
// Time series data
const timeSeries = await client.coreData.getTimeSeries({
symbol: 'AAPL',
interval: '1day',
outputsize: 100
});
// Real-time quote
const quote = await client.coreData.getQuote({
symbol: 'AAPL'
});
// Exchange rates
const exchangeRate = await client.coreData.getExchangeRate({
symbol: 'EUR/USD'
});
// Market movers
const stockMovers = await client.coreData.getMarketMoversStocks();
// RSI (Relative Strength Index)
const rsi = await client.technicalIndicators.getRSI({
symbol: 'AAPL',
interval: '1day',
time_period: 14
});
// MACD
const macd = await client.technicalIndicators.getMACD({
symbol: 'AAPL',
interval: '1day',
fastperiod: 12,
slowperiod: 26,
signalperiod: 9
});
// Bollinger Bands
const bbands = await client.technicalIndicators.getBBANDS({
symbol: 'AAPL',
interval: '1day',
time_period: 20
});
// All 98 official indicators available...
// Income statement
const income = await client.fundamentals.getIncomeStatement({
symbol: 'AAPL'
});
// Balance sheet
const balance = await client.fundamentals.getBalanceSheet({
symbol: 'AAPL'
});
// Cash flow
const cashFlow = await client.fundamentals.getCashFlow({
symbol: 'AAPL'
});
// Mutual fund list
const funds = await client.mutualFunds.getMutualFundsList();
// Fund family
const family = await client.mutualFunds.getMutualFundFamily({
symbol: 'VTSAX'
});
// Analyst recommendations
const recommendations = await client.analysis.getAnalystRecommendations({
symbol: 'AAPL'
});
// Price target
const target = await client.analysis.getPriceTarget({
symbol: 'AAPL'
});
Automatic intelligent rate limiting with token bucket algorithm:
// Check rate limiter status
const status = client.getRateLimiterStatus();
console.log(`Available tokens: ${status.tokens}`);
console.log(`Queue length: ${status.queueLength}`);
// Reset if needed
client.resetRateLimiter();
Full TypeScript support with comprehensive type definitions:
import type {
TimeSeriesParams,
TimeSeriesData,
QuoteData,
Interval,
TechnicalIndicatorParams
} from 'client-twelve-data-rapidapi';
const params: TimeSeriesParams = {
symbol: 'AAPL',
interval: '1day' as Interval,
outputsize: 30
};
Robust error handling with detailed error information:
try {
const data = await client.coreData.getTimeSeries({
symbol: 'AAPL',
interval: '1day'
});
if (data.error) {
console.error('API Error:', data.error);
} else {
console.log('Success:', data.data);
}
} catch (error) {
console.error('Network Error:', error);
}
1min, 5min, 15min, 30min, 45min1h, 2h, 4h1day, 1week, 1monthThe library includes comprehensive tests covering all 154 endpoints:
# Run tests
bun test
# Run comprehensive API test
bun run api-test.ts
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Give a ⭐️ if this project helped you!
FAQs
Complete TypeScript library for Twelve Data API with 154 endpoints, technical indicators, and intelligent rate limiting
The npm package client-twelve-data-rapidapi receives a total of 0 weekly downloads. As such, client-twelve-data-rapidapi popularity was classified as not popular.
We found that client-twelve-data-rapidapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.