Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
messari-api
Advanced tools
A Node.js wrapper for the Messari API with no dependencies.
A Node.js wrapper for the Messari API with no dependencies.
Latest version: 1.0.0
npm install messari-api
For complete API documentation, up-to-date parameters, responses and errors, please refer to https://messari.io/api
//1. Import messari-api
const Messari = require('messari-api');
//2. Initiate the Messari API Client
const MessariClient = new Messari();
//3. Make calls
var func = async() => {
let data = await MessariClient.markets.all();
};
All calls using the MessariClient are asynchronous.
All calls are returned in the following format:
{
success: Boolean,
message: String,
code: Number,
data: Object
}
The MessariClient splits up the currently available calls outline in the official Messari API documentation into three parts.
Namespace | Usage | Description |
---|---|---|
markets | MessariClient.markets[...] | Calls related to markets |
assets | MessariClient.assets[...] | Calls related to assets |
news | MessariClient.news[...] | Calls related to news |
Calls related to markets.
markets.all()
Get the list of all exchanges and pairs that the Messari API supports.
Official documentation: https://messari.io/api/docs#operation/getAllMarkets
Usage Example:
let data = await MessariClient.markets.all();
Calls related to assets.
assets.all()
Get the list of all crypto assets that the Messari API supports.
Official documentation: https://messari.io/api/docs#operation/getAllAssets
Params:
params
: Object
- Parameters to pass through to the requestparams.metrics
: Boolean
- Filter results to those with metrics (quantitative)params.profiles
: Boolean
- Filter results to those with profiles (qualitative)Usage Example:
let data = await MessariClient.assets.all();
// With params:
let data = await MessariClient.assets.all({
metrics: true,
profiles: true,
});
assets.fetchProfile()
Get fundamental information by asset symbol.
Official documentation: https://messari.io/api/docs#operation/getProfileBySymbol
Params:
assetSymbol
: String
- (Required) The asset symbol (can be obtained from assets.all()
) eg. btc
Usage Example:
let data = await MessariClient.assets.fetchProfile("btc");
assets.fetchMetrics()
Get quantitative metrics by asset symbol.
Official documentation: https://messari.io/api/docs#operation/getMetricsBySymbol
Params:
assetSymbol
: String
- (Required) The asset symbol (can be obtained from assets.all()
) eg. btc
Usage Example:
let data = await MessariClient.assets.fetchMetrics("btc");
Calls related to news.
news.all()
Get the latest 50 curated articles of news and analysis for all assets
Official documentation: https://messari.io/api/docs#operation/getNews
Usage Example:
let data = await MessariClient.news.all();
news.fetchBySymbol()
Get list of event countries.
Official documentation: https://messari.io/api/docs#operation/getNewsBySymbol
Params:
assetSymbol
: String
- (Required) The asset symbol (can be obtained from assets.all()
) eg. btc
Usage Example:
let data = await MessaroClient.news.fetchBySymbol("btc");
Find me on Gab: @markmiscavage.
Tweet at me: @markmiscavage.
MIT License
Copyright (c) 2019 Mark Miscavage
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A Node.js wrapper for the Messari API with no dependencies.
The npm package messari-api receives a total of 0 weekly downloads. As such, messari-api popularity was classified as not popular.
We found that messari-api 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.