Skip to content

Commit 1bdbbe2

Browse files
authored
change sample response (#621)
1 parent b5a4494 commit 1bdbbe2

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

src/openapi/portfolio/portfolio.yaml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,30 @@ components:
650650
type: string
651651
description: Token's symbol
652652
tokenPrices:
653-
$ref: "../prices/prices.yaml#/components/schemas/AddressPriceResponseItem"
653+
type: array
654+
description: List of price information.
655+
items:
656+
type: object
657+
properties:
658+
currency:
659+
type: string
660+
example: "usd"
661+
value:
662+
type: string
663+
example: "4608.2208671202"
664+
lastUpdatedAt:
665+
type: string
666+
format: date-time
667+
example: "2025-08-26T20:17:27Z"
668+
required:
669+
- currency
670+
- value
671+
- lastUpdatedAt
672+
error:
673+
type:
674+
- string
675+
- "null"
676+
description: Error message if applicable.
654677
required:
655678
- network
656679
- address
@@ -988,25 +1011,6 @@ components:
9881011
- value
9891012
- lastUpdatedAt
9901013

991-
AddressPriceResponseItem:
992-
type: object
993-
properties:
994-
prices:
995-
type: array
996-
description: List of price information.
997-
items:
998-
$ref: "#/components/schemas/Price"
999-
error:
1000-
type:
1001-
- string
1002-
- "null"
1003-
description: Error message if applicable.
1004-
required:
1005-
- network
1006-
- address
1007-
- prices
1008-
- error
1009-
10101014
# Unused
10111015
# HistoricalPricesRequest:
10121016
# type: object

0 commit comments

Comments
 (0)