Skip to content

Commit 1fc6734

Browse files
committed
fix: add missing rest binding for funding payments
Signed-off-by: Jeremy Letang <me@jeremyletang.com>
1 parent 4d615b3 commit 1fc6734

File tree

3 files changed

+86
-1
lines changed

3 files changed

+86
-1
lines changed

protos/data-node/api/v2/trading_data.pb.gw.go

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/embed_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Test_DataNodeBindings(t *testing.T) {
4444
t.Run("CoreBindings should return the core http bindings", func(t *testing.T) {
4545
bindings, err := protos.DataNodeBindings()
4646
require.NoError(t, err)
47-
wantCount := 100
47+
wantCount := 101
4848

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

protos/sources/data-node/grpc-rest-bindings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ http:
163163
get: "/api/v2/funding-periods/{market_id}"
164164
- selector: datanode.api.v2.TradingDataService.ListFundingPeriodDataPoints
165165
get: "/api/v2/funding-periods/data-points/{market_id}"
166+
- selector: datanode.api.v2.TradingDataService.ListFundingPayments
167+
get: "/api/v2/funding-payments"
166168
- selector: datanode.api.v2.TradingDataService.GetCurrentReferralProgram
167169
get: "/api/v2/referral-programs/current"
168170
- selector: datanode.api.v2.TradingDataService.ListReferralSets

0 commit comments

Comments
 (0)