27 lines
723 B
YAML
27 lines
723 B
YAML
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
|
|
|
|
self-contained: true
|
|
requests:
|
|
- method: GET
|
|
path:
|
|
- "https://exchange-rates.abstractapi.com/v1/live/?api_key={{token}}&base=USD"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '"base":'
|
|
- '"last_updated":'
|
|
- '"exchange_rate":'
|
|
condition: and
|