Skip to main content

Module pm_financing

Module pm_financing 

Source
Expand description

Portfolio Margin financing: read an account’s PM loans and unpaid settlement obligations, and repay them from its HyperCore USDC.

Structs§

PmFinancingItem
One loan or unpaid settlement obligation.
PmFinancingMargin
PmFinancingRepayment
What a voluntary repayment may use now, and the latest requests.
PmFinancingResponse
GET /v1/pm-financing: one wallet’s PM borrowing.
PmFinancingTotals
PmLoanRepayResponse
POST /v1/pm-financing/repay acceptance. The USDC is reserved; the repayment lands once HyperCore confirms the transfer. Track it by plan_id in PmFinancingRepayment::requests.
PmLoanRepaymentRequest
RepayPmLoan
Repay a Portfolio Margin account’s PM financing from its HyperCore USDC (POST /v1/pm-financing/repay), signed by the Account.sol manager wallet. amount is the exact decimal string the request carries, or all.
RepayPmLoanParams
A voluntary repayment of PM financing.

Enums§

PmFinancingItemKind
PmFinancingItemStatus
PmRepayRejection
A stable error code POST /v1/pm-financing/repay returns. Read it from a ClientError with PmRepayRejection::from_error.
PmRepaymentBlockedReason
Why GET /v1/pm-financing says a new repayment would be refused now.
PmRepaymentStatus
A voluntary repayment’s recovery plan status, as the engine names it.
RepayAmount
How much PM financing to repay.