forked from hummingbot/gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
amm-routes.yml
61 lines (61 loc) · 1.43 KB
/
amm-routes.yml
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
paths:
/amm/price:
post:
tags:
- 'amm'
summary: 'Get the price for a quote base pair on an AMM'
operationId: 'poll'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/PriceRequest'
responses:
'200':
schema:
$ref: '#/definitions/PriceResponse'
/amm/trade:
post:
tags:
- 'amm'
summary: 'Perform a trade on an AMM'
operationId: 'trade'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/TradeRequest'
responses:
'200':
schema:
$ref: '#/definitions/TradeResponse'
/amm/estimateGas:
post:
tags:
- 'amm'
summary: 'Estimate the total gas costs for sending an AMM order'
operationId: 'estimateGas'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/NetworkSelectionRequest'
responses:
'200':
schema:
$ref: '#/definitions/EstimateGasResponse'