2022-07-25 06:05:11 +00:00
|
|
|
id: api-abstract-exchange-rates
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Abstract Api Exchange Rates Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
|
|
|
description: Get live and historical data from 60+ fiat and crypto currencies via a modern REST API
|
|
|
|
reference:
|
|
|
|
- https://www.abstractapi.com/api/exchange-rate-api
|
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/abstract-exchange-rates
|
|
|
|
tags: token-spray,abstractapi
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2022-07-25 06:05:11 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-07-25 06:05:11 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2022-07-26 14:51:38 +00:00
|
|
|
- "https://exchange-rates.abstractapi.com/v1/live/?api_key={{token}}&base=USD"
|
2022-07-25 06:05:11 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"base":'
|
2022-07-26 14:51:38 +00:00
|
|
|
- '"last_updated":'
|
2022-07-25 06:05:11 +00:00
|
|
|
- '"exchange_rate":'
|
|
|
|
condition: and
|