This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgrpc-rest-bindings.yml
168 lines (145 loc) · 5.68 KB
/
grpc-rest-bindings.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
type: google.api.Service
config_version: 3
name: api.v1.trading
title: Vega Trading API
apis:
- name: TradingService
- name: TradingDataService
http:
rules:
# Markets
- selector: api.v1.TradingDataService.Markets
get: '/markets'
- selector: api.v1.TradingDataService.MarketByID
get: '/markets/{market_id}'
- selector: api.v1.TradingDataService.Candles
get: '/markets/{market_id}/candles'
- selector: api.v1.TradingDataService.MarketDepth
get: '/markets/{market_id}/depth'
- selector: api.v1.TradingDataService.OrdersByMarket
get: '/markets/{market_id}/orders'
- selector: api.v1.TradingDataService.OrderByMarketAndID
get: '/markets/{market_id}/orders/{order_id}'
- selector: api.v1.TradingDataService.TradesByMarket
get: '/markets/{market_id}/trades'
- selector: api.v1.TradingDataService.LastTrade
get: '/markets/{market_id}/trades/latest'
- selector: api.v1.TradingDataService.MarketAccounts
get: '/markets/{market_id}/accounts'
# assets
- selector: api.v1.TradingDataService.Assets
get: '/assets'
- selector: api.v1.TradingDataService.AssetByID
get: '/assets/{id}'
- selector: api.v1.TradingDataService.FeeInfrastructureAccounts
get: '/assets/{asset}/infrastructureFeeAccount'
# MarketData
- selector: api.v1.TradingDataService.MarketsData
get: '/markets-data'
- selector: api.v1.TradingDataService.MarketDataByID
get: '/markets-data/{market_id}'
# transaction bundles
- selector: api.v1.TradingService.SubmitTransaction
post: '/transaction'
body: "*"
# Orders
- selector: api.v1.TradingService.PrepareSubmitOrder
post: '/orders/prepare/submit'
body: "*"
- selector: api.v1.TradingService.PrepareCancelOrder
post: '/orders/prepare/cancel'
body: "*"
- selector: api.v1.TradingService.PrepareAmendOrder
post: '/orders/prepare/amend'
body: "*"
- selector: api.v1.TradingDataService.OrderByReference
get: '/orders/{reference}'
- selector: api.v1.TradingDataService.OrderVersionsByID
get: '/orders/{order_id}/versions'
- selector: api.v1.TradingDataService.TradesByOrder
get: '/orders/{order_id}/trades'
# Fee
- selector: api.v1.TradingDataService.EstimateFee
post: '/orders/fee/estimate'
body: "*"
# Margins
- selector: api.v1.TradingDataService.EstimateMargin
post: '/orders/margins/estimate'
body: "*"
# Network parameters
- selector: api.v1.TradingDataService.NetworkParameters
get: '/network/parameters'
# Parties
- selector: api.v1.TradingDataService.Parties
get: '/parties'
- selector: api.v1.TradingDataService.PartyByID
get: '/parties/{party_id}'
- selector: api.v1.TradingDataService.OrdersByParty
get: '/parties/{party_id}/orders'
- selector: api.v1.TradingDataService.PositionsByParty
get: '/parties/{party_id}/positions'
- selector: api.v1.TradingDataService.TradesByParty
get: '/parties/{party_id}/trades'
- selector: api.v1.TradingDataService.PartyAccounts
get: '/parties/{party_id}/accounts'
- selector: api.v1.TradingDataService.MarginLevels
get: '/parties/{party_id}/markets/{market_id}/margin'
- selector: api.v1.TradingService.PrepareWithdraw
post: '/parties/prepare/withdraw'
body: '*'
# governance stuff by party
- selector: api.v1.TradingDataService.GetProposalsByParty
get: '/parties/{party_id}/proposals'
- selector: api.v1.TradingDataService.GetVotesByParty
get: '/parties/{party_id}/votes'
# withdrawals
- selector: api.v1.TradingDataService.Withdrawal
get: '/withdrawals/{id}'
- selector: api.v1.TradingDataService.Withdrawals
get: '/withdrawals/party/{party_id}'
- selector: api.v1.TradingDataService.ERC20WithdrawalApproval
get: '/withdrawals/{withdrawal_id}/approval/erc20'
# deposits
- selector: api.v1.TradingDataService.Deposit
get: '/deposits/{id}'
- selector: api.v1.TradingDataService.Deposits
get: '/parties/{party_id}/deposits'
# Governance
- selector: api.v1.TradingService.PrepareProposalSubmission
post: '/governance/prepare/proposal'
body: "*"
- selector: api.v1.TradingService.PrepareVoteSubmission
post: '/governance/prepare/vote'
body: "*"
# Governance queries
- selector: api.v1.TradingDataService.GetProposalByID
get: '/governance/proposal/{proposal_id}'
- selector: api.v1.TradingDataService.GetProposalByReference
get: '/governance/proposal/reference/{reference}'
- selector: api.v1.TradingDataService.GetNewMarketProposals
get: '/governance/market/proposals'
- selector: api.v1.TradingDataService.GetNewAssetProposals
get: '/governance/asset/proposals'
- selector: api.v1.TradingDataService.GetProposals
get: '/governance/proposals'
# LiquidityProvision
- selector: api.v1.TradingService.PrepareLiquidityProvision
post: '/liquidity-provisions/prepare/submit'
body: "*"
- selector: api.v1.TradingDataService.LiquidityProvisions
get: '/liquidity-provisions/party/{party}/market/{market}'
# Miscellaneous
- selector: api.v1.TradingDataService.Statistics
get: '/statistics'
- selector: api.v1.TradingDataService.LastBlockHeight
get: '/blockchain/height'
- selector: api.v1.TradingDataService.GetVegaTime
get: '/time'
# oracles
- selector: api.v1.TradingDataService.OracleSpec
get: '/oracle-specs/{id}'
- selector: api.v1.TradingDataService.OracleDataBySpec
get: '/oracle-specs/{id}/oracle-data'
- selector: api.v1.TradingDataService.OracleSpecs
get: '/oracle-specs'