How to get data from crypto API?

in #crypto2 years ago

This article will introduce a crypto API which is Block.cc is a professional cryptocurrency information service platform that provides cryptocurrency quotes, data, information, and high-performance RESTful JSON endpoints designed to meet the mission-critical demands of application developers, blockchain enthusiasts, cryptocurrency investors, and enterprise business platforms. Included 500+ exchanges, 10,000+ currencies, 28,000+ trading pairs, and 1000+ business users. Block.cc provides three types of interfaces, including metadata, market data, and news data. Today we'll talk about the metadata interface for block.cc.

Meta Data
Metadata is basic data and is generally used as a parameter for requesting market data.

How to get data from Block.cc API
(1)Get a list of all supported markets

Request URL
GET https://data.block.cc/api/v3/markets

GET https://data.block.cc/api/v3/markets/{slug}

Example
return:

[

{

"slug": "binance",

"fullname": "Binance",

"websiteUrl": "https://www.binance.com/",

"volume": 2490122366.2343,

"reportedVolume": 2490122366.2343,

"expectedVolume": 2490122366.2343,

"monthlyVisits": 19386372.159024935,

"status": "enable",

"kline": true,

"spot": true,

"futures": false

},

{

"slug": "okex",

"fullname": "OKEX",

"websiteUrl": "https://www.okex.com",

"volume": 2490122366.2343,

"reportedVolume": 2490122366.2343,

"expectedVolume": 2490122366.2343,

"monthlyVisits": 19386372.159024935,

"status": "enable",

"kline": true,

"spot": true,

"futures": false

}

]

(2)Get a list of all supported currencies

Request URL
GET https://data.block.cc/api/v3/symbols

GET https://data.block.cc/api/v3/symbols/{slug}

Example

Response:

[

{

"logoUrl": "",

"rank": 3,

"volumeUsd": 8391582654.89,

"marketCapUsd": 83717264202.5134,

"availableSupply": 83147694182.5932,

"totalSupply": 86713951794.8747,

"maxSupply": 86713951794.8747,

"priceStartAt": 1427590500000,

"explorerUrls": "https://tronscan.org/#/token20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t,https://snowtrace.io/token/0xc7198437980c041c805a1edcba50c1ce5db95118,https://blockchair.com/bitcoin/omni/property/31,https://www.omniexplorer.info/asset/31,https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7,https://blockexplorer.boba.network/,https://algoexplorer.io/asset/312769,https://polygonscan.com/token/0xc2132d05d31c914a87c6611c10748aeb04b58e8f,https://ethplorer.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7,https://cronos-explorer.crypto.org/token/0x66e428c3f67a68878562e79a0234c1f83c208770,https://avascan.info/blockchain/c/address/0xc7198437980c041c805a1edcba50c1ce5db95118/token,https://bscscan.com/token/0x55d398326f99059ff775485246999027b3197955,https://usdt.tokenview.com/en",

"whitePaperUrls": "https://tether.to/wp-content/uploads/2016/06/TetherWhitePaper.pdf",

"githubId": null,

"twitterId": "tether_to",

"facebookId": "tether.to",

"telegramId": null,

"redditId": null,

"algorithm": null,

"proof": null,

"issueDate": null,

"contractAddress": "31",

"ignore": false,

"fiat": false,

"status": "enable",

"platforms": [

{

"contractAddress": "tr7nhqjekqxgtci8q8zy4pl8otszgjlj6t",

"platform": "TRX",

"explorer": "https://tronscan.org/#/contract/tr7nhqjekqxgtci8q8zy4pl8otszgjlj6t"

},

{

"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",

"platform": "ETH",

"explorer": "https://cn.etherscan.com/token/0xdac17f958d2ee523a2206206994597c13d831ec7"

},

{

"contractAddress": "31",

"platform": "OMNI",

"explorer": "https://omniexplorer.info/asset/31"

}

],

"details": null,

"slug": "tether",

"symbol": "USDT",

"fullname": "Tether",

"websiteUrl": "https://tether.to"

}

]

{

"logoUrl": "",

"rank": 3,

"volumeUsd": 8391582654.89,

"marketCapUsd": 83717264202.5134,

"availableSupply": 83147694182.5932,

"totalSupply": 86713951794.8747,

"maxSupply": 86713951794.8747,

"priceStartAt": 1427590500000,

"explorerUrls": "https://tronscan.org/#/token20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t,https://snowtrace.io/token/0xc7198437980c041c805a1edcba50c1ce5db95118,https://blockchair.com/bitcoin/omni/property/31,https://www.omniexplorer.info/asset/31,https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7,https://blockexplorer.boba.network/,https://algoexplorer.io/asset/312769,https://polygonscan.com/token/0xc2132d05d31c914a87c6611c10748aeb04b58e8f,https://ethplorer.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7,https://cronos-explorer.crypto.org/token/0x66e428c3f67a68878562e79a0234c1f83c208770,https://avascan.info/blockchain/c/address/0xc7198437980c041c805a1edcba50c1ce5db95118/token,https://bscscan.com/token/0x55d398326f99059ff775485246999027b3197955,https://usdt.tokenview.com/en",

"whitePaperUrls": "https://tether.to/wp-content/uploads/2016/06/TetherWhitePaper.pdf",

"githubId": null,

"twitterId": "tether_to",

"facebookId": "tether.to",

"telegramId": null,

"redditId": null,

"algorithm": null,

"proof": null,

"issueDate": null,

"contractAddress": "31",

"ignore": false,

"fiat": false,

"status": "enable",

"platforms": [

{

"contractAddress": "tr7nhqjekqxgtci8q8zy4pl8otszgjlj6t",

"platform": "TRX",

"explorer": "https://tronscan.org/#/contract/tr7nhqjekqxgtci8q8zy4pl8otszgjlj6t"

},

{

"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",

"platform": "ETH",

"explorer": "https://cn.etherscan.com/token/0xdac17f958d2ee523a2206206994597c13d831ec7"

},

{

"contractAddress": "31",

"platform": "OMNI",

"explorer": "https://omniexplorer.info/asset/31"

}

],

"details": null,

"slug": "tether",

"symbol": "USDT",

"fullname": "Tether",

"websiteUrl": "https://tether.to"

}

Get more information, please browse the office website
https://pro.block.cc/

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.030
BTC 62725.12
ETH 2456.82
USDT 1.00
SBD 2.62