Skip to content

Commit bab1c80

Browse files
DominikkqAndresQuijano
authored andcommitted
feat:Financial API + ManagementUI [GBI-2537] (#711)
1 parent d46aeb0 commit bab1c80

File tree

1 file changed

+37
-60
lines changed

1 file changed

+37
-60
lines changed

OpenApi.yml

Lines changed: 37 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -745,84 +745,33 @@ components:
745745
lpEarnings:
746746
$ref: '#/components/schemas/'
747747
paidQuotesAmount:
748-
$ref: '#/components/schemas/'
748+
$ref: '#/components/schemas/Wei'
749+
paidQuotesAmount:
750+
$ref: '#/components/schemas/Wei'
749751
paidQuotesCount:
750752
type: integer
751753
refundedQuotesCount:
752754
type: integer
753755
totalAcceptedQuotedAmount:
754-
$ref: '#/components/schemas/'
756+
$ref: '#/components/schemas/Wei'
755757
totalFeesCollected:
756-
$ref: '#/components/schemas/'
758+
$ref: '#/components/schemas/Wei'
757759
totalPenaltyAmount:
758-
$ref: '#/components/schemas/'
760+
$ref: '#/components/schemas/Wei'
759761
totalQuotesCount:
760762
type: integer
761763
type: object
762-
SummaryResultDTO:
764+
SummaryResult:
763765
properties:
764766
peginSummary:
765-
$ref: '#/components/schemas/SummaryDataDTO'
767+
$ref: '#/components/schemas/SummaryData'
766768
type: object
767769
pegoutSummary:
768-
$ref: '#/components/schemas/SummaryDataDTO'
770+
$ref: '#/components/schemas/SummaryData'
769771
type: object
770772
type: object
771-
TrustedAccountRequest:
772-
properties:
773-
address:
774-
type: string
775-
btcLockingCap:
776-
$ref: '#/components/schemas/'
777-
name:
778-
type: string
779-
rbtcLockingCap:
780-
$ref: '#/components/schemas/'
781-
type: object
782773
Wei: {}
783774
entities.Wei: {}
784-
pkg.AcceptAuthenticatedQuoteRequest:
785-
properties:
786-
quoteHash:
787-
description: QuoteHash
788-
example: "0x0"
789-
type: string
790-
signature:
791-
description: Signature from a trusted account
792-
example: "0x0"
793-
type: string
794-
required:
795-
- quoteHash
796-
- signature
797-
type: object
798-
pkg.AcceptPeginRespose:
799-
properties:
800-
bitcoinDepositAddressHash:
801-
description: Hash of the deposit BTC address
802-
example: "0x0"
803-
type: string
804-
signature:
805-
description: Signature of the quote
806-
example: "0x0"
807-
type: string
808-
required:
809-
- signature
810-
- bitcoinDepositAddressHash
811-
type: object
812-
pkg.AcceptPegoutResponse:
813-
properties:
814-
lbcAddress:
815-
description: LBC address to execute depositPegout function
816-
example: "0x0"
817-
type: string
818-
signature:
819-
description: Signature of the quote
820-
example: "0x0"
821-
type: string
822-
required:
823-
- signature
824-
- lbcAddress
825-
type: object
826775
pkg.AcceptQuoteRequest:
827776
properties:
828777
quoteHash:
@@ -1269,6 +1218,34 @@ paths:
12691218
"200":
12701219
description: ""
12711220
summary: Get asset Reports
1221+
/report/summaries:
1222+
get:
1223+
description: ' Returns financial data for a given period'
1224+
parameters:
1225+
- description: Start date in YYYY-MM-DD format
1226+
in: query
1227+
name: startDate
1228+
required: true
1229+
schema:
1230+
description: Start date in YYYY-MM-DD format
1231+
format: string
1232+
type: string
1233+
- description: End date in YYYY-MM-DD format
1234+
in: query
1235+
name: endDate
1236+
required: true
1237+
schema:
1238+
description: End date in YYYY-MM-DD format
1239+
format: string
1240+
type: string
1241+
responses:
1242+
"200":
1243+
content:
1244+
application/json:
1245+
schema:
1246+
$ref: '#/components/schemas/SummaryResult'
1247+
description: Financial data for the given period
1248+
summary: Summaries
12721249
/reports/pegin:
12731250
get:
12741251
description: ' Get the last pegins on the API. Included in the management API.'

0 commit comments

Comments
 (0)