This wallet in SigmaFi
/sigmafi/portfolioapi_keyThis wallet's open orders, the bonds it borrows on, and the bond assets it holds with what the vault holds for each.
Responses
200The portfolioSFPortfolio▶
heightintegerrequired▶
ordersSFOrderView[]requiredboxIdstringrequired▶
termsSFTermsrequiredA bond's terms, as its order states them and the bond carries them.
kindstringrequiredThe bond's kind. Every SigmaFi V2 bond is
zero-coupon.principalNanoErgsstringAgreed nanoERG lent; for a token loan, the principal box's floor. Read directly from a bond's R6.
▶
principalTokenSFTokenAmounttokenIdstringrequiredamountstringrequiredBase units.
repaymentstringrequiredWhat the borrower repays, in nanoERG or in base units of
repayToken.repayTokenstringThe token a token loan is repaid in. Absent when repaid in ERG.
collateralNanoErgsstringrequiredBorrower collateral nanoERG, excluding the lender-funded reserve.
▶
collateralTokensSFTokenAmount[]requiredtokenIdstringrequiredamountstringrequiredBase units.
maturityHeightinteger · int64Repayment is open strictly below it. Absent for an on-close order until it is filled.
durationBlocksinteger · int64An on-close order's term, counted from its fill.
batchingFeestringrequiredLender-funded reserve selected on fill; zero on unfilled orders. Refunded on repayment.
liquidationstringThe liquidation script's name. Absent when this client does not know it.
liquidationHashstringrequired
borrowerstringThe address the principal goes to, when this client can tell.
minebooleanrequiredrefusalstringWhy this client would not fill it. Absent when it would.
creationHeightintegerrequired
▶
borrowingSFBondView[]requiredBonds whose collateral returns to this wallet on repayment.
boxIdstringrequiredassetIdstringrequiredThe bond asset whose holder is paid.
▶
termsSFTermsrequiredA bond's terms, as its order states them and the bond carries them.
kindstringrequiredThe bond's kind. Every SigmaFi V2 bond is
zero-coupon.principalNanoErgsstringAgreed nanoERG lent; for a token loan, the principal box's floor. Read directly from a bond's R6.
▶
principalTokenSFTokenAmounttokenIdstringrequiredamountstringrequiredBase units.
repaymentstringrequiredWhat the borrower repays, in nanoERG or in base units of
repayToken.repayTokenstringThe token a token loan is repaid in. Absent when repaid in ERG.
collateralNanoErgsstringrequiredBorrower collateral nanoERG, excluding the lender-funded reserve.
▶
collateralTokensSFTokenAmount[]requiredtokenIdstringrequiredamountstringrequiredBase units.
maturityHeightinteger · int64Repayment is open strictly below it. Absent for an on-close order until it is filled.
durationBlocksinteger · int64An on-close order's term, counted from its fill.
batchingFeestringrequiredLender-funded reserve selected on fill; zero on unfilled orders. Refunded on repayment.
liquidationstringThe liquidation script's name. Absent when this client does not know it.
liquidationHashstringrequired
verifiedbooleanrequiredWhether this is the bond its asset's genesis order created.
verificationstringWhy it is not verified.
statusstringrequiredone ofopenmaturedblocksLeftinteger · int64requiredBlocks before repayment closes. 0 once matured.
borrowerIsMebooleanrequiredcreationHeightintegerrequired
▶
lendingSFHolding[]requiredBond assets this wallet holds.
assetIdstringrequired▶
bondSFBondViewboxIdstringrequiredassetIdstringrequiredThe bond asset whose holder is paid.
▶
termsSFTermsrequiredA bond's terms, as its order states them and the bond carries them.
kindstringrequiredThe bond's kind. Every SigmaFi V2 bond is
zero-coupon.principalNanoErgsstringAgreed nanoERG lent; for a token loan, the principal box's floor. Read directly from a bond's R6.
▶
principalTokenSFTokenAmounttokenIdstringrequiredamountstringrequiredBase units.
repaymentstringrequiredWhat the borrower repays, in nanoERG or in base units of
repayToken.repayTokenstringThe token a token loan is repaid in. Absent when repaid in ERG.
collateralNanoErgsstringrequiredBorrower collateral nanoERG, excluding the lender-funded reserve.
▶
collateralTokensSFTokenAmount[]requiredtokenIdstringrequiredamountstringrequiredBase units.
maturityHeightinteger · int64Repayment is open strictly below it. Absent for an on-close order until it is filled.
durationBlocksinteger · int64An on-close order's term, counted from its fill.
batchingFeestringrequiredLender-funded reserve selected on fill; zero on unfilled orders. Refunded on repayment.
liquidationstringThe liquidation script's name. Absent when this client does not know it.
liquidationHashstringrequired
verifiedbooleanrequiredWhether this is the bond its asset's genesis order created.
verificationstringWhy it is not verified.
statusstringrequiredone ofopenmaturedblocksLeftinteger · int64requiredBlocks before repayment closes. 0 once matured.
borrowerIsMebooleanrequiredcreationHeightintegerrequired
▶
vaultSFVaultView[]requiredboxIdstringrequiredbondIdstringThe bond this box settles.
assetIdstringrequirednanoErgsstringrequired▶
tokensSFTokenAmount[]requiredtokenIdstringrequiredamountstringrequiredBase units.
claimablebooleanrequiredWhether a claim goes through now. The bond's own settlement output is known and unspent.
truncatedbooleanrequired
403Missing or wrong api_key.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node or index unavailable. Never returns a partial answer.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description