Black76 Floorlet Price
curl --request POST \
--url https://api.fincept.in/quantlib/pricing/black76/floorlet \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"forward_rate": 0.03,
"strike": 0.025,
"discount_factor": 0.95,
"volatility": 0.2,
"t_start": 1,
"t_end": 1.25,
"notional": 1000000
}
'import requests
url = "https://api.fincept.in/quantlib/pricing/black76/floorlet"
payload = {
"forward_rate": 0.03,
"strike": 0.025,
"discount_factor": 0.95,
"volatility": 0.2,
"t_start": 1,
"t_end": 1.25,
"notional": 1000000
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
forward_rate: 0.03,
strike: 0.025,
discount_factor: 0.95,
volatility: 0.2,
t_start: 1,
t_end: 1.25,
notional: 1000000
})
};
fetch('https://api.fincept.in/quantlib/pricing/black76/floorlet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fincept.in/quantlib/pricing/black76/floorlet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'forward_rate' => 0.03,
'strike' => 0.025,
'discount_factor' => 0.95,
'volatility' => 0.2,
't_start' => 1,
't_end' => 1.25,
'notional' => 1000000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fincept.in/quantlib/pricing/black76/floorlet"
payload := strings.NewReader("{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fincept.in/quantlib/pricing/black76/floorlet")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fincept.in/quantlib/pricing/black76/floorlet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"floorlet_price": 156.78
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint costs 2 credits per request."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}quantlib-pricing
Black76 Floorlet Price
Price an interest rate floorlet using the Black76 model. A floorlet is a put option on an interest rate that pays off when the reference rate falls below the strike rate.
Payoff: max(K - L, 0) × τ × N × DF
Use Cases:
- Price interest rate floors (sum of floorlets)
- Hedge against falling interest rates
- Value lender’s protection against rate decreases
- Construct floating rate collars (cap + floor)
Tier: Standard (2 credits/request) [Tier: PRO, Credits: 5]
POST
/
quantlib
/
pricing
/
black76
/
floorlet
Black76 Floorlet Price
curl --request POST \
--url https://api.fincept.in/quantlib/pricing/black76/floorlet \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"forward_rate": 0.03,
"strike": 0.025,
"discount_factor": 0.95,
"volatility": 0.2,
"t_start": 1,
"t_end": 1.25,
"notional": 1000000
}
'import requests
url = "https://api.fincept.in/quantlib/pricing/black76/floorlet"
payload = {
"forward_rate": 0.03,
"strike": 0.025,
"discount_factor": 0.95,
"volatility": 0.2,
"t_start": 1,
"t_end": 1.25,
"notional": 1000000
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
forward_rate: 0.03,
strike: 0.025,
discount_factor: 0.95,
volatility: 0.2,
t_start: 1,
t_end: 1.25,
notional: 1000000
})
};
fetch('https://api.fincept.in/quantlib/pricing/black76/floorlet', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fincept.in/quantlib/pricing/black76/floorlet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'forward_rate' => 0.03,
'strike' => 0.025,
'discount_factor' => 0.95,
'volatility' => 0.2,
't_start' => 1,
't_end' => 1.25,
'notional' => 1000000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fincept.in/quantlib/pricing/black76/floorlet"
payload := strings.NewReader("{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fincept.in/quantlib/pricing/black76/floorlet")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fincept.in/quantlib/pricing/black76/floorlet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"forward_rate\": 0.03,\n \"strike\": 0.025,\n \"discount_factor\": 0.95,\n \"volatility\": 0.2,\n \"t_start\": 1,\n \"t_end\": 1.25,\n \"notional\": 1000000\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"floorlet_price": 156.78
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint costs 2 credits per request."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Forward interest rate for the period (decimal format)
Example:
0.03
Strike rate of the caplet/floorlet (decimal format)
Example:
0.035
Discount factor to present value
Example:
0.95
Annualized volatility of the forward rate (decimal format)
Example:
0.2
Start time of the accrual period in years
Example:
1
End time of the accrual period in years
Example:
1.25
Notional amount
Example:
1000000
⌘I
