Create api-coinmarketcap.yaml

patch-1
Muhammad Daffa 2022-04-17 14:01:34 +07:00 committed by GitHub
parent cb122d447f
commit 8bbb88defa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
id: api-coinmarketcap
info:
name: CoinMarketCap API Test
author: daffainfo
severity: info
reference:
- https://coinmarketcap.com/api/documentation/v1
- https://github.com/daffainfo/all-about-apikey/blob/main/Cryptocurrency/CoinMarketCap.md
tags: token-spray,coinmarketcap
self-contained: true
requests:
- raw:
- |
GET /v1/cryptocurrency/listings/latest HTTP/1.1
Host: pro-api.coinmarketcap.com
X-CMC_PRO_API_KEY: {{token}}
matchers:
- type: word
part: body
words:
- '"name"'
- '"symbol"'
- '"cmc_rank"'
condition: and