
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
CoinCap is a useful tool for real-time pricing and market activity for over 1,000 cryptocurrencies. By collecting exchange data from thousands of markets, we are able to offer transparent and accurate data on asset price and availability.
If you want to add 'api key' or change 'accept encoding', just call the 'configure' method.
No API Key: 200 requests per minute
API Key: 500 requests per minute
Generate API KEY here.
Coincap.configure do |config|
config.api_key = 'XXXXXXXXXXXXXXXXXXXXX'
config.accept_encoding = 'deflate' # Default gzip
end
Detailed information here.
data = Coincap::Assets.list
{
"data": [
{
"id": "bitcoin",
"rank": "1",
"symbol": "BTC",
"name": "Bitcoin",
"supply": "17193925.0000000000000000",
"maxSupply": "21000000.0000000000000000",
"marketCapUsd": "119150835874.4699281625807300",
"volumeUsd24Hr": "2927959461.1750323310959460",
"priceUsd": "6929.8217756835584756",
"changePercent24Hr": "-0.8101417214350335",
"vwap24Hr": "7175.0663247679233209"
},
...
],
"timestamp": 1533581088278
}
data = Coincap::Assets.single('bitcoin')
{
"data": {
"id": "bitcoin",
"rank": "1",
"symbol": "BTC",
"name": "Bitcoin",
"supply": "17193925.0000000000000000",
"maxSupply": "21000000.0000000000000000",
"marketCapUsd": "119179791817.6740161068269075",
"volumeUsd24Hr": "2928356777.6066665425687196",
"priceUsd": "6931.5058555666618359",
"changePercent24Hr": "-0.8101417214350335",
"vwap24Hr": "7175.0663247679233209"
},
"timestamp": 1533581098863
}
data = Coincap::Assets.history('bitcoin', :one_minute)
or
data = Coincap::Assets.history_one_minute('bitcoin')
and with timestamp
data = Coincap::Assets.history_one_minute('bitcoin', 1530403200000, 1533581103627)
{
"data": [
{
"priceUsd": "6379.3997635993342453",
"time": 1530403200000
},
...
],
"timestamp": 1533581103627
}
data = Coincap::Assets.markets('bitcoin')
{
"data": [
{
"exchangeId": "Binance",
"baseId": "bitcoin",
"quoteId": "tether",
"baseSymbol": "BTC",
"quoteSymbol": "USDT",
"volumeUsd24Hr": "277775213.1923032624064566",
"priceUsd": "6263.8645034633024446",
"volumePercent": "7.4239157877678087"
},
...
],
"timestamp": 1539289444052
}
data = Coincap::Rates.list
{
"data": [
{
"id": "barbadian-dollar",
"symbol": "BBD",
"currencySymbol": "$",
"type": "fiat",
"rateUsd": "0.5000000000000000"
},
...
],
"timestamp": 1536347807471
}
data = Coincap::Rates.single('bitcoin')
{
"data": [
{
"id": "barbadian-dollar",
"symbol": "BBD",
"currencySymbol": "$",
"type": "fiat",
"rateUsd": "0.5000000000000000"
},
...
],
"timestamp": 1536347807471
}
data = Coincap::Exchanges.list
{
"data": [
{
"id": "okex",
"name": "Okex",
"rank": "1",
"percentTotalVolume": "21.379485735166293542000000000000000000",
"volumeUsd": "616465445.1646260280799955",
"tradingPairs": "22",
"socket": false,
"exchangeUrl": "https://www.okex.com/",
"updated": 1536343139514
},
...
],
"timestamp": 1536605835421
}
data = Coincap::Exchanges.single
{
"data": {
"id": "kraken",
"name": "Kraken",
"rank": "4",
"percentTotalVolume": "2.946801735133553120000000000000000000",
"volumeUsd": "84969370.4499608426167365",
"tradingPairs": "52",
"socket": false,
"exchangeUrl": "https://kraken.com",
"updated": 1536343139468
},
"timestamp": 1536605874069
}
data = Coincap::Markets.list
{
"data": [
{
"exchangeId": "bitstamp",
"rank": "1",
"baseSymbol": "BTC",
"baseId": "bitcoin",
"quoteSymbol": "USD",
"quoteId": "united-states-dollar",
"priceQuote": "6927.3300000000000000",
"priceUsd": "6927.3300000000000000",
"volumeUsd24Hr": "43341291.9576547008000000",
"percentExchangeVolume": "67.2199253376108585",
"tradesCount24Hr": "420721",
"updated": 1533581033590
},
...
],
"timestamp": 1533581173350
}
FAQs
Unknown package
We found that coincap 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.