BoostryJP / ibet-Wallet-API

A powerful API suite for seamlessly building ibet blockchain wallet systems 🛠
https://ibet.jp/ibet-for-fin
Apache License 2.0
9 stars 0 forks source link

[FEATURE] Add Position API that does not include the token type in the API path #1354

Closed purplesmoke05 closed 1 year ago

purplesmoke05 commented 1 year ago

Is your feature request related to a problem? Please describe.

class TokenPositionsResponse(BaseModel):
    result_set: ResultSet
    positions: Union[
        list[
            Union[
                StraightBondPositionWithDetail,
                SharePositionWithDetail,
                CouponPositionWithDetail,
                MembershipPositionWithDetail,
            ]
        ],
        list[
            Union[
                StraightBondPositionWithAddress,
                SharePositionWithAddress,
                CouponPositionWithAddress,
                MembershipPositionWithAddress,
            ]
        ]
    ]

Describe the solution you'd like