-
Notifications
You must be signed in to change notification settings - Fork 1
/
ois.json
106 lines (106 loc) · 2.01 KB
/
ois.json
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"oisFormat": "1.1.1",
"version": "1.2.3",
"title": "coinlayer",
"apiSpecifications": {
"servers": [
{
"url": "https://api.coinlayer.com"
}
],
"paths": {
"/convert": {
"get": {
"parameters": [
{
"in": "query",
"name": "from"
},
{
"in": "query",
"name": "to"
},
{
"in": "query",
"name": "amount"
},
{
"in": "query",
"name": "date"
}
]
}
}
},
"components": {
"securitySchemes": {
"coinlayerSecurityScheme": {
"in": "query",
"type": "relayChainId",
"name": "chainId"
}
}
},
"security": {
"coinlayerSecurityScheme": []
}
},
"endpoints": [
{
"name": "convertToUsd",
"operation": {
"method": "get",
"path": "/convert"
},
"fixedOperationParameters": [
{
"operationParameter": {
"in": "query",
"name": "to"
},
"value": "USD"
}
],
"reservedParameters": [
{
"name": "_type",
"fixed": "int256"
},
{
"name": "_path",
"fixed": "result"
},
{
"name": "_times",
"default": "1000000"
}
],
"parameters": [
{
"name": "from",
"default": "EUR",
"operationParameter": {
"in": "query",
"name": "from"
}
},
{
"name": "amount",
"default": "1",
"operationParameter": {
"name": "amount",
"in": "query"
}
},
{
"name": "date",
"default": "1",
"operationParameter": {
"name": "date",
"in": "query"
}
}
]
}
]
}