An un-official Node.JS client for TokenAnalyst API.
For a full list of supported endpoints and parameters please refer to the official TokenAnalyst API documentation at https://docs.tokenanalyst.io/#/api
npm i ta-api-node
Please have a look at TokenAnalyst API for the available endpoints and an request parameters.
The client methods names are the camelCase
version of the relevant endpoints names, so:
https://api.tokenanalyst.io/analytics/private/v1/last/exchange_flow_window_historical/last?
woulde be:
ta.exchangeFlowWindowHistorical(params)
Example:
import TA from 'ta-api-node';
const conf = {
apiKey: '<your-api-key>'
}
const ta = TA(conf)
const params = {
format: 'json',
token: 'btc',
exchange: 'binance',
window: '1d',
direction: 'inflow',
from_date: '2019-07-16',
to_date: '2019-10-06',
}
const response = await ta.exchangeFlowWindowHistorical(params);
if (!response.status === 200) {
// Inspect error in response.data
} else {
const {status, data} = response
// Do something cool with data :)
}
Please also check /examples
directory.
Please open an issue for additional help or any other queries.