# Latest

**URL:** https://quantlab.discourse.group/latest.md

[Latest](https://quantlab.discourse.group/latest.md) · [Categories](https://quantlab.discourse.group/categories.md) · [Tags](https://quantlab.discourse.group/tags.md)

---

## [Welcome to Quantlab Community! 👋](https://quantlab.discourse.group/t/welcome-to-quantlab-community/5)

<div class="topic-metadata">

**Author:** [@system](https://quantlab.discourse.group/u/system)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 9:51am UTC](https://quantlab.discourse.group/t/welcome-to-quantlab-community/5 "2024-02-21T09:51:11Z")

</div>

We are so glad you joined us. Quantlab Community Discussing everything Quantlab and Qlang Here are some things you can do to get started: :speaking\_head: Introduce yourself by adding your picture and information abo…

---

## [Coming in an upcoming Quantlab release: a rebuilt finance library](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-finance-library/144)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 4:47pm UTC](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-finance-library/144 "2026-09-18T16:47:06Z")

</div>

:rocket: Coming in an upcoming Quantlab release: a rebuilt finance library The third and last of the library rewrites, after the math and statistics libraries, and the one they were built to carry. The centrepiece is a …

---

## [Coming in an upcoming Quantlab release: a rebuilt statistics library](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-statistics-library/143)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 1:41pm UTC](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-statistics-library/143 "2026-09-18T13:41:36Z")

</div>

:rocket: Coming in an upcoming Quantlab release: a rebuilt statistics library Second of the three library rewrites, after the math library. The statistics library gains a full copula framework, multivariate distribution…

---

## [Coming in an upcoming Quantlab release: a rebuilt math library](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-math-library/142)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 1:38pm UTC](https://quantlab.discourse.group/t/coming-in-an-upcoming-quantlab-release-a-rebuilt-math-library/142 "2026-09-18T13:38:09Z")

</div>

:rocket: Coming in an upcoming Quantlab release: a rebuilt math library The math library has had a thorough overhaul: adaptive quadrature with real error control, a new nonlinear least squares solver, LP and QP solvers,…

---

## [Get quotes from instruments in python](https://quantlab.discourse.group/t/get-quotes-from-instruments-in-python/138)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [August 6, 2026, 9:49am UTC](https://quantlab.discourse.group/t/get-quotes-from-instruments-in-python/138 "2026-08-06T09:49:16Z")

</div>

Got a client question the other day. How do I get a quote into python for a given date? If an instrument already exist in the Quantlab universe it is very simple, given that you have a historical db and/or realtime acce…

---

## [Quantlab 3.1.4162 — structured bindings and a lot more since 4155](https://quantlab.discourse.group/t/quantlab-3-1-4162-structured-bindings-and-a-lot-more-since-4155/125)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 5:55am UTC](https://quantlab.discourse.group/t/quantlab-3-1-4162-structured-bindings-and-a-lot-more-since-4155/125 "2026-06-02T05:55:47Z")

</div>

:rocket: Quantlab 3.1.4162 — structured bindings, hardened WebSockets, and a lot more since 4155 We are excited to round up everything that has landed in Quantlab since the 3.1.4155 curve-distribution release. Eight bui…

---

## [Structured bindings for \`out\` parameters — new in 4162](https://quantlab.discourse.group/t/structured-bindings-for-out-parameters-new-in-4162/124)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 5:20am UTC](https://quantlab.discourse.group/t/structured-bindings-for-out-parameters-new-in-4162/124 "2026-06-02T05:20:13Z")

</div>

Structured bindings for out parameters — new in 4162 Short version: if a void function returns values through out parameters, 4162 lets you capture them with a structured binding instead of pre-declaring each variable a…

---

## [Bond vs Swap Cashflows](https://quantlab.discourse.group/t/bond-vs-swap-cashflows/122)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [February 10, 2026, 7:06am UTC](https://quantlab.discourse.group/t/bond-vs-swap-cashflows/122 "2026-02-10T07:06:32Z")

</div>

Bond vs Swap Fixed Leg: The Devil in the Cashflow Details When pricing asset swaps or building fixed income analytics, it’s easy to assume that a swap’s fixed leg and a bond with the same coupon rate will produce identic…

---

## [Override an input vector with user data](https://quantlab.discourse.group/t/override-an-input-vector-with-user-data/121)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [December 10, 2025, 9:57pm UTC](https://quantlab.discourse.group/t/override-an-input-vector-with-user-data/121 "2025-12-10T21:57:13Z")

</div>

Got a question from a Quantlab user today on how to create an input vector that can override another value in another vector that is not manual. The trick here is to have both value vector and the overriding vector in t…

---

## [Forward Rate Agreement (FRA) valuation](https://quantlab.discourse.group/t/forward-rate-agreement-fra-valuation/120)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [October 31, 2025, 7:00am UTC](https://quantlab.discourse.group/t/forward-rate-agreement-fra-valuation/120 "2025-10-31T07:00:19Z")

</div>

Got asked the other day, how to value a FRA in transparent and simple way. Then we can use the feature of creating instruments directly from the library, without any use of the underlying Quantlab instrument database. T…

---

## [Lookup from ISIN code to instrument](https://quantlab.discourse.group/t/lookup-from-isin-code-to-instrument/119)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [October 11, 2025, 6:42am UTC](https://quantlab.discourse.group/t/lookup-from-isin-code-to-instrument/119 "2025-10-11T06:42:46Z")

</div>

Q: “Easiest way to lookup a bond from an isin code?” A: Fill a map with your isin to instrument id:s. As isin\_code is a non-required tag, check that it exist and has value. map\_str\_str mapISIN2ID = new map\_str\_str(); o…

---

## [Stream data from Python to Quantlab users?](https://quantlab.discourse.group/t/stream-data-from-python-to-quantlab-users/118)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 1\
**Last updated:** [October 9, 2025, 1:01pm UTC](https://quantlab.discourse.group/t/stream-data-from-python-to-quantlab-users/118 "2025-10-09T13:01:44Z")

</div>

Got a question from a client the other day. ”I have a python process running, can I stream messages from this process to my Quantlab users?”. It is a good and relevant question with an easy answer. Yes. Very simple. S…

---

## [Create vector(integer) efficiently](https://quantlab.discourse.group/t/create-vector-integer-efficiently/117)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 2\
**Last updated:** [October 9, 2025, 11:19am UTC](https://quantlab.discourse.group/t/create-vector-integer-efficiently/117 "2025-10-09T11:19:16Z")

</div>

Running Quantlab ver 4029 or later? There is a better way to get a vector of integers to use in various range loops or vector and matrix calculations. Some example code with comments below. → Key take-away. Do not use f…

---

## [Quantlab release 4155](https://quantlab.discourse.group/t/quantlab-release-4155/116)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 1:30pm UTC](https://quantlab.discourse.group/t/quantlab-release-4155/116 "2025-09-19T13:30:59Z")

</div>

:rocket: Quantlab 3.1.4155 introduces ultra-compact curve distribution We are excited to announce a major efficiency upgrade in Quantlab 3.1.4155: new built-in functions v\_compress and v\_decompress for distributing dis…

---

## [Zero\_rate function in python](https://quantlab.discourse.group/t/zero-rate-function-in-python/113)

<div class="topic-metadata">

**Author:** [@Carlkong](https://quantlab.discourse.group/u/Carlkong)\
**Replies:** 2\
**Last updated:** [August 25, 2025, 2:00pm UTC](https://quantlab.discourse.group/t/zero-rate-function-in-python/113 "2025-08-25T14:00:54Z")

</div>

Having trouble using the zero\_rate function in python, trying to plot a basic zero yield curve. The market yield curve works fine but not when I am using the zero\_rate function, is there something I have missed here? i…

---

## [Quantlab release 4153](https://quantlab.discourse.group/t/quantlab-release-4153/112)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [August 22, 2025, 3:11pm UTC](https://quantlab.discourse.group/t/quantlab-release-4153/112 "2025-08-22T15:11:25Z")

</div>

Quantlab ver 4149 → 4153 has smaller fixes and features in both developer UI and in the libraries. ui: context.get\_rt\_event\_handler(). ui: context.get\_timer\_event\_handler(). ui: context.get\_unit\_event\_handlers(). dev\_u…

---

## [All good now. Trials running again](https://quantlab.discourse.group/t/all-good-now-trials-running-again/111)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [August 15, 2025, 1:17pm UTC](https://quantlab.discourse.group/t/all-good-now-trials-running-again/111 "2025-08-15T13:17:01Z")

</div>

There were some issues with the license server during the summer, which may have caused trial users not to get the key. Issue should now be resolved. If problems with downloading and running the trial version persist, gi…

---

## [Want more speed in swap pricing?](https://quantlab.discourse.group/t/want-more-speed-in-swap-pricing/109)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [June 5, 2025, 3:51pm UTC](https://quantlab.discourse.group/t/want-more-speed-in-swap-pricing/109 "2025-06-05T15:51:02Z")

</div>

In order to test how fast a naive round-trip calculation is using Quantlab realtime state engine, Qlang compiled code and our swap pricing libraries are. Here’s an example with live date for EUR 6M fix/float libor swaps.…

---

## [Difference of bond spread definitions](https://quantlab.discourse.group/t/difference-of-bond-spread-definitions/108)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 1\
**Last updated:** [April 27, 2025, 3:57pm UTC](https://quantlab.discourse.group/t/difference-of-bond-spread-definitions/108 "2025-04-27T15:57:58Z")

</div>

We had a question the other day which bond spread types that we support in the Qlang library. A summary of the main principles follow, with an example wsp. Y-Spread (Yield Spread) In Quantlab this spread is not just …

---

## [Quantlab release 4143](https://quantlab.discourse.group/t/quantlab-release-4143/107)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [March 27, 2025, 3:54pm UTC](https://quantlab.discourse.group/t/quantlab-release-4143/107 "2025-03-27T15:54:50Z")

</div>

A summary of the changes in versions 4134–4143: Quantlab Fixed parser crashes and JSON handling bugs. Improved support for SSL in HTTP server and client. Optimized operator+ for strings and strcat(). Fixed issues with …

---

## [Pythonify qlang](https://quantlab.discourse.group/t/pythonify-qlang/102)

<div class="topic-metadata">

**Author:** [@casperfdr](https://quantlab.discourse.group/u/casperfdr)\
**Replies:** 4\
**Last updated:** [March 18, 2025, 6:20am UTC](https://quantlab.discourse.group/t/pythonify-qlang/102 "2025-03-18T06:20:16Z")

</div>

An unknown feature in Qlang is that you can define operators, and the thing I miss most about python is the ability to add strings together. With the following code you will be able to add strings together in qlang as w…

---

## [Can I get learning help?](https://quantlab.discourse.group/t/can-i-get-learning-help/104)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [February 28, 2025, 7:18am UTC](https://quantlab.discourse.group/t/can-i-get-learning-help/104 "2025-02-28T07:18:00Z")

</div>

Check out this online youtube aggregator that summarizes a list of finance tutorials with Quantlab. Link to miyabilabs: Miyagi Labs.

---

## [For-loop in Qlang?](https://quantlab.discourse.group/t/for-loop-in-qlang/40)

<div class="topic-metadata">

**Author:** [@RutgerJ](https://quantlab.discourse.group/u/RutgerJ)\
**Replies:** 5\
**Last updated:** [February 21, 2025, 8:48am UTC](https://quantlab.discourse.group/t/for-loop-in-qlang/40 "2025-02-21T08:48:13Z")

</div>

There seems to be many ways to create for-loops in Qlang. Which options do I have and what is the difference?

---

## [Happy Holidays!](https://quantlab.discourse.group/t/happy-holidays/103)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [December 20, 2024, 1:16pm UTC](https://quantlab.discourse.group/t/happy-holidays/103 "2024-12-20T13:16:13Z")

</div>

As not everything in life has to be about how to price swaps or getting speed in your simulations. Some while back, an avid Qlang programmer wrote code that fits the season. Enjoy. algoChristmas2024.qlw (8.8 KB) Below …

---

## [Dynamic legends and number of decimals](https://quantlab.discourse.group/t/dynamic-legends-and-number-of-decimals/101)

<div class="topic-metadata">

**Author:** [@QuantlabAdmin](https://quantlab.discourse.group/u/QuantlabAdmin)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 9:23am UTC](https://quantlab.discourse.group/t/dynamic-legends-and-number-of-decimals/101 "2024-11-07T09:23:57Z")

</div>

We recently got a support email about legends in graphs. Namely, how to get dynamic legends and how to control decimals when presenting numbers. First let’s look at how to create a dynamic legend. You have two parameter…

---

## [Example of python code?](https://quantlab.discourse.group/t/example-of-python-code/100)

<div class="topic-metadata">

**Author:** [@RutgerJ](https://quantlab.discourse.group/u/RutgerJ)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 3:39pm UTC](https://quantlab.discourse.group/t/example-of-python-code/100 "2024-10-14T15:39:36Z")

</div>

Ok. I have managed to install Quantlab and connect it to my python dev. How do I call an instrument or a list of instruments (i.e. a curve)? Can anyone give a short example.

---

## [Attaching variables to wsp](https://quantlab.discourse.group/t/attaching-variables-to-wsp/99)

<div class="topic-metadata">

**Author:** [@bjorn.lofdahl](https://quantlab.discourse.group/u/bjorn.lofdahl)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 1:35pm UTC](https://quantlab.discourse.group/t/attaching-variables-to-wsp/99 "2024-10-01T13:35:53Z")

</div>

Hi, Whenever you create a new input variable for your workspace and recompile, there is a need to repopulate all drop downs by “attaching”. Unfortunately, I always forget how to do this :slight\_smile: Would really appre…

---

## [Optimal series with realtime](https://quantlab.discourse.group/t/optimal-series-with-realtime/98)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [September 18, 2024, 3:10pm UTC](https://quantlab.discourse.group/t/optimal-series-with-realtime/98 "2024-09-18T15:10:35Z")

</div>

Problem: When running large workspaces with many long timeseries where the last point is updated by realtime data from Bloomberg or Refinitiv, the calculations can become very inefficient - if naively recalculating the h…

---

## [Fetching CPI data from open data sources such as SCB](https://quantlab.discourse.group/t/fetching-cpi-data-from-open-data-sources-such-as-scb/95)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 0\
**Last updated:** [September 3, 2024, 9:18pm UTC](https://quantlab.discourse.group/t/fetching-cpi-data-from-open-data-sources-such-as-scb/95 "2024-09-03T21:18:02Z")

</div>

If using index linked bonds with dependency on monthly published CPI you might have encountered the problem with automation as monthly data may be hard to pull from sources such as Bloomberg and Refinitiv. Here is a sim…

---

## [String labels on graph?](https://quantlab.discourse.group/t/string-labels-on-graph/97)

<div class="topic-metadata">

**Author:** [@QuantBob](https://quantlab.discourse.group/u/QuantBob)\
**Replies:** 1\
**Last updated:** [September 5, 2024, 3:53pm UTC](https://quantlab.discourse.group/t/string-labels-on-graph/97 "2024-09-05T15:53:45Z")

</div>

Someone remembers how to get string labels to attach to x-axis in graph? Especially when labels are strings and not numbers or date/times?

[Next page](https://quantlab.discourse.group/latest.md?page=1)
