Skip to content

Commit

Permalink
Merge pull request #9867 from vegaprotocol/fix/expose-risk-factor-REST
Browse files Browse the repository at this point in the history
chore: add risk factors rest API
  • Loading branch information
jeremyletang authored Oct 20, 2023
2 parents c42b833 + fc6b9b2 commit 84586a4
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 1 deletion.
99 changes: 99 additions & 0 deletions protos/data-node/api/v2/trading_data.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/embed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Test_DataNodeBindings(t *testing.T) {
t.Run("CoreBindings should return the core http bindings", func(t *testing.T) {
bindings, err := protos.DataNodeBindings()
require.NoError(t, err)
wantCount := 104
wantCount := 105

assert.Len(t, bindings.HTTP.Rules, wantCount)

Expand Down
2 changes: 2 additions & 0 deletions protos/sources/data-node/grpc-rest-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ http:
get: "/api/v2/erc20/asset/limits/bundle"
- selector: datanode.api.v2.TradingDataService.GetERC20WithdrawalApproval
get: "/api/v2/erc20/asset/withdrawal/bundle"
- selector: datanode.api.v2.TradingDataService.GetRiskFactors
get: "/api/v2/market/{market_id}/risk/factors"
- selector: datanode.api.v2.TradingDataService.GetLastTrade
get: "/api/v2/market/{market_id}/trade/latest"
- selector: datanode.api.v2.TradingDataService.ListTrades
Expand Down

0 comments on commit 84586a4

Please sign in to comment.