Official CoinPaprika API Node.js client library
.catch()
block or by using a try...catch
block with async/await. The error object from the underlying node-fetch
library will contain details about the failure.
getGlobal()
getCoins()
getCoin(coinId)
coinId
: e.g., 'btc-bitcoin'
getAllTickers(options)
options
(Object)
:
coinId
(String)
: ID of a specific coin.quotes
(Array<String>)
: Quote currencies (e.g., ['USD', 'BTC']
).getAllTickers({ historical })
historical
(Object)
:
start
(String)
: Required. Start date (e.g., '2023-01-01'
).end
(String)
: Optional. End date.limit
(Number)
: Optional. Data points limit.quote
(String)
: Optional. Quote currency (e.g., 'usd'
).interval
(String)
: Optional. Time interval (e.g., '1h'
).getCoinsOHLCVHistorical(options)
options
`(Object)**:
coinId
(String)
: Required. ID of a specific coin.quote
(String)
: Optional. Quote currency (defaults to 'usd'
).start
(String)
: Required. Start date.end
(String)
: Optional. End date.node-fetch
: For making HTTP requests.qs
: For query string handling.