TokenAnalyst API client for Node.JS
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
Installation
npm i ta-api-node
Usage
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
Example:
;const conf =apiKey: '<your-api-key>'const ta =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;if !responsestatus === 200// Inspect error in response.dataelseconst status data = response// Do something cool with data :)
Please also check /examples
directory.
Please open an issue for additional help or any other queries.