-
Notifications
You must be signed in to change notification settings - Fork 5
/
free-forex.yaml
61 lines (61 loc) · 2 KB
/
free-forex.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
openapi: 3.0.0
info:
title: Free Forex API
description: A simple API for getting live forex rates. To obtain all supported pairs, call getLiveForexRates without any pairs parameter.
version: 1.0.0
servers:
- url: https://www.freeforexapi.com
paths:
/api/live:
get:
summary: Get live forex rates or supported pairs depending on parameter.
description: Get live forex rates or supported pairs depending on parameter.
operationId: getLiveForexRates
parameters:
- name: pairs
in: query
required: false
description: One or more currency pairs as a comma-separated list
schema:
type: string
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: object
properties:
rates:
type: object
additionalProperties:
type: object
properties:
rate:
type: number
format: double
timestamp:
type: integer
format: int64
required:
- rate
- timestamp
description: A map of currency pairs and their rates
code:
type: integer
example: 200
description: The response code
"400":
description: Invalid input parameters
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A message explaining the error
code:
type: integer
example: 1001
description: The error code