Expand description
Portfolio Margin financing: read an account’s PM loans and unpaid settlement obligations, and repay them from its HyperCore USDC.
Structs§
- PmFinancing
Item - One loan or unpaid settlement obligation.
- PmFinancing
Margin - PmFinancing
Repayment - What a voluntary repayment may use now, and the latest requests.
- PmFinancing
Response GET /v1/pm-financing: one wallet’s PM borrowing.- PmFinancing
Totals - PmLoan
Repay Response POST /v1/pm-financing/repayacceptance. The USDC is reserved; the repayment lands once HyperCore confirms the transfer. Track it byplan_idinPmFinancingRepayment::requests.- PmLoan
Repayment Request - Repay
PmLoan - Repay a Portfolio Margin account’s PM financing from its HyperCore
USDC (
POST /v1/pm-financing/repay), signed by the Account.sol managerwallet.amountis the exact decimal string the request carries, orall. - Repay
PmLoan Params - A voluntary repayment of PM financing.
Enums§
- PmFinancing
Item Kind - PmFinancing
Item Status - PmRepay
Rejection - A stable error code
POST /v1/pm-financing/repayreturns. Read it from aClientErrorwithPmRepayRejection::from_error. - PmRepayment
Blocked Reason - Why
GET /v1/pm-financingsays a new repayment would be refused now. - PmRepayment
Status - A voluntary repayment’s recovery plan status, as the engine names it.
- Repay
Amount - How much PM financing to repay.