Skip to main content
Configs are stored in *.conf files, and loaded into the .conf namespace. The format is KEY=VAL, and the types are dynamically inferred. For example, the following config file:
will render in q as:

Overriding .conf

The .conf namespace for a given package (e.g. tp, binance) is populated by a combination of default values in qi.q and the package’s defaults.conf, if it has one. These values can be overriden with the following .conf files, from lowest to highest precedence:

API keys

API keys (e.g. for feeds) are best kept in machine-wide package-specific files under ~/.qi/. For example, if you were using Alpaca & Massive: ~/.qi/alpaca.conf
~/.qi/massive.conf