-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.yaml
74 lines (70 loc) · 1.74 KB
/
api.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
62
63
64
65
66
67
68
69
70
swagger: '2.0'
info:
title: ROME Context appserver
description: Exposes ROME Context calls needed to explore
version: '1'
schemes:
- http
- https
produces:
- application/json
paths:
"/get_ex_rate":
get:
description: Get exchange rate
operationId: api.explorer.get_ex_rate
responses:
'200':
description: Array of operation data
'500':
description: Error processing parameters
tags:
- api
"/get_portfolio_ranking":
get:
description: Get portfolio_ranking with algo in ('RV','VOT','COMP'), limit (top N)
operationId: api.explorer.portfolio_ranking
parameters:
- in: query
name: algo
default: "RV"
type: string
required: true
description: algo
- in: query
name: limit
default: 10
type: integer
required: true
description: limit
responses:
'200':
description: Array of operation data
'500':
description: Error processing parameters
tags:
- api
"/get_portfolio_account":
get:
description: Get get_portfolio_account with account name, slot in hour
operationId: api.explorer.get_portfolio_account
parameters:
- in: query
name: account
default: "nathan"
type: string
required: true
description: account
- in: query
name: slot
default: 10
type: integer
required: true
description: slot in hour
responses:
'200':
description: Array of operation data
'500':
description: Error processing parameters
tags:
- api