Skip to main content

Pricing Engine

The LoanVista Pricing Engine (PE) is a high-performance calculation service that determines mortgage rates based on investor guidelines, loan-level price adjustments (LLPAs), and real-time market data.

Main Endpoints

EndpointMethodDescription
/api/PriceLoan/RunPOSTCalculate pricing for a single loan record immediately.
/api/PriceLoan/RunBatchPOSTQueue a batch of loans for background pricing.

Calculate Single Loan Pricing

Run the pricing engine for a specific loan scenario.

HTTP Request

POST https://pricing.loanvista.com/api/PriceLoan/Run

Request Body

{
  "loan": {
    "loanAmount": 450000,
    "propertyState": "CA",
    "fico": 740,
    "occupancy": "PrimaryResidence"
  },
  "loanContext": {
    "lockPeriod": 30,
    "lockType": "BestEffort"
  }
}

Response

The response includes a list of eligible products and their respective rates and prices.
{
  "products": [
    {
      "name": "30 Year Fixed",
      "rate": 6.125,
      "price": 100.5,
      "investor": "Fannie Mae"
    }
  ]
}

Run Batch Pricing

Process multiple loans or an entire pipeline bucket.

HTTP Request

POST https://pricing.loanvista.com/api/PriceLoan/RunBatch?loanPipelineId=123

Parameters

NameTypeDescription
loanPipelineIdintRequired. The ID of the pipeline to price.
bucketIdintOptional. Filter by specific bucket.
priceTestLoansboolDefault false. Whether to include test loans.