![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
TAAPI.IO is an API that calculates Technical Analysis Indicator values.
This NPM package is a wrapper and a client for communicating with the TAAPI.IO API
Using this service requires registration. Please check TAAPI.IO. We offer free and paid plans.
Please refer to our main TAAPI.IO Documentation. Here we will provide in-depts explainations and examples.
Get started quickly with NodeJS and calculate indicator values with very few lines of code.
// Import taapi
import Taapi from 'taapi'; // See out main docs for Common JS usage
// Setup client with authentication
const taapi = new Taapi("<MY_SECRET>");
// RSI for Bitcoin to the US Dollar on the hourly from Binance
taapi.getIndicator("rsi", "BTC/USDT", "1h").then( rsi => {
console.log(rsi.value);
});
Fetch the last closed 200 period Exponential Moving Average for Bitcoin to the Dollar on the 1 hour timeframe from the Bybit exchange.
// Import taapi
import Taapi from 'taapi'; // See out main docs for Common JS usage
// Setup client with authentication
const taapi = new Taapi("<MY_SECRET>");
taapi.getIndicator("ema", "BTC/USDT", "1h", { period: 200, backtrack: 1 }, "bybit").then( ema => {
console.log(ema);
});
Using our integration partner Polygon.io, you can easily fetch indicators from the US Stocks & Forex markets. Visit our guide on how to use Polygon.io with TAAPI.IO for detailed explanations.
// Import taapi
import Taapi from 'taapi'; // See out main docs for Common JS usage
// Setup client with authentication
const taapi = new Taapi("<MY_SECRET>");
// Set provider
taapi.setProvider("polygon", "<POLYGON_SECRET>");
// Get stocks indicator
taapi.getIndicator("macd", "AAPL", "1d", {
type: "stocks"
}).then( macd => {
console.log(macd);
});
For Forex examples, please visit out main documentation.
// Import taapi
import Taapi from 'taapi'; // See out main docs for Common JS usage
// Setup client with authentication
const taapi = new Taapi("<MY_SECRET>");
// Reset
taapi.resetBulkConstructs();
// Add calculations
taapi.addCalculation("rsi", "BTC/USDT", "1h", "rsi_1h");
taapi.addCalculation("macd", "BTC/USDT", "1h", "macd_1h");
taapi.addCalculation("ema", "BTC/USDT", "1h", "ema_fast_1h", { period: 9, backtrack: 1 });
taapi.addCalculation("ema", "BTC/USDT", "1h", "ema_slow_1h", { period: 20, backtrack: 1 });
// Execute Crypto request
taapi.executeBulk().then( results => {
console.log(results);
}).catch( error => {
console.error(error)
});
For Stocks & Forex examples, please visit out main documentation.
// Import taapi
import Taapi from 'taapi'; // See out main docs for Common JS usage
// Setup client with authentication
const taapi = new Taapi("<MY_SECRET>");
// Get all USDT pairs traded on Binance
taapi.getExchangeSymbols("crypto", "binance", "USDT").then( symbols => {
console.log(symbols);
});
For more examples including Stocks & Forex, please visit our main documentation.
As of version 1.4.0 of this NPM package is completely rewritten in TypeScript. It does not use CCXT anymore as the data-source, but TAAPI.IO's inhouse data source. To keep using the legacy CCXT client, please see the: taapi-ccxt package. Alternatively install this package version 1.3.1
FAQs
A wrapper and a client for the TAAPI.IO API
The npm package taapi receives a total of 0 weekly downloads. As such, taapi popularity was classified as not popular.
We found that taapi demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.